URL:
<http://gna.org/bugs/?18644>
Summary: Infinite loop during AI recruitment
Project: Battle for Wesnoth
Submitted by: grickit
Submitted on: Sun 11 Sep 2011 08:53:32 PM GMT
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Artificial Intelligence
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.9+
Operating System: all
_______________________________________________________
Details:
If you use a prerecruit event to kill the recruits of a side and refund them,
the AI will try to recruit forever.
[event]
name = prerecruit
first_time_only = no
[gold]
side=$side_number
amount=$unit.cost
[/gold]
[kill]
x,y=$x1,$y1
[/kill]
[/event]
I'm using a more complicated event than this to only let players recruit
under certain circumstances. The AI does seem to recognize that its recruits
are being killed (it puts out messages on the terminal to that effect - see
below). It should give up after X tries.
20110911 16:52:21 error ai/actions: Error #-1
(action_result::AI_ACTION_FAILURE) in recruitment by side 2 of unit type
[Peasant] on any suitable location
20110911 16:52:21 error ai/general: recruitment failed
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?18644>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs