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 05 Oct 2010 10:02:46 AM UTC  
 
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 02 Jan 2011 10:01:14 PM UTC, 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 05 Oct 2010 10:02:46 AM UTC, 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:
http://svn.gna.org/viewcvs/wesnoth?view=rev&revision=37383

(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):
   
   
Comment:
   

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.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 24 Oct 2013 03:31:02 PM UTCflixxStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Sun 29 Jan 2012 09:18:45 PM UTCshadowmasterStatusPostponed=>None
    Sun 02 Jan 2011 10:01:14 PM UTCcrabStatusNone=>Postponed
    Tue 05 Oct 2010 12:14:03 PM UTCboucmanAssigned toNone=>crab
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup