Passable Terrain in sro?

03/23/2009 12:32 hack0r89#1
Does anyone knows how silkroad "knows" where a char can walk on and where it cant (hills, walls...)
in the sremu project the server answers a walk-to-request only with a confirmation without a check. so i think it is client related, is it?

but where is it stored? in the a pk2-file?

any help would be nice
03/30/2009 12:49 hack0r89#2
isnt there anyone out who knows this?
03/30/2009 22:02 ms​#3
It's most likely server-sided.
03/30/2009 22:04 TheOwnWay#4
Silkroad is a server-sided game, not even speedhack works.
03/31/2009 13:16 hack0r89#5
i tried a few things
walking works like this:
client sends: walk to B (behind a wall)
server sends: char xyz is walking from A->B
-->all clients see the char walking (Point B is still behind a wall)
as soons as the char reaches the wall server sends: char xyz stuck at C
-->char not moving anymore

ok so far. but what do you think happens if i dont let the client receive the stuck packet?
i tried it and pulled the lan cable out of my computer as soon as the char started moving
and guess what happened: the char stopped right in front of the wall

so i assume: the client knows the terrain. and the server knows it too (no packet that the client stucked is send FROM the client) and tells it to other players

i found a folder "navmesh" inside the data.pk2
i thin this could be the terrain. but i dont know how to parse it
03/31/2009 15:32 ms​#6
If you change the terrain information, it won't change the fact that your character will get stuck since the server knows that there's an obstacle.
Maybe it will look like you're able to walk through obstacles, but the server knows that you're stuck.
03/31/2009 16:37 hack0r89#7
i dont want to change anything. i just want to read the terrain information
04/01/2009 00:33 ms​#8
That should be possible. If you walk to an obstacle the character instantly stops in front of it so it must be stored somewhere in a pk2-file. Otherwise you would notice lag.
04/01/2009 11:05 hack0r89#9
and this is what im looking for
04/06/2009 20:15 hack0r89#10
i cant find anything related to this problem
it cant be so hard to read a file
how are these navmeshs stored?