Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [Question] geodata and pathfinding (https://postpacific.loc-online.com/showthread.php?t=6171)

Menta2K 06.11.2006 14:06

[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 :)

Met45 06.11.2006 15:36

take a look at the l2j forum, they had several topics about that...

Menta2K 06.11.2006 16:01

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:

Originally Posted by Met45 (Post 71612)
take a look at the l2j forum, they had several topics about that...


Met45 06.11.2006 17:14

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

HongK 06.11.2006 19:08

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

Menta2K 06.11.2006 23:55

Thanks for the help i found the answer on HumorDwarf's homepage :)


All times are GMT. The time now is 15:56.