PDA

View Full Version : what geodata is used for.


fflam
01.10.2005, 05:29
ok first off this is more for people wrighting a emu then server mods, and second lets all get on the same page.

~~~~~~some reading so i dont have to explain it all~~~~~~
http://w ww.gamedev.net/reference/articles/article2003.asp
http://w ww.gamasutra.com/features/19970801/pathfinding.htm
http://w ww.gamasutra.com/features/20020405/smith_01.htm

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ok as all of you who read the links above (or at least glanced at them) should know im descusing geodata's possable use in npc (and even pc) pathfinding.

ok so im goign to jump right into it. now we all know that geodata is made up of a big grid (as review its a 256x256 grid with each grid containing a sub grid of 8x8 to make a total grid of 2048x2048 squares). now if you read any of the posts above you will notice each one says inorder to make something to find a path from point A to point B you need to break up your area into a grid. simple right? then how would one do it with a game as big as l2? then it hit me. the geodata is allredey a grid why not use that!?!?

now i know what your thinking. what about the diffrent headder types? each file is not one uniform grid. well does it really need to be? if you read the 3rd link you can just make those 00 type headders as big sectors in your pathnodeing program. becuse we know that all the data in those type of headders are the same (ok so not exactley the same but we know its an open area) why proccess the data more then once when you dont have to?

just thought id post my ideas here so i dotn lose track of them. hope this is of some help to others.

flakka
01.10.2005, 06:17
I had to edit the link because... well lets just say I've known people that run these sites and I know the seedy shit they pull sometimes.

elcapo
01.10.2005, 07:42
fflam: the pathfinding is managed with pathnode.bin file.
Geodatas validates positions, and obstacles.

fflam
01.10.2005, 17:23
yes the data is stored and used formt eh pathnode.bin file. but the raw data has to be taken and created from somethign on server start up. if not then even if you changed the geodata then npc's would still try to pat though points that you have made impassable. example. npcs stay out of houses that are scattered about the landscape. but walk right though buildings that thay added in teh leto lizzard man area.