Richard AI not receiving periodic resources in Barbarossa Campaign mission 6

  • GAME BUILD #: 101.101.46295.0 6421374
  • GAME PLATFORM: Steam
  • OPERATING SYSTEM: Windows 10

:arrow_forward: ISSUE EXPERIENCED

After finishing the Barbarossa campaign I decided to have a look at the AI scripts for the final mission, since the opponents behaviour made me suspect they were getting periodic free resources, while this seemingly wasn’t the case for the orange allied player Richard. (Ended up needing to send him resources so he’d keep training units.)

While doing so, I noticed what I suspect is a bug in the periodic resources script for Richard:

(defrule
(difficulty == easy)
=>
(enable-timer 4 240)
)

(defrule
(difficulty <= moderate)
=>
(enable-timer 4 440)
)

(defrule
(timer-triggered 4)
=>
(chat-local-to-self “I think I need some resources”)
(cc-add-resource food 900)
(cc-add-resource wood 900)
(cc-add-resource gold 900)
(cc-add-resource stone 50)
(disable-timer 4)
(enable-timer 4 400)
)

The two rules that set up the initial timer for easy / other difficulties respectively don’t disable themselves, causing timer 4 to constantly be reset and never actually firing and giving Richard extra resources.

1 Like