• 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!

TFS 1.X+ Adding game tiles to 1.4 (downgrade)

ralke

(҂ ͠❛ ෴ ͡❛)ᕤ
Joined
Dec 17, 2011
Messages
707
Solutions
16
Reaction score
258
Location
Santiago - Chile
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.

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);
            }

n_1.pngn_2.png
 
Top