AI Not Rebuilding After 30 minutes?

Status
Not open for further replies.
Level 2
Joined
Jun 14, 2020
Messages
8
This is sort of a strange one; I don't really understand this glitch. Basically I have a AI Script (in the AI Editor) that is a very large base that sends out attack waves at the player. At first, I thought this script worked, as it sends out attack waves as intended. However, around the 30 minute mark (7-8 attacks in) the AI slowly stops rebuilding units.

To clarify, the AI rebuilds everything up until that time period, but slowly stops replacing units it used to, except for the hero for whatever reason. Has anyone else experienced anything like this? I already made sure it wasn't a resource thing, so idk what would cause it to stop after a while. This is on the Reforged editor if that helps.
 
Level 7
Joined
Mar 16, 2014
Messages
169
If the AI doesn't know of any more enemies to target, it will stop doing things.
The AI can sometimes bug out if it destroys a structure in front of a base, and turn around and head back to their own base, thinking they have destroyed everything. If they have no vision of enemy units/buildings after having destroyed a building, they always turn around. An exploit I have used to beat many campaign maps is just placing a farm a decent distance in front of my base, as this will satisfy the AI's hunger and make them never attack the main base.

I would advise using a trigger to just give the AI permanent vision of the entire map, or at least the player's base, to try to make the AI not have to deal with this issue. The AI is also more likely to investigate areas with gold mines.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
This can happen if the AI is unable to build something it is set to keep stock of. For example it either lacks the unit to do so, or the tech requirement for it is no longer met. It will get stuck at that stock item, and not replace any subsequent stock items declared after it. This happened in the past to the melee AI during some melee balance patches which changed the tech requirements around.
 
Level 2
Joined
Jun 14, 2020
Messages
8
This can happen if the AI is unable to build something it is set to keep stock of. For example it either lacks the unit to do so, or the tech requirement for it is no longer met. It will get stuck at that stock item, and not replace any subsequent stock items declared after it. This happened in the past to the melee AI during some melee balance patches which changed the tech requirements around.
Yep, this was it. Thanks for your help, I really appreciate it!
 
Status
Not open for further replies.
Top