AI ignores the foundation of a building under a rare circumstance

:arrow_forward: GAME INFORMATION

:point_down: These details are CRITICAL; DO NOT skip them or your issue may not be reviewed.

  • GAME BUILD #: 47820
  • GAME PLATFORM: Steam
  • OPERATING SYSTEM: Windows 10

:arrow_forward: ISSUE EXPERIENCED

:point_down: DESCRIBE THE ISSUE IN DETAIL (below). LIMIT TO ONE BUG PER THREAD.
I was making a custom scenario. I experienced a bug: the A.I. completely ignores my order of building a Wonder that I made with “Place Foundation” effect.

:arrow_forward: FREQUENCY OF ISSUE

:point_down: How often does the issue occur? CHOSE ONE; DELETE THE REST!

  • Less than 25% of the time / matches I play (RARELY)

But once it happens, as long as the map and player are the same, it always happens exclusively.

:arrow_forward: REPRODUCTION STEPS

:point_down: List CLEAR and DETAILED STEPS we can take to reproduce the issue ourselves… Be descriptive!

Here’s the steps to reproduce the issue:

There’s no particular certain way I found to regenerate this bug. So, I want to embed my scenario file with the A.I.

:arrow_forward: EXPECTED RESULT

:point_down: What was SUPPOSED to happen if the bug you encountered were not present?

Villagers are supposed to build the Wonder as I placed its foundation by a trigger.

:arrow_forward: IMAGE

:point_down: ALWAYS attach a PICTURE (.jpg, .png, .gif) or VIDEO (.mp4, YouTube link) that highlights the problem.


Here, the Villagers NEVER touch the foundation.

Also here is the A.I. full page below.

; I think the map is bugged, not this AI.

; ========== GROUP ==========

(defrule
(true)
=>
(set-strategic-number sn-minimum-boar-hunt-group-size 0)
(set-strategic-number sn-enable-boar-hunting 0)
(set-strategic-number sn-minimum-boar-lure-group-size 0)
(set-strategic-number sn-maximum-town-size 20)
(set-strategic-number sn-camp-max-distance 20)
(set-strategic-number sn-mill-max-distance 0)
(set-strategic-number sn-percent-enemy-sighted-response 100)
(set-strategic-number sn-enemy-sighted-response-distance 30)
(set-strategic-number sn-blot-exploration-map 0)
(set-strategic-number sn-task-ungrouped-soldiers 0)
(set-strategic-number sn-number-explore-groups 0)
(set-strategic-number sn-number-boat-explore-groups 0)
(disable-self)
)

(defrule
(true)
=>
(set-strategic-number sn-percent-civilian-explorers 0)
(set-strategic-number sn-percent-civilian-builders 100)
(set-strategic-number sn-cap-civilian-builders 100)
(set-strategic-number sn-percent-civilian-gatherers 0)
(set-strategic-number sn-cap-civilian-explorers 0)
(set-strategic-number sn-percent-civilian-explorers 0)
(set-strategic-number sn-cap-civilian-gatherers 0)
(set-strategic-number sn-food-gatherer-percentage 0)
(set-strategic-number sn-gold-gatherer-percentage 0)
(set-strategic-number sn-stone-gatherer-percentage 0)
(set-strategic-number sn-wood-gatherer-percentage 0)
(set-strategic-number sn-maximum-wood-drop-distance 0)
(set-strategic-number sn-maximum-hunt-drop-distance 0)
(set-strategic-number sn-maximum-gold-drop-distance 0)
(set-strategic-number sn-maximum-stone-drop-distance 0)
(set-strategic-number sn-maximum-food-drop-distance 0)
(disable-self)
)

; ========== WONDER ==========

(defrule
(game-time > 10)
(building-type-count-total wonder < 1)
=>
(set-signal 0)
(disable-self)
)

(defrule
(not(event-detected trigger 5))
(unit-type-count-total villager < 1)
=>
(set-signal 10)
(disable-self)
)

(defrule
(building-type-count-total wonder > 0)
=>
(up-assign-builders c: wonder c: 3)
)

:arrow_forward: GAME FILES (SAVE / RECORDING)

:point_down: Attach a SAVE GAME (.aoe2spgame) or GAME RECORDING (.aoe2record) of the match where you encountered the issue. Link it below if using an external file service.

SP Replay v101.101.47820.0 @2021.05.25 015903.aoe2record (224.1 KB)

I’m sorry that I can’t upload the save file which may help you more to copy the same map. This section doesn’t allow the aoe2spgame file…

In this replay, the bug was reproduced by the Map Copy function. So, I guess this bug happens only under a particular map setting (such as terrains or buildings).

Paste that map and apply the same A.I. as I pasted above, and set the Trigger of Place Foundation for the Wonder. The bug should be reproduced.