bugBattle for Wesnoth - Bugs: bug #16823, AI stops recruiting when no unit...

Show feedback again

bug #16823: AI stops recruiting when no unit matches the recruitment pattern

Submitted by:  FAAB <faabumc>
Submitted on:  Tue Oct 5 10:02:46 2010  
Category: BugSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Artificial Intelligence
Status: FixedPrivacy: Public
Assigned to: Iurii Chernyi <crab>Open/Closed: Closed
Release: 1.9.1Operating System: gnu/linux

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Sun Jan 2 22:01:14 2011, comment #1:

known issue; is expected to be fixed in new recruiting version which was implemented (prototype so far) as part of the GCI

Iurii Chernyi <crab>
Project MemberIn charge of this item.
Tue Oct 5 10:02:46 2010, original submission:

When the recruit list of an AI side has been reduced (for example in the first scenario of World conquest when a side can only recruit from a list of 4 units), if the AI meets in its recruitment_pattern an item that matches no unit, it just stops recruiting.

This is due to a line put in comment in files:
src/ai/default/ai.cpp (line 269)
src/ai/testing/ca.cpp (line 354)

in the implementation of patch:

(that seems unrelated to the patch itself. Commented maybe for compilation problem)

How to test: gives the AI a side with Dwarvish Steelward in World Conquest and wait until it hits the recruitment pattern "archer" when its recruit list is Dwarvish Fighter,Dwarvish Thunderer,Footpad,Dwarvish Guardsman
The thunderer is a mixed fighter while the footpad is a scout.
The default recruitment pattern for knalgans is fighter,fighter,fighter,mixed fighter,archer,scout

The error message is raised:
20101005 17:02:06 warning ai/general: At difficulty level NORMAL, trying to recruit a:archer but no unit of that type (usage=) is available. Check the recruit and [ai] recruitment_pattern keys for team ' 3' (3) against the usage key of the units in question! Removing invalid recruitment_pattern entry and continuing...

FAAB <faabumc>
Project Member


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by flixx (Updated the item)
  • -unavailable- added by shadowmaster (Updated the item)
  • -unavailable- added by crab (Posted a comment)
  • -unavailable- added by boucman (Updated the item)
  • -unavailable- added by faabumc (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu Oct 24 15:31:02 2013flixxStatusNone=>Fixed
    Sun Jan 29 21:18:45 2012shadowmasterStatusPostponed=>None
    Sun Jan 2 22:01:14 2011crabStatusNone=>Postponed
    Tue Oct 5 12:14:03 2010boucmanAssigned toNone=>crab
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup