URL:
<http://gna.org/bugs/?12304>
Summary: Spurious message emitted by AI recruitment code
Project: Battle for Wesnoth
Submitted by: esr
Submitted on: Friday 09/12/2008 at 10:26
Category: Bug
Severity: 2 - Minor
Priority: 5 - Normal
Item Group: Artificial Intelligence
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: trunk r29411
Operating System: All
_______________________________________________________
Details:
This should be easy to fix, but I don't know the AI internals and it's way
past my bedtime.
The AI sometimes emits a message like this: "Deprecated WML found: Trying to
recruit a: scout but no unit of that type (usage=) is available. Check the
recruit and [ai] recruitment_pattern keys for team XXXX against the usage key
of the units in question! Removing invalid recruitment_pattern entry and
continuing..."
This gets triggered when a team has an empty (unspecified) recruitment
pattern and no recruitable units of type scout. What happens is that the AI
sees nearby villages and preferentially tries to recruit scouts to grab them,
but cannot and then behaves as though WML specified a bad (inconsistent)
pattern.
The logic of the fix needed is clear and I have added a FIXME comment near
ai.cpp:1790 to explain it. This could be an EasyCoding project for a
beginning C++ dev.
Attached: a save that triggers the spurious message emission. Load it, end
Side 1's turn and you'll see it - referring to team Gore. The mission is to
make that message go away.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Friday 09/12/2008 at 10:26 Name: spurious-message-save.gz Size: 0B
By: esr
<http://gna.org/bugs/download.php?file_id=4790>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?12304>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs