• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[OTClient] Player freezes when uses a missile and moves

Nihilist

Member
Joined
Jan 10, 2018
Messages
18
Solutions
4
Reaction score
9
I've been having an issue trying to use TFS 0.4 (I tried 1.2 too) and OTClient v0.6.6. Whenever I try to move while using a spear (or any other "missile-object") my screen freezes and I start getting these errors on OTC terminal:
Lua:
    [C++]: ProtocolGame::getMappedThing
ERROR: no creature found to move
at:
    [C++]: ProtocolGame::parseCreatureMove
ERROR: no thing at pos:561 323 7, stackpos:1
at:
 
Solution
I managed to fix it, I was passing the effect type wrongly. In protocolgame.cpp inside ProtocolGame::AddDistanceShoot, I changed:
C++:
msg->put<uint16_t>(type + 1);
to:
C++:
msg->put<char>(type + 1);
I managed to fix it, I was passing the effect type wrongly. In protocolgame.cpp inside ProtocolGame::AddDistanceShoot, I changed:
C++:
msg->put<uint16_t>(type + 1);
to:
C++:
msg->put<char>(type + 1);
 
Solution
Back
Top