![]() |
[Question] geodata and pathfinding
Hello
i am working on new L2 Server Emulator and i come at the problem how to implement pathfinding in my server. For that i need some information. There 3 ways to do that 1. To read the data from client (but i am almostsure that there no way to mark some position is it walkable or is not) 2. To parse geodata files from 'original' server 3. To get that info from l2walker data files. What exacly i need X,Y,Z position on ech point on the map and is that point is walkable or not If some one have information for file structure of those files and wont to share it will be great :) Thanks in advance PS : Sorry about my bad english but i hope that its understandable :) |
take a look at the l2j forum, they had several topics about that...
|
L2J have totaly diferent and system about geodata.
When online palayers walk arrount the server store the cordinates They dont have real geodata or maybe i am worong ? Quote:
|
yesterday i red some thoughts of 'em...
so try it... if i remember right some guy made a fast algorythm for storing it... (for insiders O(log n)~O(1)) and yeah u r right they store every x,y,z coordinate //Edit not for storing... i meant for finding a point in the files |
Actually l2j has a system to read official geodata files and perform collision detection and line of sight checks and it works perfectly .. It's not part of the main l2j distro because its a c++ dll that is called by loadlibrary from within the gameserver
Last I checked L2J was working on pathfinding and has achieved initial success .. check their contributions forum |
Thanks for the help i found the answer on HumorDwarf's homepage :)
|
| All times are GMT. The time now is 15:56. |