Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 25.02.2006, 19:21   #1
humordwarf
Архивный участник
 
Join Date: Feb 2006
Posts: 453
Default [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:


same place, links:


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...
humordwarf is offline  
Old 25.02.2006, 20:17   #2
klemka
Архивный участник
 
Join Date: May 2005
Posts: 59
Default

OMG! You work in ncsoft?
klemka is offline  
Old 25.02.2006, 20:29   #3
drzoom
Архивный участник
 
Join Date: Aug 2005
Posts: 428
Default

Thanks, HD. Keep it up!
drzoom is offline  
Old 25.02.2006, 21:27   #4
Mattho
Архивный участник
 
Join Date: Jan 2006
Posts: 188
Default

Quote:
Originally Posted by klemka
OMG! You work in ncsoft?
lol probably...
Mattho is offline  
Old 25.02.2006, 21:44   #5
wee
Архивный участник
 
Join Date: Feb 2006
Posts: 5
Default

thx a lot, mate
wee is offline  
Old 25.02.2006, 22:30   #6
Radmin
Архивный участник
 
Join Date: Oct 2005
Posts: 54
Default

на самом деле пачтнфайндинг это не обязательная фича.
у меня на сервере например мобы вполне правильно и адекватно обходят все препятствия. Это проблем их аи, нужно было просто его продумать правильно, вот и все.
Radmin is offline  
Old 25.02.2006, 22:46   #7
nucer
Архивный участник
 
Join Date: May 2005
Posts: 117
Default

Судя по всему если нет пачнода для текущей точки, то моб начинает обходить препятсвие по какому то алгоритму поиска пути, не слишком эффетивному, но небольшую стену/лестинцу преодолевает, мелкие препядствия тем более.
nucer is offline  
Old 25.02.2006, 22:55   #8
Adelaide
Архивный участник
 
Join Date: Jun 2005
Posts: 82
Default

-_-

Tell me that wasn't me giving you the idea to look into pathnode!
Adelaide is offline  
Old 25.02.2006, 23:17   #9
Nurgl
Архивный участник
 
Join Date: May 2005
Posts: 118
Default

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

humordawrf respect !!!
Nurgl is offline  
Old 26.02.2006, 00:16   #10
CubAfull
Архивный участник
 
Join Date: Aug 2005
Posts: 119
Default

讲英语请 XD
CubAfull is offline  
Old 26.02.2006, 00:18   #11
kgptzac
Архивный участник
 
Join Date: Jan 2006
Posts: 363
Default

Quote:
Originally Posted by CubAfull
讲英语请 XD
with the right grammar, it is:

请讲英语
kgptzac is offline  
Old 26.02.2006, 00:45   #12
Mirror
Архивный участник
 
Join Date: Oct 2005
Posts: 330
Default

posting info on the format of pathnode.bin is IMHO better than posting a viewer
Mirror is offline  
Old 26.02.2006, 01:51   #13
Megatronpt
Архивный участник
 
Join Date: Jan 2006
Posts: 584
Default

Nice work HD!

Megatronpt is offline  
Old 26.02.2006, 07:09   #14
humordwarf
Архивный участник
 
Join Date: Feb 2006
Posts: 453
Default

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...
humordwarf is offline  
Old 26.02.2006, 21:30   #15
Mirror
Архивный участник
 
Join Date: Oct 2005
Posts: 330
Default

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'
Mirror is offline  
Old 26.02.2006, 21:52   #16
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

mirror ?P%~€@#... calm down
SoaPy is offline  
Old 26.02.2006, 22:25   #17
humordwarf
Архивный участник
 
Join Date: Feb 2006
Posts: 453
Default

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 ?
humordwarf is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 23:21.