AI ignores Prerequisite.Negative tag

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

Bug Description

Ares version: 0.1.1169
O.S.: Windows 7 Professional, 64 bits

I made 4 Super Weapons for one side but I wanted to force to choose 2 SW & forget the other 2 SW using Prerequisite.Negative tag, this code is how it looks:

;;;;; Group 1 of SW
[ngkanepyra]
Prerequisite=TSNACNST,TSNATECH
Prerequisite.Negative=TSNAMISL,TSNAWAST
SuperWeapon=TiberiumShowerSpecial
SuperWeapon2=EMPulseSpecial
TechLevel=10
AIBuildThis=yes
...

;;;;; Group 2 of SW
[TSNAMISL]
Prerequisite=TSNACNST,TSNATECH
Prerequisite.Negative=ngkanepyra
SuperWeapon=TSMultiSpecial
SuperWeapon2=TSChemicalSpecial ; <- AuxBuilding=TSNAWAST
TechLevel=10
AIBuildThis=yes
...

[TSNAWAST]
Prerequisite=TSNAMISL
Prerequisite.Negative=ngkanepyra
TechLevel=10
AIBuildThis=yes
...

When [ngkanepyra] building is built [TSNAMISL] & [TSNAWAST] buildings are unbuildable and when [TSNAMISL] &/or [TSNAWAST] is built [ngkanepyra] is unbuildable.
The problem is that AI will ignore Prerequisite.Negative tag and will build the 3 buildings, having all the 4 Super Weapons.

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

I'm pretty sure there are other prerequisite checks the AI happily bypasses in its base planning. There's an experimental branch ft-ai-base-planning to improve that, but it's not scheduled to be included in 0.2 .

Changed in ares:
status: New → In Progress
Renegade (renegade)
Changed in ares:
importance: Undecided → Low
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.