OTCv8 / otclientv8

Clean, ready to use version of OTClientV8 - Alternative, highly optimized Tibia client
Other
254 stars 191 forks source link

Invalid creature / No things / etc #209

Closed Diego-OT closed 2 years ago

Diego-OT commented 2 years ago

ERROR: no creature with id 268450235 at:

ERROR: invalid creature at:

ERROR: no thing at:

ERROR: no creature with id 268451240 at:

ERROR: invalid creature at:

ERROR: no thing at:

ERROR: no creature with id 268451240 at:

This happens when you have more than 9 creatures in the same sqm. I have that in my ProtocolGame::GetTileDescription but no solved:

` const CreatureVector creatures = tile->getCreatures(); if (creatures) { for (const Creature creature : boost::adaptors::reverse(*creatures)) { if (!player->canSeeCreature(creature)) { continue; } if(otclientV8 && count == 10) break;

    bool known;
    uint32_t removedKnown;
    checkCreatureAsKnown(creature->getID(), known, removedKnown);
    AddCreature(msg, creature, known, removedKnown);
    ++count;
}

} `

Oen44 commented 2 years ago

Enable GameNewCreatureStacking

Oen44 commented 2 years ago

Also make sure you have this https://github.com/otland/forgottenserver/pull/2673