bugFreeciv - Bugs: bug #21411, AI does not switch from coinage to...

 
 
Show feedback again

bug #21411: AI does not switch from coinage to newly available building

Submitted by:  Marko Lindqvist <cazfi>
Submitted on:  Thu Jan 2 00:52:43 2014  
 
Category: aiSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Assigned to: NoneOpen/Closed: Open
Release: Operating System: None
Planned Release: Contains string changes: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Fri Mar 21 07:18:08 2014, comment #1:

Coinage is a special case, as there is no penalty for switching from coinage to something else: might it make sense for the AI to check building want every turn while building coinage (perhaps by having Coinage "finish" each turn)?

Emmet Hikory <persia>
Project Member
Thu Jan 2 00:52:43 2014, original submission:

So far this is based solely on reading the code.

- Want for buildings is recalculated only once in every 5 turns, or when ever existing production is finished, or becomes unavailable.
- Want for buildings is 0 if some of their requirement is missing.
- Building coinage does not finish, and generally seems not to cause recalculation of the wants
- Building coinage causes reselecting of the build target every turn, but it's based on existing wants

To sum: If AI has no tech for some building at turn 0, it will get want 0, and AI may end up building coinage. If building then becomes available via researching the missing tech, want for it is not recalculated but remains 0. When selecting new target, coinage still has higher want than building with want 0.

At the moment I think the fix to be keeping real want even for those buildings that cannot be built at the moment. Selecting the build target will anyway consider available targets only.

Marko Lindqvist <cazfi>
Project Administrator

 

(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 persia (Posted a comment)
  • -unavailable- added by cazfi (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

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup