• 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!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

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

ralke

(҂ ͠❛ ෴ ͡❛)ᕤ
Joined
Dec 17, 2011
Messages
1,159
Solutions
27
Reaction score
625
Location
Santiago - Chile
GitHub
ralke23
Twitch
ralke23
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