ralke
(҂ ͠❛ ෴ ͡❛)ᕤ
Hi! I recently compiled Nekiro's TFS 1.4 downgrade, done sucessfully without errors. Now i'm trying to implement this system [Tutorial] Adding more tiles to game window - Updated 7/6/2018 (https://otland.net/threads/tutorial-adding-more-tiles-to-game-window-updated-7-6-2018.228243/) but I got this error when compiling.
Example line 1923/1927 with error
Code:
'AddByte': is not a member of 'NetworkMessage'
Code:
Protocolgame.cpp 1923, 1927, 1932, 1935, 2305, 2308
Example line 1923/1927 with error
C++:
if (oldPos.y > newPos.y) { // north, for old x
msg.AddByte(0x65);
GetMapDescription(oldPos.x - Map::maxClientViewportX, newPos.y - Map::maxClientViewportY, newPos.z, (Map::maxClientViewportX + 1) * 2, 1, msg);
}
else if (oldPos.y < newPos.y) { // south, for old x
msg.AddByte(0x67);
GetMapDescription(oldPos.x - Map::maxClientViewportX, newPos.y + (Map::maxClientViewportY + 1), newPos.z, (Map::maxClientViewportX + 1) * 2, 1, msg);
}
if (oldPos.x < newPos.x) { // east, [with new y]
msg.AddByte(0x66);
GetMapDescription(newPos.x + (Map::maxClientViewportX + 1), newPos.y - Map::maxClientViewportY, newPos.z, 1, (Map::maxClientViewportY + 1) * 2, msg);
}
else if (oldPos.x > newPos.x) { // west, [with new y]
msg.AddByte(0x68);
GetMapDescription(newPos.x - Map::maxClientViewportX, newPos.y - Map::maxClientViewportY, newPos.z, 1, (Map::maxClientViewportY + 1) * 2, msg);
}