PDA

View Full Version : [SHARE] food for reflection


humordwarf
25.02.2006, 19:21
hmmm... hi
first of all, geodata is not a main problem for C3-C4 servers
main problem - pathfinding stuff for mobs and players
run "HD Inside PathNode" and you'll see nodes and links between nodes, then turn on your imagination and try understand and rebuild pathnode.bin (also .idx from bin) yourself.

example:
giran city, nodes:
http://img472.imageshack.us/img472/8445/hdipn18fx.th.jpg (http://img472.imageshack.us/my.php?image=hdipn18fx.jpg)

same place, links:
http://img472.imageshack.us/img472/8855/hdipn22ic.th.jpg (http://img472.imageshack.us/my.php?image=hdipn22ic.jpg)

u can get HD Inside PathNode v1.00 here: http://humordwarf.info/
(hope at least this tool will not be used for money making)

...just to save your time, ppl...

klemka
25.02.2006, 20:17
OMG! You work in ncsoft? :D

drzoom
25.02.2006, 20:29
Thanks, HD. Keep it up!

Mattho
25.02.2006, 21:27
OMG! You work in ncsoft? :D
lol probably...

wee
25.02.2006, 21:44
thx a lot, mate

Radmin
25.02.2006, 22:30
на самом деле пачтнфайндинг это не обязательная фича.
у меня на сервере например мобы вполне правильно и адекватно обходят все препятствия. Это проблем их аи, нужно было просто его продумать правильно, вот и все.

nucer
25.02.2006, 22:46
Судя по всему если нет пачнода для текущей точки, то моб начинает обходить препятсвие по какому то алгоритму поиска пути, не слишком эффетивному, но небольшую стену/лестинцу преодолевает, мелкие препядствия тем более.

Adelaide
25.02.2006, 22:55
-_-

Tell me that wasn't me giving you the idea to look into pathnode! :D

Nurgl
25.02.2006, 23:17
на самом деле пачтнфайндинг это не обязательная фича.
у меня на сервере например мобы вполне правильно и адекватно обходят все препятствия. Это проблем их аи, нужно было просто его продумать правильно, вот и все.
LOL !
Патчнод нежен больше для игроков чем для мобов :) если его вырубить игроки к стенкам прилепать начнут попадать в дверные проходы с 5ой попытки... На новых локациях игрокам без патчнода очень туго... Еще один прикол оказывается ТОИ в патчноед еще в С1 прописана была :lol:

humordawrf respect !!!

CubAfull
26.02.2006, 00:16
讲英语请 XD

kgptzac
26.02.2006, 00:18
讲英语请 XD

with the right grammar, it is:

请讲英语

Mirror
26.02.2006, 00:45
posting info on the format of pathnode.bin is IMHO better than posting a viewer

Megatronpt
26.02.2006, 01:51
Nice work HD!

;)

humordwarf
26.02.2006, 07:09
1. relax, all l2j users
2. path nodes can be viewed inside client, using //viewpn (lot of wooden arrows around) - and wow.. its not a rudiment stuff in C3.
3. to disable pathnode loading, trunc pathnode.bin file size to 0 bytes, you be happy
4. pathfinding can be disabled only players only (l2server top menu)
5. Mirror, you so interesting in it? Yes? But why you not turn on YOUR brain?
C:

struct
{
int x,y,z;
int link[8];
}

Pas:

TNode = record
x,y,z: integer;
link: array[0..7] of integer;
end;


6. HDIPN is not "good work", its just 30 mins of programming.

fights not need...

Mirror
26.02.2006, 21:30
this info is not enough. what 'link' variable is ?
i think i disagree. first 44 bytes are null and i believe they are the 11 first geos which are null.
still if you have full and certain info like chinese say 'it's better learning someone how to fish than giving him a fish to eat'

SoaPy
26.02.2006, 21:52
mirror ?P%~€@#... calm down

humordwarf
26.02.2006, 22:25
this info is not enough. what 'link' variable is ?
i think i disagree. first 44 bytes are null and i believe they are the 11 first geos which are null.
still if you have full and certain info like chinese say 'it's better learning someone how to fish than giving him a fish to eat'

kindergarten.....


var
nodes: array of TNode;
f: file;
begin
filemode:=0;
assignfile(f,'pathnode.bin');
reset(f,1);
setlength(nodes,filesize(f) div sizeof(TNode));
blockread(f,nodes[0],filesize(f));
closefile(f);
end.
// nodes[n].link[x] - our nodes array index
// sizeof(TNode) = 44 bytes
// sizeof(integer) = 4 bytes
// A = first letter of roman alphabet


good fish ?