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

[Tutorial] Adding more tiles to game window - Updated 7/6/2018

On tfs 0.3.6pl1

Everything double-checked.
Happens only when you're underground (or going underground)

Protocolgame.cpp
http://pastebin.com/HhYFRf62

Map.cpp
http://pastebin.com/9RLVqQsm



mI6PgDT.png
 
Last edited:
I made all the changes on screen adjustment and it worked, but when my creatures / mob to move off the screen and back generates an error on the console (PRINT below) and the sprites of the mobs / creatures are stuck on the screen.

f3c16b3f86da452f8b96de1103ce15bb.png


Can someone help me?
 
On tfs 0.3.6pl1

Everything double-checked.
Happens only when you're underground (or going underground)

Protocolgame.cpp
http://pastebin.com/HhYFRf62

Map.cpp
http://pastebin.com/9RLVqQsm



mI6PgDT.png

You can try raising the NETWORKMESSAGE_MAXSIZE value. This error happens when the server packs the network message incorrectly, so the client cant read it properly.

@Jeffers , @Diihzz I recommend you both to do the same thing. You guys errors are result of a bad communication between server/client.

Remember, always upgrade the value by 'X' thousands.
 
You can try raising the NETWORKMESSAGE_MAXSIZE value. This error happens when the server packs the network message incorrectly, so the client cant read it properly.

@Jeffers , @Diihzz I recommend you both to do the same thing. You guys errors are result of a bad communication between server/client.

Remember, always upgrade the value by 'X' thousands.

I'm using NETWORKMESSAGE_MAXSIZE 24590

it is necessary to increase more?
 
@darkshin I edited using various values and still gives the same error in the console. Every time my mob/monster out of the screen and back generates this error. Anyone know how to fix? pls guys :/

979a0eff87be44d298387b5ab626ce48.png
 
@Diihzz if you both tried higher values than 24590, like 30590 as example and still has it errors all I gotta say is that something else is going wrong and it's not related to this tutorial. Because server and client communication must be precise. Your error says that the server says something is moving in that tile but the client can't find anything there. I can't help you guys further.
 
1>protocolgame.cpp(2611): error C2065: 'skip' : undeclared identifier
1>protocolgame.cpp(2612): error C2065: 'skip' : undeclared identifier
1>protocolgame.cpp(2613): error C2065: 'skip' : undeclared identifier
1>protocolgame.cpp(2614): error C2065: 'skip' : undeclared identifier
1>protocolgame.cpp(2615): error C2065: 'skip' : undeclared identifier
1>protocolgame.cpp(2616): error C2065: 'skip' : undeclared identifier
1>protocolgame.cpp(2618): error C2065: 'skip' : undeclared identifier
1>protocolgame.cpp(2619): error C2065: 'skip' : undeclared identifier

someone know why that?

FIXED, my error..
 
What do I have to do so that only admins or hand picked players can do this?
 
What do I have to do so that only admins or hand picked players can do this?
Ot client has that built in.
Code:
addEvent(function()
    if not limitedZoom or g_game.isGM() then
      gameMapPanel:setMaxZoomOut(22)
      gameMapPanel:setLimitVisibleRange(false)
 
Sem_t_tulo.png





This is happens to me too. Already now how to fix?

map.cpp
/* * Copyright (c) 2010-2017 OTClient <https://github.com/edubart/otclient> - Pastebin.com


protocolgame
/** * The Forgotten Server - a free and open-source MMORPG server emulator * - Pastebin.com



Code:
        static const int32_t maxViewportX = 18; //min value: maxClientViewportX + 1
        static const int32_t maxViewportY = 18; //min value: maxClientViewportY + 1
        static const int32_t maxClientViewportX = 15;
        static const int32_t maxClientViewportY = 11;


solved
 
Last edited:
does not matter my fault it was an typing error in source solved
awesome tutorial
 
Last edited:
[QUOTE = "Flatlander, post: 2198969, member: 30883"]
  • Void Mapa :: resetAwareRange ()
  • {
  • AwareRange gama;
  • Range.left = 8;
  • Range.top = 6;
  • Range.bottom = 7;
  • Range.right = 9;
  • SetAwareRange (intervalo);
  • }
[/CITAR]

Isso não existe no meu map.cpp
 
Back
Top