[AI]>BuildPower list get the frist entry for a side as main Powerplant ignoring prerequisites

Bug #895455 reported by FS-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ares
New
Low
Unassigned

Bug Description

I found that if you add more than 1 power plant per side/country in [AI]>BuildPower list AI will get the first building in the list that he could build as the main Power plant, ignoring all the prerequisites to build it.

##### STEPS TO REPRODUCE #####
In [AI] section:
- If you have the default list like:
BuildPower=NAPOWR,GAPOWR,YAPOWR
- Put the Soviet Nuclear reactor before the basic Soviet power plant:
BuildPower=GAPOWR,NANRCT,NAPOWR,YAPOWR
- change
- If you play against an AI soviet, put SpySat=yes to your Construction Yard to reveal the map and Spy what the AI do and change the Power=2000 of the NANRCT by something more lower (i.e. Power=100).
- The first building that AI do is the Nuclear reactor and the next a standard power plant. that nuclear reactor needs "Prerequisite=NATECH,NACNST" and AI builds it in power-demand as if is the main Power plant.
- Sometimes AI builds the secondary powerplant in the list but always that needs power try to build the nuclear reactor first.

##### ADDITIONAL INFORMATION #####
If AI respects the prerequisites of the buildings in the [AI]>BuildPower list it can be used as a form to put Power plants construction list priorities for the AI when AI needs energy (As default try the first available, I haven't the requisites this time? try the next element of the list, no luck? the next...)

As addition: In my case I have another side/country that use in total power plants and putting the most advanced power plant before the basic it could replace basic power plants each time when the prerequisites are met.

Is supposed to be a bug report but solving the prerequisites it can be a new feature.

Revision history for this message
DCoder DCoder (dcoder1337) wrote :

Was this test done in Ares? Which version?

Revision history for this message
FS-21 (jagarni1983) wrote :

Sorry but for that date I was using the most recent Ares release but I forgot to add the number (or the bug tracker had the problem to show me the Ares versions in the "Product Version" box).

Using again the steps to reproduce it I can confirm that with revision 656 of Ares still happen.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.