pink_panther
Excellent OT User
Hey
Just beeng trying to do some troubleshooting in implementing a casting system.
I occasionally get a client debug for the spectators when using the normal tibia client (OT Client seems to not care or crash)
I think it's related to the knownCreatureSet and the way it's removing a random known creature to make room.
I noticed in the Nostalrius distro, this check has a limit of 150 monsters
The function is checkCreatureAsKnown(uint32_t id, bool& known, uint32_t& removedKnown)
This section here, I noticed in the latest TFS it checks if > 1300, but here is 150. Not sure why?
Also, If I increase this above 150, once my character "knowsn" more than 150 creatures, it will cause the client to debug (The debug error seems to think it was trying to update a tile to show an item with an ID that exceeds the number of items. It seems to mess up the AddCreature function, where it's trying to remove something, but hasn't anything to remove so it just sends invalid data.
Can anyone call me more about this knownCreatureSet limits? Does the 7.x client have a client side limit of 150, or what allows this to incease? Why does the latest TFS distro have 1300?
Just beeng trying to do some troubleshooting in implementing a casting system.
I occasionally get a client debug for the spectators when using the normal tibia client (OT Client seems to not care or crash)
I think it's related to the knownCreatureSet and the way it's removing a random known creature to make room.
I noticed in the Nostalrius distro, this check has a limit of 150 monsters
The function is checkCreatureAsKnown(uint32_t id, bool& known, uint32_t& removedKnown)
C++:
if (knownCreatureSet.size() > 150) {
// Look for a creature to remove
This section here, I noticed in the latest TFS it checks if > 1300, but here is 150. Not sure why?
Also, If I increase this above 150, once my character "knowsn" more than 150 creatures, it will cause the client to debug (The debug error seems to think it was trying to update a tile to show an item with an ID that exceeds the number of items. It seems to mess up the AddCreature function, where it's trying to remove something, but hasn't anything to remove so it just sends invalid data.
Can anyone call me more about this knownCreatureSet limits? Does the 7.x client have a client side limit of 150, or what allows this to incease? Why does the latest TFS distro have 1300?