What is wrong here

I see I have 0 food in this instance however for the rest of the game, I am getting negative available units, could be due to dropping tier levels, my bot doesn’t want to do anything at this point due to this, not sure if this is due to building mechanics.

this.bot.wood 2906
this.bot.food 0
this.bot.gold 483
this.bot.stone 597
this.bot.population 155
this.bot.availableUnits -185

as the game progresses, the count just decreases further and further, surely this is not intended behaviour?

this.bot.wood 2906
this.bot.food 0
this.bot.gold 483
this.bot.stone 597
this.bot.population 19
this.bot.availableUnits -321

On what version of the engine is this? If you’re running on the version before yesterday’s release you might be running into this issue: https://github.com/EntelectChallenge/2022-Arctica/issues/23 - once the engine stops processing actions the units that you have allocated don’t get returned to you, and as your population starts decreasing your available units can go negative

1 Like

Yes, I am on the previous version, i saw a post on issues on the newer version so was hesitant to update until i ironed out all my issues, will move over soon, thanks, you really are a huge help.

1 Like