r7532|Attack.pm error on Genetic class

This place is for Closed bug reports only. NOT for asking help!

Moderators: Moderators, Developers

Message
Author
kaBOTi
Plain Yogurt
Plain Yogurt
Posts: 78
Joined: 08 Jun 2008, 00:02
Noob?: No

r7532|Attack.pm error on Genetic class

#1 Post by kaBOTi »

I encounter this error when running my Genetic on veins map, either ve_fild03 or ve_fild07.

Code: Select all

OpenKore version what-will-become-2.1
@ai_seq = attack
Network state = 5
Network handler = Network::DirectConnection
SVN revision: 7532
No loaded plugins.

Error message:
Required arguments missing or wrong, specify correct 'field' or 'distance_map' and 'width' and 'height'
 at src/AI/Attack.pm line 501

Stack trace:
Required arguments missing or wrong, specify correct 'field' or 'distance_map' and 'width' and 'height'
 at src/AI/Attack.pm line 501
 at src/Utils/PathFinding.pm line 87
	PathFinding::reset('PathFinding=SCALAR(0x3ed0d14)', 'field', 'HASH(0x136058c)', 'start', 'HASH(0x21af174)', 'dest', 'HASH(0x3eca67c)') called at src/AI/Attack.pm line 501
	AI::Attack::main() called at src/AI/Attack.pm line 97
	AI::Attack::process() called at src/AI/CoreLogic.pm line 77
	AI::CoreLogic::iterate() called at src/functions.pl line 738
	main::mainLoop_initialized() called at src/functions.pl line 69
	main::mainLoop() called at src/Interface.pm line 75
	Interface::mainLoop('Interface::Console::Win32=HASH(0x117672c)') called at openkore.pl line 97
	main::__start() called at start.pl line 129
Last edited by kaBOTi on 21 Oct 2010, 01:42, edited 1 time in total.

User avatar
kLabMouse
Administrator
Administrator
Posts: 1301
Joined: 24 Apr 2008, 12:02

Re: Attack.pm error on Genetic class

#2 Post by kLabMouse »

Thus fields do not have .dist map.
Can be fixed recompiling portals.

And please, allow File Write to fields folder.

P.S. I've made this Error message to avoid other problems with $field or {DistMap} undefined.

kaBOTi
Plain Yogurt
Plain Yogurt
Posts: 78
Joined: 08 Jun 2008, 00:02
Noob?: No

Re: Attack.pm error on Genetic class

#3 Post by kaBOTi »

well when I checked the fields folder there was the .dist file ie ve_fild07.dist. to confirm that the fields forlder has write access I delete the .dist file and run my genetic. It successfully created a new .dist file but after,say, 5 mins of running that error will appear again.

My other characters are not experiencing this error. I'm using the multiple start.exe style FYI.

User avatar
kLabMouse
Administrator
Administrator
Posts: 1301
Joined: 24 Apr 2008, 12:02

Re: Attack.pm error on Genetic class

#4 Post by kLabMouse »

OK. People/Developers. Who know how the F* 'field'->'HASH(0x136058c)' ??? A simple Hash? How?

P.S.: Idea. Tie $field global var, so it's checked when changed.

jackylalala
Noob
Noob
Posts: 5
Joined: 21 Oct 2010, 05:35
Noob?: Yes

[r7531] Bug report

#5 Post by jackylalala »

OpenKore version what-will-become-2.1
@ai_seq = attack route
Network state = 5
Network handler = Network::DirectConnection
SVN revision: 7531
No loaded plugins.

Error message:
Required arguments missing or wrong, specify correct 'field' or 'distance_map' and 'width' and 'height'
at src/AI/Attack.pm line 501

Stack trace:
Required arguments missing or wrong, specify correct 'field' or 'distance_map' and 'width' and 'height'
at src/AI/Attack.pm line 501
at src/Utils/PathFinding.pm line 87
PathFinding::reset('PathFinding=SCALAR(0x58d24c4)', 'field', 'HASH(0x2c1cbbc)', 'start', 'HASH(0x3821cd4)', 'dest', 'HASH(0x564c044)') called at src/AI/Attack.pm line 501
AI::Attack::main() called at src/AI/Attack.pm line 97
AI::Attack::process() called at src/AI/CoreLogic.pm line 77
AI::CoreLogic::iterate() called at src/functions.pl line 738
main::mainLoop_initialized() called at src/functions.pl line 69
main::mainLoop() called at src/Interface.pm line 75
Interface::mainLoop('Interface::Console::Win32=HASH(0x22161fc)') called at openkore.pl line 97
main::__start() called at start.pl line 129

User avatar
kLabMouse
Administrator
Administrator
Posts: 1301
Joined: 24 Apr 2008, 12:02

Re: r7532|Attack.pm error on Genetic class

#6 Post by kLabMouse »

Tried to fix in r7534

Please report.

jackylalala
Noob
Noob
Posts: 5
Joined: 21 Oct 2010, 05:35
Noob?: Yes

Re: r7532|Attack.pm error on Genetic class

#7 Post by jackylalala »

It fixed! Thx a lot.

kaBOTi
Plain Yogurt
Plain Yogurt
Posts: 78
Joined: 08 Jun 2008, 00:02
Noob?: No

Re: r7532|Attack.pm error on Genetic class

#8 Post by kaBOTi »

Well I won't be able to test it until sat afternoon due to work stuffs :o I'll post my findings then if your query has not been answered yet by then.

User avatar
kLabMouse
Administrator
Administrator
Posts: 1301
Joined: 24 Apr 2008, 12:02

Re: r7532|Attack.pm error on Genetic class

#9 Post by kLabMouse »

Fixed. Moving to Fixed Reports.

Post Reply