Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 22.03.2006, 14:56   #26
drugolo
Архивный участник
 
Join Date: Jun 2005
Posts: 93
Default

OMG, really, shake your head and make some neuron collide, please.

- grab c1 geodata of giran town.
- grab toi, goe, anyshitthatyouwantthatyouhavemadewithhdge.
- build pathnode of the whole
- load all up
- go to GK of giran, click behind the stairway of the GK. cool, you avoid the obstacle.
- go anyshitofplace (builded fully with hdge, example: TOI, 1st floor, click behind the big column in the middle of the room) that you think it should do the same and try. it will not do it.

so, the pathnode generator is ok, the problem is the map.
drugolo is offline  
Old 22.03.2006, 14:58   #27
kvoxi
Архивный участник
 
Join Date: Oct 2005
Posts: 102
Default

l2server.exe issue
It is not possible to make all ways and put them into pathnode.bin
kvoxi is offline  
Old 22.03.2006, 15:00   #28
demon
Архивный участник
 
Join Date: May 2005
Posts: 367
Default

In My Opinion

Area within which mob moves is controled by npcpos(territory)
if a mob can pass or cant pass an obstacle is controled by pathnode,geodata because, u give a territory for mob to move and territory includes everything
but everything for that territory is controled by geodata,pathnode

l2server,npcserver just reads data not control mob (stop start walk jump run) this is Ai function

so, geodata Or? pathnode is the problem
demon is offline  
Old 22.03.2006, 15:56   #29
Mirror
Архивный участник
 
Join Date: Oct 2005
Posts: 330
Default

Quote:
Originally Posted by drugolo
OMG, really, shake your head and make some neuron collide, please.

- grab c1 geodata of giran town.
- grab toi, goe, anyshitthatyouwantthatyouhavemadewithhdge.
- build pathnode of the whole
- load all up
- go to GK of giran, click behind the stairway of the GK. cool, you avoid the obstacle.
- go anyshitofplace (builded fully with hdge, example: TOI, 1st floor, click behind the big column in the middle of the room) that you think it should do the same and try. it will not do it.

so, the pathnode generator is ok, the problem is the map.
misread your first post. still i believe it's not a geodata problem.
the only thing geodata defines is whether you can move or not towards some direction, nothing else. just 16 types of flags from 0 ( all nonwalkable ) to 15 ( all walkable ). everything else is a pathnode matter. so the probabilities are :
1- files parsed by l2server.exe for pathnode are only c1 maps ( needs hexing)
2- pathnode.bin needs a better geo structure than the one created by pathnode builder
3- pathnode builder error, i cant assume anything on this cause i don't even know the theory of pathnode let alone how this program works.

it would really help if theory of pathnode was not a secret
Mirror is offline  
Old 22.03.2006, 18:09   #30
askey
Архивный участник
 
Join Date: May 2005
Posts: 39
Default

a noob question: what contain exactly pathnode.bin ? is a hash file for geodata ?
another Q: .unr map files (client side) contains heights of terrain ?

sry for offtopic
askey is offline  
Old 22.03.2006, 19:14   #31
drugolo
Архивный участник
 
Join Date: Jun 2005
Posts: 93
Default

Quote:
Originally Posted by Mirror
misread your first post. still i believe it's not a geodata problem.
the only thing geodata defines is whether you can move or not towards some direction, nothing else. just 16 types of flags from 0 ( all nonwalkable ) to 15 ( all walkable ). everything else is a pathnode matter. so the probabilities are :
1- files parsed by l2server.exe for pathnode are only c1 maps ( needs hexing)
2- pathnode.bin needs a better geo structure than the one created by pathnode builder
3- pathnode builder error, i cant assume anything on this cause i don't even know the theory of pathnode let alone how this program works.

it would really help if theory of pathnode was not a secret
then can you explain why the stairway of Giran works and same for any tree or anything from C1 but not the new maps manually done by us? (c2,c3,c4)
Also, you say that "files parsed by l2server.exe for pathnode are only c1 maps" but TOI map (23_18) is C1 (was closed the inside, but the map was there) so it should be parsed from the list but... not work

Also, already checked the exe, there is no maplist inside it.
drugolo is offline  
Old 22.03.2006, 19:46   #32
Mirror
Архивный участник
 
Join Date: Oct 2005
Posts: 330
Default

i cant explain why it doesnt work, i can explain why it is not geodata fault

IF ( geodata had also other info inside for pathfinding etc. ) THEN ( some bits in geofiles would be used to keep such info ). which means that we wouldn't have ACCURATE values for Z as we do... ( the same problem when we didn't know about NSWE flags - 4 last bits )

