- Joined
- Aug 4, 2017
- Messages
- 174
Melee Campaign Heroes
About the causes of freezes due to AI created in the AI Editor
Do you think freezes can be caused by a discrepancy between the food information in the AI editor and the actual food?
I've noticed that freezes definitely occur when the bot tries to buy something that's unavailable. Apparently, it spams the purchase non-stop, and that causes freezes.
I created a bot without heroes. Heroes are purchased via triggers. But I set the bot's food limit so that there is always enough food. However, it still freezes.
It seems to me that hero trained through triggers order causes a freeze. But what's the reason? Maybe someone knows. Then I can fix the root cause.
If you make it worse and also script the purchase of UNITS via triggers, the game outright crashes after 5 minutes. And the freezes become unbearable.
How did I check that the freezes are because of the bot? Simple. Just launched a match without the bot.
By the way, the freezes appear during the bot's control phase. Could it be related to the fact that there is a hero in its attack group that it didn't hire? Or does it have too many units in its squad that need to be selected? That seems logical overall. The more such trigger-bought units it has, the worse the freeze.
How to optimize the AI?
Why does the bot freeze the entire map when trying to control units that didn't hire?
Do you think freezes can be caused by a discrepancy between the food information in the AI editor and the actual food?
I've noticed that freezes definitely occur when the bot tries to buy something that's unavailable. Apparently, it spams the purchase non-stop, and that causes freezes.
I created a bot without heroes. Heroes are purchased via triggers. But I set the bot's food limit so that there is always enough food. However, it still freezes.
It seems to me that hero trained through triggers order causes a freeze. But what's the reason? Maybe someone knows. Then I can fix the root cause.
If you make it worse and also script the purchase of UNITS via triggers, the game outright crashes after 5 minutes. And the freezes become unbearable.
How did I check that the freezes are because of the bot? Simple. Just launched a match without the bot.
By the way, the freezes appear during the bot's control phase. Could it be related to the fact that there is a hero in its attack group that it didn't hire? Or does it have too many units in its squad that need to be selected? That seems logical overall. The more such trigger-bought units it has, the worse the freeze.
How to optimize the AI?
Why does the bot freeze the entire map when trying to control units that didn't hire?
