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

Programmer OtclientV8 + TFS source change

Itutorial

Legendary OT User
Joined
Dec 23, 2014
Messages
2,421
Solutions
68
Reaction score
1,074
I have created a visibility system where players cannot see creatures that are too far away (even if they are within the screen area). The visibility is determined by day/night and weather like snow, ect. The player can gain more visibility using a light source. The server side of this code I believe is working but the client side there seems to be issues. The creatures are being copied on the screen and not updating in the battle list correctly. The battle list gets spammed with the same creature. I think there is something I need to do to tell the client when to update all the information.

Anyway, I will pay for this to be solved. I don't have time to focus on this. Must be able to accept cash app.
 
I have created a visibility system where players cannot see creatures that are too far away (even if they are within the screen area). The visibility is determined by day/night and weather like snow, ect. The player can gain more visibility using a light source. The server side of this code I believe is working but the client side there seems to be issues. The creatures are being copied on the screen and not updating in the battle list correctly. The battle list gets spammed with the same creature. I think there is something I need to do to tell the client when to update all the information.

Anyway, I will pay for this to be solved. I don't have time to focus on this. Must be able to accept cash app.
well done but why handle visibility from serverSide? instead send flag to each spectator based on distance bool creatureCanBeSeen = distanceX < 5 and distanceY < 5

msg.addByte(creatureCanBeSeen ? 1 : 0);

finally you just handle visibility from clientSide by adding simple flag in addCreature you decide to go through the creature setup or not
 
well done but why handle visibility from serverSide? instead send flag to each spectator based on distance bool creatureCanBeSeen = distanceX < 5 and distanceY < 5

msg.addByte(creatureCanBeSeen ? 1 : 0);

finally you just handle visibility from clientSide by adding simple flag in addCreature you decide to go through the creature setup or not
That sounds like you could just cheat the system client side.
 
Back
Top