edit : sorry, it would be even worse, not only not accurate Z but not walkable maps at all since they would intervene with flags bits
Mirror is offline  
Old 22.03.2006, 20:02   #33
-=KIRALEX=-
Архивный участник
 
Join Date: Mar 2006
Posts: 17
Default

Это дело в AI вамже радмин все ясно показал
-=KIRALEX=- is offline  
Old 22.03.2006, 20:17   #34
Mirror
Архивный участник
 
Join Date: Oct 2005
Posts: 330
Default

drugolo some questions :

1. do the mobs find their path in c1 maps with the NEW pathnode ?
2. do the mobs find their path in c1 map in some catacomb/necro with the NEW pathnode ??
3. is the NEW pathnode identical to the old one for c1 maps ? ( of course you have to know the structure of pathnode.bin to answer to this )

well if the answer to those quetions is YES then there may be a new possibility that just came accross my mind :

IT'S NOT A BUG, IT'S A FEATURE ( of the LE )
Mirror is offline  
Old 22.03.2006, 20:51   #35
drugolo
Архивный участник
 
Join Date: Jun 2005
Posts: 93
Default

and what about missing water level then? we still miss a lot of stuffs of Geoediting and this can be another one.

and the replies:
1. yes
2. yes
3. dunno, i can't say it (but 99% is "no"). We would need the exact set of maps used to generate the C1 one (dunno if anyone have them, still) and watch/compare the output generating the pathnode from them (and compare the result with the official pathnode)
drugolo is offline  
Old 22.03.2006, 21:04   #36
askey
Архивный участник
 
Join Date: May 2005
Posts: 39
Default

Quote:
Originally Posted by Mirror
drugolo some questions :
....
IT'S NOT A BUG, IT'S A FEATURE ( of the LE )
what is LE ?
askey is offline  
Old 22.03.2006, 21:10   #37
Mirror
Архивный участник
 
Join Date: Oct 2005
Posts: 330
Default

@askey : pathnode.bin generator Light Edition...isn't it how he called it ? :P

@drugolo : i have no answer for water, MAYBE it's in pathnode ..i repeat knowing the theory of pathnode.bin / structure is a basis to solve as a team the incomplete places
Mirror is offline  
Old 22.03.2006, 21:18   #38
Xellos
Архивный участник
 
Join Date: Feb 2006
Posts: 88
Default

the format inside the pathnode.bin is easy

it's a list of nodes
and each node contains of 11 dwords (44 bytes)
dword x, y, z
dword index1..8
and the index points to a connected node

that's all afaik
Xellos is offline  
Old 22.03.2006, 21:33   #39
Mirror
Архивный участник
 
Join Date: Oct 2005
Posts: 330
Default

what about headers and connections ?
Mirror is offline  
Old 22.03.2006, 21:39   #40
Xellos
Архивный участник
 
Join Date: Feb 2006
Posts: 88
Default

there is no header

and the index is directly pointing to other nodes (list index)
but i haven't checked if it's an one-way-connection

each node can connect to max eight other nodes
an index of 0 defines "no connection"

and the node[0] is filled with 0 and have to be ignored

it's a dump of an one dimensional array
and contains filesize/44 nodes


and what's the content of the idx file (text)?
Xellos is offline  
Old 22.03.2006, 22:29   #41
Mirror
Архивный участник
 
Join Date: Oct 2005
Posts: 330
Default

dunno if this is true. there has to be header...how does l2server know WHICH .dat it loads...? i believe there are headers... first 44 null bytes i believe are 11 null ( missing geos ) ( scanned vertically ).
pathnode.idx is a scan of all world in 256 sizes ( two 128 blocks ) which means one geo is 128*128 in .idx grid. third value dunno what it is

edit : and according to this theory, to which nodes is linked ? 8 neigbhours in a 3x3 square ? if so, what the link mean ?
Mirror is offline  
Old 22.03.2006, 22:35   #42
Xellos
Архивный участник
 
Join Date: Feb 2006
Posts: 88
Default

no, there are the x,y coords like in /loc or ///stat l2 inside the .bin
and there is only one huge file
= no need for a header

some days before HD posted his "inside pathnode" tool, i was on a pathnode splitter/merger but i halted this project ^^
maybe i continue tomorrow, and we can look at some smaller (per map) files - splitting was easy but the merger have to recalculate the indices... but it's possible
Xellos is offline  
Old 22.03.2006, 22:38   #43
Mirror
Архивный участник
 
Join Date: Oct 2005
Posts: 330
Default

