Zero_master
New Member
- Joined
- Sep 13, 2013
- Messages
- 33
- Reaction score
- 2
Hello,
I'm looking in the source files of 2.014 (protocol 9.6) for the function that deals with sending tiles to the client. I understand that the server already sends out 18 by 14 tiles to the client (that's 8 to the left, 9 to the right, 6 above and 7 below the player position.) .With the standard tibia client it shows only 15 by 11 of the tiles due to the interface being in the way. However, removing them with a custom client (e.g. the otclient) you will see the 18 by 14 tiles I have mentioned.
Looking at the picture below you can get an idea of what I mean.
The following lines seem to reference the values, but changing them doesn't make any obvious changes.
In protocolgame.cpp:
and
In map.h
Does anyone know which function dictates how many tiles are sent? I've been searching for the past few days and have decided to throw the towel in and ask for help.
Thanks!
I'm looking in the source files of 2.014 (protocol 9.6) for the function that deals with sending tiles to the client. I understand that the server already sends out 18 by 14 tiles to the client (that's 8 to the left, 9 to the right, 6 above and 7 below the player position.) .With the standard tibia client it shows only 15 by 11 of the tiles due to the interface being in the way. However, removing them with a custom client (e.g. the otclient) you will see the 18 by 14 tiles I have mentioned.
Looking at the picture below you can get an idea of what I mean.
The following lines seem to reference the values, but changing them doesn't make any obvious changes.
In protocolgame.cpp:
Code:
GetMapDescription(pos.x - 8, pos.y - 6, pos.z, 18, 14, msg);
and
In map.h
Code:
static const int32_t maxViewportX = 11; //min value: maxClientViewportX + 1
static const int32_t maxViewportY = 11; //min value: maxClientViewportY + 1
static const int32_t maxClientViewportX = 8;
static const int32_t maxClientViewportY = 6;
Does anyone know which function dictates how many tiles are sent? I've been searching for the past few days and have decided to throw the towel in and ask for help.
Thanks!