So, anyone still playing but me? I scrolled around the map to find any of you but couldn't find your room and looking by the ranking it seems your AIs have been obliterated and never respawned.
Over the past week I kinda came to the conclusion that I tried to solve too many issues at the same time in code. I wanted to automatically build miners, balance trucks, find the most ideal energy distribution scheme, build creeps based upon the amount of energy in store combined with production statistics and threat level. So I ended up with a big ball of clutter that tried to do everything and failed at it all.
So I took a tinsy detour and refactored the whole thing into a message based system where each message would pretty much just do 1 thing(heh, turns out SRP isn't such a bad idea after all) and the AI executes message by message, measures the amount of time left and if CPU is about to run out it will cease message processing. Much more robust and turns out, much easier to develop as well. Most things are still done manually: if I want to mine a source I have to issue a command and the AI will then spawn a builder and trucks for it but with these basic commands I can start building more complex ones and then a decision making module that will trigger.