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?