Quote:
Originally Posted by martoon
We need someone who knows how to edit Conquer.exe :D
The client remove the objects without even sending a packetwhen they are 18 coords away, the source is responsible for removing the entity object to make sure the respawn when you are back to the area.
To be honest, playing with the packets somehow allowed me to increase the range, it is not working well and is not a solution.
I saw that on one of the servers, which is really nice, it is probably something with the client and I'm not really good with editing this.
If anyone can help with it I will be really thankful.
|
If you don't know how to make edits to the conquer.exe you aren't going to be able to achieve what you are wanting to achieve. The server has nothing to do with the client removing objects that are out of range. Yes, you can remove objects, and your source may very well be sending a packet to remove an object that is out of range but that isn't correct, the client does it automatically.
I can't even point you to any sort of tutorial about editing an executable because I learned at the university of google and just clicking stuff in x96dbg and ghidra, or ollydbg before that.
Quote:
Originally Posted by pintinho12
Thinking about the Demons source, it'd be difficult to increase the range because it would mean that we need to increase the blocks range.
If you're in one edge of the block, the closest "view range" edge will be 18 coords away from you but the fartest will be 18*2.
|
That function i posted above doesn't calculate distance, it just checks that both delta X and delta Y are less than, or equal to, _BLOCK_SIZE (soul reference), which happens to be 18.
Quote:
Originally Posted by Latyos
Are you guys sure it's set to exactly 18? Not really sure what's causing this
|
Manually calculated delta X and delta Y. I would think that the NPC disappears when either dX or dY = 19. I would also guess that the NPC respawns when your dX or dY is 17, which is because your source is improperly checking for in screen.
Looking at A LOT of public sources they don't correctly determine if an object is "in screen". Seems like a lot of sources use euclidean distance for determining if something is "in screen", which is incorrect. The image below illustrates what the issue is. The client would keep track of the objects in the yellow while the server would not continue to send updates for those objects.
[Only registered and activated users can see links. Click Here To Register...]