Page 1 of 1

AI Script stops

Posted: Mon May 15, 2017 7:07 am
by Mizukami999
Another question from me, sorry

My problem is that while editing AI script I'm encountering some random AI failures ingame. AI just stops doing anything, even if it has everything necessary to continue building. It just doesn't start some item in the list. Maye it happens while choosing building location.
I thought I could determine that AI hanged and fix it by doing AiSet("unit-xxx", 0), and then by returning it back to 1. But this didnn't work.

Maybe somebody knows whi the AI stops, or how to force its restart ingame?

Re: AI Script stops

Posted: Wed Jul 26, 2017 1:21 am
by Mizukami999
Dear Mizukami, try to increase the quantity of units ordered in AiSet.

For example, u order AiSet("unit-space-pig-farm", 1)

If AI fails, ur script checks if the farm is ready in time. If not, u do AiSet("unit-space-pig-farm", 2)

Ai attempts to build the second structure properly

Re: AI Script stops

Posted: Wed Jul 26, 2017 8:37 am
by Mizukami999
One remark: before doing that, do

AiSet("unit-space-pig-farm", 0)

Then give it time to execute, and then do AiSet("unit-space-pig-farm", 2)