Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Help (https://postpacific.mmorpg-game.online/forumdisplay.php?f=37)
-   -   ≈ [Q] Why mobs almost always "lost" paths? AI or HEX (https://postpacific.mmorpg-game.online/showthread.php?t=3740)

Mirror 22.03.2006 22:29

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 ?

Xellos 22.03.2006 22:35

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

Mirror 22.03.2006 22:38

hm integers eh. and what is the rotation and where it starts ? for nodes? and what a link mean ?

Xellos 22.03.2006 22:55

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


Mirror 23.03.2006 08:24

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 ?

demon 23.03.2006 09:54

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 ) :p

what is LE ? :)

Leecher Edition

Mirror 23.03.2006 10:28

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

Megatronpt 23.03.2006 10:53

Quote:

Originally Posted by demon
Leecher Edition

Grunf.. Copycat!!

:P

Mirror 23.03.2006 12:21

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?

Xellos 23.03.2006 13:17

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

Mirror 23.03.2006 13:41

my problem is in index1...8 ? it's 8 integers pointing to 8 nodes. which nodes? what does the index shows? node number ? what ?

Xellos 23.03.2006 15:47

its an ONEdimensional array

node[0] <-- the empty thing
node[1] <-- here starts the first real node
node[2]
node[3]
node[4]
...
node[2345623]

===

when node1 is:
x = 23476
y = 76542
z = -3600
index1 = 1 ---> node[1]
index2 = 3 ---> node[3]
index3 = 7 ---> node[7]
index4 = 9 ---> node[9]
index5 = 0 - nothing
index6 = 0 - nothing
index7 = 0 - nothing
index8 = 0 - nothing

the index is directly used as the index into this array...

cool_santino 23.03.2006 15:56

new geo 23_18 generated by hd generator -pathnode work great... no problems :-)

Mirror 23.03.2006 15:58

ok so hm for big areas without obstacles we place no nodes ? i saw in that hdinside pathnode that for such areas there existed every 256 units i think and an X type link of their corners.

Xellos 23.03.2006 16:20

yes, only few nodes for such areas and a node every 2 subcells around obstacles

nice to view ingame... all the wooden arrows with the numbers ;)

Mirror 23.03.2006 16:24

so we still don't know what is the third number in .idx, first two numbers is grid of geo every 2 subcells, making them 128*128 per geo. but third number is still a mystery

edit : and it just dawned to me that we can add things in the end of pathnode.bin since there is no hierarchy, no need to rebuild for areas that haven't changed

edit2 : and one more question xellos, how near should the player/mob be to the node coords so it is considered that it is ON the node so it can follow the path-link to the next one ? i mean how big is the radius of each node..it's area

Xellos 23.03.2006 17:20

that's another question
how does the l2server determines the nearest node

but i guess that this is the prob with some maps and new build pathnodes

Mirror 23.03.2006 17:34

yes but we first need to answer this question and THEN link the nodes, i think it will have better results :)

NoICE 10.07.2006 17:57

I tried once to make a map on UT engine... it was small map, two rooms connected with hallway...
when i pressed "Build pathnode" it tooks on my athlon 1700+ at least 10 minutes. The engine calculates all things around etc.

If you want to know if pathnode have radius, run UE editor and place one, select propertioes of it... you will see what it exactly have.
(i can't, i dont have UE engine installed right now. )


All times are GMT. The time now is 14:49.