hm integers eh. and what is the rotation and where it starts ? for nodes? and what a link mean ?
Mirror is offline  
Old 22.03.2006, 22:55   #44
Xellos
Архивный участник
 
Join Date: Feb 2006
Posts: 88
Default

which rotation?
it's a one dimensional array of nodes (x,y,z point + 8 links)
x,y are the normal coordinates
and the links = index inside this array to another node
and each node contains up to 8 links

but i don't know... are this links two-way or one-way tickets?
we have to figure this out, maybe this is one of the probs

the original geo is build of many pathnodes around obstacles
the one from HD is only based on a grid

here is a list with nodecount for each map from original pathnode
Code:
20,18: 65204
20,13: 64630
20,14: 92399
20,15: 55556
20,19: 45284
20,20: 70591
20,21: 78937
20,22: 53268
20,23: 59966
20,24: 16384
16,21: 23550
16,22: 16384
16,23: 16384
16,24: 30576
16,25: 40231
17,20: 49489
17,21: 72762
17,22: 69040
17,23: 25876
17,24: 16423
17,25: 41856
18,14: 75681
18,19: 59270
18,20: 52018
18,21: 83027
18,22: 79720
18,23: 81658
18,24: 34701
18,25: 16384
19,13: 59270
19,14: 87912
19,15: 72671
19,18: 59430
19,19: 43456
19,20: 49035
19,21: 50893
19,22: 77746
19,23: 88717
19,24: 38804
19,25: 16384
21,18: 93385
21,19: 53313
21,20: 65527
21,21: 99707
21,22: 94594
21,23: 66167
21,24: 16384
21,25: 18450
22,17: 85834
22,18: 94800
22,19: 80948
22,20: 60050
22,21: 81199
22,22: 90199
22,23: 42176
22,24: 19216
23,11: 56601
23,12: 129585
23,17: 75071
23,18: 55177
23,19: 133260
23,20: 128788
23,21: 83513
23,22: 41918
24,11: 65363
24,12: 139689
24,17: 65041
24,18: 55657
24,19: 44905
24,20: 86682
24,21: 40264
25,11: 70353
25,12: 169066
25,18: 67676
25,19: 71734
25,20: 43338
25,21: 18143
Xellos is offline  
Old 23.03.2006, 08:24   #45
Mirror
Архивный участник
 
Join Date: Oct 2005
Posts: 330
Default

yes i got it, indexes are random not necessary in a grid like in pathnode.idx. what about multifloor areas ? cruma, catacombs etc ?? what happens there with pathnode ? there should be at least X "layers" of pathnode there. your comment about links, if i define a link between node x and y, can also a link between link y and x be defined ? and if index is 0 as you mean, which means no links, to which coordinate it refers ?
Mirror is offline  
Old 23.03.2006, 09:54   #46
demon
Архивный участник
 
Join Date: May 2005
Posts: 367
Default

Quote:
Originally Posted by askey
Quote:
Originally Posted by Mirror
drugolo some questions :
....
IT'S NOT A BUG, IT'S A FEATURE ( of the LE )
what is LE ?
Leecher Edition
demon is offline  
Old 23.03.2006, 10:28   #47
Mirror
Архивный участник
 
Join Date: Oct 2005
Posts: 330
Default

xellos : the third number in .idx may be the number of nodes for the section it refers too, but has to be counted as a total and see if they're equal to 4835339.

btw pathnode.bin size is 212754960 but 4835339*44=212754916 which makes it 44 bytes bigger than the total number of nodes described in .idx
Mirror is offline  
Old 23.03.2006, 10:53   #48
Megatronpt
Архивный участник
 
Join Date: Jan 2006
Posts: 584
Default

Quote:
Originally Posted by demon
Leecher Edition
Grunf.. Copycat!!

:P
Megatronpt is offline  
Old 23.03.2006, 12:21   #49
Mirror
Архивный участник
 
Join Date: Oct 2005
Posts: 330
Default

xellos, if index 1...8 points to another node shouldn't it be in x,y,z format to identify exact node which means 3(coords)*4(bytes)*8(indexes)=96 bytes?
Mirror is offline  
Old 23.03.2006, 13:17   #50
Xellos
Архивный участник
 
Join Date: Feb 2006
Posts: 88
Default

x,y,z = 3*4 -> 12 bytes
+
8x index = 8*4 -> 32 bytes
=
total 44 bytes

why do u multiply?


btw - index[0] is not counted in .idx but is 44 bytes... = size is absolutely correct

and yes, there can be more pairs of x,y with different z for multilayer
Xellos is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 18:47.