Issue Information
-
#008574
-
0 - None Assigned
-
New
Issue Confirmations
-
Yes (0)No (0)
As said in title, path_search is failing with long distances.
What I did to test:
- Set MAX_WALK_PATH to 200
- Disabled monster random walk
- Create a script that would summon a monster and used unit_walk
From prontera 150 155 I could make monsters move to prontera 150 108, lower than 108 the monsters would not move as the path failed to be encountered, even though it's a straight line and there is absolute no obstacles.
What I did to test:
- Set MAX_WALK_PATH to 200
- Disabled monster random walk
- Create a script that would summon a monster and used unit_walk
From prontera 150 155 I could make monsters move to prontera 150 108, lower than 108 the monsters would not move as the path failed to be encountered, even though it's a straight line and there is absolute no obstacles.
if not mistaken, i think the view range also affect it ??
I don't think so, didn't find the word 'view' in unit.c / path.c
Why would view affect walking distance? View affect only spotting distance I think
Well, another thing is that even with 200 as max_walk_path, I can't even walk with my char with a distance greater than around 20~30 ( didn't count ).
Note: I did change the max value for max_walk_path in path.h as well.
@Edit
My baaaad.. I've just realized that I didn't actually change max_walk_path haha, now I've really changed it from 32 to 200. But monsters stills don't walk long distances, max achvied was from 155 to 108, so... 47 tiles.
Why would view affect walking distance? View affect only spotting distance I think
Well, another thing is that even with 200 as max_walk_path, I can't even walk with my char with a distance greater than around 20~30 ( didn't count ).
Note: I did change the max value for max_walk_path in path.h as well.
@Edit
My baaaad.. I've just realized that I didn't actually change max_walk_path haha, now I've really changed it from 32 to 200. But monsters stills don't walk long distances, max achvied was from 155 to 108, so... 47 tiles.
Edited by PcPocket, 15 March 2015 - 03:11 PM.
there is also a hardcoded limitation on path.h that limits the maximum number of instructions in a walkdata struct (and each instruction is a cell you move). However if I'm not mistaken raising that affects the way walkdata is calculated, so you get unexpected things
#define MAX_WALKPATH 200
yeah.. this one, right? ( Originally 32 )
That's what I'm saying, the way things are, you can't reach long distances, making unit_walk quite useless.
yeah.. this one, right? ( Originally 32 )
That's what I'm saying, the way things are, you can't reach long distances, making unit_walk quite useless.