Page 1 of 1

2.0.6.1 | Path finding error

Posted: 09 Feb 2009, 15:34
by fall3nm0nk
OpenKore version 2.0.6.1
@ai_seq = route attack
Network state = 5
Network handler = Network::DirectConnection
SVN revision: unknown
Loaded plugins:
plugins/macro.pl (macro)

Error message:
Died at src/Utils/PathFinding.pm line 95.

Stack trace:
Died at src/Utils/PathFinding.pm line 95.
at src/Utils/PathFinding.pm line 95
PathFinding::reset('PathFinding=SCALAR(0x4eac8b8)', 'start', 'HASH(0x4e18140)', 'dest', 'HASH(0x4e76178)', 'field', 'Field=HASH(0x4ea618c)', 'weights', '\x{ff}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}...', ...) called at src/Utils/PathFinding.pm line 47
PathFinding::new('PathFinding', 'start', 'HASH(0x4e18140)', 'dest', 'HASH(0x4e76178)', 'field', 'Field=HASH(0x4ea618c)', 'weights', '\x{ff}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}\x{1}...', ...) called at src/Task/Route.pm line 393
Task::Route::getRoute('Task::Route=HASH(0x3af716c)', 'ARRAY(0x4d6aa40)', 'Field=HASH(0x4ea618c)', 'HASH(0x4e51398)', 'HASH(0x4eac498)', '') called at src/Task/Route.pm line 162
Task::Route::iterate('Task::Route=HASH(0x3af716c)') called at src/AI/CoreLogic.pm line 738
AI::CoreLogic::processTask('route', 'onError', 'CODE(0x3e5dbc8)') called at src/AI/CoreLogic.pm line 88
AI::CoreLogic::iterate() called at src/functions.pl line 593
main::mainLoop_initialized() called at src/functions.pl line 70
main::mainLoop() called at src/Interface.pm line 75
Interface::mainLoop('Interface::Console::Win32=HASH(0x400ec44)') called at openkore.pl line 96
main::__start() called at start.pl line 119

Died at this line:
$args{timeout} = 1500 unless $args{timeout};
* die if (!$args{field}{dstMap});
return $class->_reset($args{distance_map}, $args{weights}, $args{width}, $args{height},


I seem to get this error message whenever I go to maps that have a lot of holes in them. For example, whenever I teleport to any of the turtle dun maps (so far i tried each of the lower levels) my bot wouldn't be able to use random walk. Then I tried changing the config to have it randomly teleport around the map looking for a monster instead. When I found a monster it would crash trying to approach it.

Re: 2.0.6.1 | Path finding error

Posted: 10 Feb 2009, 01:24
by kali
It would seem you are missing your .distfiles

Re: 2.0.6.1 | Path finding error

Posted: 18 Oct 2010, 19:57
by kLabMouse
Tried to fix in r7530

P.S. This bug may happen if $field global var is 'undef'. and that one is another bug.

Moved to Fixed list.