Allied AI builds ACHQ before War Factory

Bug #895910 reported by Chanterier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ares
Fix Released
Medium
DCoder DCoder

Bug Description

This is a trivial bug but I'm posting this anyway, because it changes original game behaviour and makes Allied AI behave differently than Soviet or Yuri's in the early game. This has some significance, especially when AI is modified - at least it is for me.

In the original Yuri's Revenge this order is different - War Factory is placed before ACHQ. Reverse order slightly influences AI's behavior

For Soviets and Yuri, the order stays the same even with Ares - first comes factory, then comes radar.

Revision history for this message
MasterHaosis (masterhaosis) wrote :

Hmmm... I did not notice this. Going to check.

EDIT:
Speeder seems right here. I tested with easy allied, we were Allies. After deploying Command center, he constructed power plant, barracks, Ore refinery, Airfield, then War factory

Revision history for this message
Beowulf (genkosygin) wrote :

Didn't the Allied AI always do that?

Revision history for this message
Chanterier (speederyr) wrote :

You know, I tested this before I posted. With and without Ares. It'd be better if someone else checked this for both cases and then report.

Revision history for this message
secondwtq (secondwtq) wrote :

My MOD's seventh side builds radar(= airpad) before Factory too.

Revision history for this message
Graion Dilach (graiondilach) wrote :

YR 1.001 vs. Ares 0.1.858.

Bug seems correct by test with an Easy French AI.

Revision history for this message
WoRmINaToR (worminator) wrote :

My allied AI seems to never even build anything past its radar.

And it builds that radar before its war fac.

Revision history for this message
cranium (cranium) wrote :

My mod's Allied AI builds warfactory first before radar

Revision history for this message
Chanterier (speederyr) wrote :

@cranium: Was that America or another country?

Revision history for this message
cranium (cranium) wrote :

it's another country, but they are listed in the Americans spots for both country and side. Not sure if that has any berring on the situation at hand. But they do use alot of the allied tags.

I'll try americans and see what happens...

Revision history for this message
Graion Dilach (graiondilach) wrote :

OK, further tests about AI build order.

If the AI can build a Paradrop SW on low tech, it will go for it. This isn't valid for UnitDeliveries, they will be built AFTER the major SWs are done (if enabled).

The originally reported bug is caused by American's Airborne.

However Yuri Mental Omega AIs doesn't have Paradrop, albeit they are broken as well...

EDIT: This is hugely complicated. My mod's AI built WF first on Bay of Pigs II and it built Radar first on Death Trap. Seems like it's connected to spacing as well.

Revision history for this message
Bug Importer (bug-importer) wrote :

Code related to this issue has just been checked in!
Author: DCoder
Location: trunk, r995
Commit contains DLL: Yes
Revision comment:
Added a Keyboard Command to report AI Base Plans, per Graion's request.
Related to issue 1298 .
SVN: http://svn.renegadeprojects.com/Ares/995

Revision history for this message
Graion Dilach (graiondilach) wrote :
Download full text (7.9 KiB)

I take my assumptions back, then. Orig YR:

AI Base Plans:
#01: country Americans:
 Node #000: GACNST @ (00179, 00076), Attempts so far: 0, Placed: 0
 Node #001: GAPOWR @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #002: GAPILE @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #003: GAREFN @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #004: AMRADR @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #005: GAWEAP @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #006: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #007: GATECH @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #008: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #009: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #010: GAGAP @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #011: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #012: GAOREP @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #013: GAROBO @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #014: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #015: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0

#02: country Alliance:
 Node #000: GACNST @ (00125, 00020), Attempts so far: 0, Placed: 0
 Node #001: GAPOWR @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #002: GAPILE @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #003: GAREFN @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #004: GAAIRC @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #005: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #006: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #007: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #008: GAWEAP @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #009: GATECH @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #010: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #011: GAGAP @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #012: GAOREP @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #013: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #014: GAROBO @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #015: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0

#03: country YuriCountry:
 Node #000: YACNST @ (00076, 00178), Attempts so far: 0, Placed: 0
 Node #001: YAPOWR @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #002: YABRCK @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #003: YAREFN @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #004: YAWEAP @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #005: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #006: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #007: NAPSIS @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #008: YATECH @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #009: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #010: YAREFN @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #011: Special -1 @ (000...

Read more...

Revision history for this message
Graion Dilach (graiondilach) wrote :

Cause of this bug is revision number 0.1.688 (!).

The revision log says that the owner is DCoder:
Related to issue #433 -
Related to issue #1005 -
Related to issue #1016 - Replaced one more AI prereq validating function with Ares's version. Untested.
Related to issue 433,1005,1016 .

This check wasn't copied into 0.1 P1, if anyone's interested.

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

Graion: I don't fully understand the last note. Let's discuss that on IRC.

Revision history for this message
Bug Importer (bug-importer) wrote :

Code related to this issue has just been checked in!
Author: DCoder
Location: trunk, r1015
Commit contains DLL: Yes
Revision comment:
Related to issue #1298 - this should revert the prerequisite checking to the old and more reasonable breadth-first method.
Related to issue 1298 .
SVN: http://svn.renegadeprojects.com/Ares/1015

Revision history for this message
Graion Dilach (graiondilach) wrote :
Download full text (4.6 KiB)

AI Base Plans:
#01: country Americans:
 Node #000: GACNST @ (00022, 00125), Attempts so far: 0, Placed: 0
 Node #001: GAPOWR @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #002: GAPILE @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #003: GAREFN @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #004: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #005: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #006: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #007: GAWEAP @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #008: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #009: AMRADR @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #010: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #011: GATECH @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #012: GAROBO @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #013: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #014: GAGAP @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #015: GAOREP @ (00000, 00000), Attempts so far: 0, Placed: 0

#02: country Alliance:
 Node #000: GACNST @ (00179, 00076), Attempts so far: 0, Placed: 0
 Node #001: GAPOWR @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #002: GAPILE @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #003: GAREFN @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #004: GAWEAP @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #005: GAAIRC @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #006: GATECH @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #007: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #008: GAROBO @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #009: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #010: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #011: GAGAP @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #012: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #013: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #014: GAOREP @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #015: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0

#03: country YuriCountry:
 Node #000: YACNST @ (00076, 00178), Attempts so far: 0, Placed: 0
 Node #001: YAPOWR @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #002: YABRCK @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #003: YAREFN @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #004: YAWEAP @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #005: YAREFN @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #006: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #007: NAPSIS @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #008: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #009: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #010: Special -1 @ (00000, 00000), Attempts so far: 0, Placed: 0
 Node #011: YATECH @ (00000, 00000), Attempts so far: 0, Placed: 0
 No...

Read more...

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

Resolving as fixed. Someone else please confirm.

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

Using r1015: Allied AI built the War factory before the radar.
Tested with multiple AI Allies in 2 skirmish maps.

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

Thanks! Closed.

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.