Post Pacific

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

humordwarf 25.02.2006 19:21

[SHARE] food for reflection
 
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/8...ipn18fx.th.jpg

same place, links:
http://img472.imageshack.us/img472/8...ipn22ic.th.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

Quote:

Originally Posted by klemka
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

Quote:

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

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

humordawrf respect !!!

CubAfull 26.02.2006 00:16

讲英语请 XD

kgptzac 26.02.2006 00:18

Quote:

Originally Posted by CubAfull
讲英语请 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:
Code:

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

Pas:
Code:

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

Quote:

Originally Posted by Mirror
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.....

Code:

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 ?


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