Description
Limit of 500 building food upkeep sends AIs with too many clone vats into stagnation
Game Version
v3.4.3 (9d15)
What version do you use?
Steam
What expansions do you have installed?
Do you have mods enabled?
Yes
Please explain your issue is in as much detail as possible.
Although I found this while playing with a mod, it shouldn't affect this behaviour. I tried it without the mods to be sure, but the behaviour remains. One of the AIs I was observing suddenly stopped building any buildings, despite enormous unemployment. I searched through the code for hours, trying to find what was causing the behaviour and finally did.
This AI had started genetic ascension and begun building clone vats in its planets. However, each clone vat has a 30 food upkeep and in the 00_food_budget file there is a hard cap in food_expenditure_buildings of 500. The clone vats draw food from that category, so the AI couldn't build any more of those, but it wanted to continue building them.
It had a long queue of buildings it was planning to build (checking with debugtooltip), but it couldn't until it had built another clone vat and it couldn't due to the upkeep limit, thus not building any more buildings. After deleting the limit, the AI finally started building again.
Steps to reproduce the issue.
Have an AI with 20+ planets unlock genetic ascension. After a few years, check on their planets. They should be stuck unable to build anything because they can't finish their planned clone vats due to the food limit. Eliminate the limit and it should be able to continue with its queue. In debugtooltip, the queue can be seen every time the AI adds something, but it is blocked because the next building is a clone vat.
Upload Attachment
File(s) attached
Limit of 500 building food upkeep sends AIs with too many clone vats into stagnation
Game Version
v3.4.3 (9d15)
What version do you use?
Steam
What expansions do you have installed?
Do you have mods enabled?
Yes
Please explain your issue is in as much detail as possible.
Although I found this while playing with a mod, it shouldn't affect this behaviour. I tried it without the mods to be sure, but the behaviour remains. One of the AIs I was observing suddenly stopped building any buildings, despite enormous unemployment. I searched through the code for hours, trying to find what was causing the behaviour and finally did.
This AI had started genetic ascension and begun building clone vats in its planets. However, each clone vat has a 30 food upkeep and in the 00_food_budget file there is a hard cap in food_expenditure_buildings of 500. The clone vats draw food from that category, so the AI couldn't build any more of those, but it wanted to continue building them.
It had a long queue of buildings it was planning to build (checking with debugtooltip), but it couldn't until it had built another clone vat and it couldn't due to the upkeep limit, thus not building any more buildings. After deleting the limit, the AI finally started building again.
Steps to reproduce the issue.
Have an AI with 20+ planets unlock genetic ascension. After a few years, check on their planets. They should be stuck unable to build anything because they can't finish their planned clone vats due to the food limit. Eliminate the limit and it should be able to continue with its queue. In debugtooltip, the queue can be seen every time the AI adds something, but it is blocked because the next building is a clone vat.
Upload Attachment
File(s) attached
Attachments
- 3