[0.9] Orphan characters

novaumas

28-05-2008 23:20:13

I know development efforts are devoted to bleeding, but seeing as many of us are still playing around with 0.9, I thought I'd share :)

I noticed that when creating characters with conflicting names I had problems on cleanup ( i.e. a nasty crash ).

Checking the log, you'll see something similar to this:

- Identifier => 'lostboy', Value => '09405AF8', Owned => 1
- Identifier => 'lostboy-159-3', Value => '0960DBB0', Owned => 0


If this happens to you, it can be solved easily by modifing NxOgreCharacterController.cpp at line 108 from:

mCharacters.lock(newname, true);
return c;


to:

mCharacters.lock(newname, true);
s->mCharacters.lock(newname, true);
return c;


Hope somebody finds it usefull :D

betajaen

28-05-2008 23:33:46

Thankyou.

On a similar note. I plan to introduce the new Character System in NxOgre '23. Hopefully those who are using 0.9, because of the Character classes will hopefully migrate over.