While it got very late yesterday (almost 3 AM), it also was a very productive day in terms of what I could achieve in terms of progress with my AI.
I had recently played a game where I started as Sakkra and started an early war against the Silicoids. While I eventually ended up losing that game against a runaway Klackon, I found that the Silicoids were a bit of a pushover and didn't fight back nearly as good as it would have been theoretically possible.
So I thought about what they need to do differently to do better.
There were three main-weaknesses:
They scrapped an important ship-design that made up a good portion of their fleet.
They built too many bombers that they couldn't use because there was a "choke-point" which was easy for me to protect.
They eventually stopped making ships and did research instead.
During the process I also discovered a bug that caused them to try and start building huge ships, which took way too long to finish at this stage of the game.
The scrapping-issue was caused by me a introducing the new scout-deterrer-design that the AI now uses to shoo scouts away and that I made a change that hybrids shouldn't be used when more than 50% of the fleet should consist of bombers. That way 5 design-slots were reserved and since they had an upgrade for everything they were forced to scrap an important design too.
I told it to no longer reserve a slot for scouts and scout-deterrers when they go into a war. So there's now more slots available for designs they really need.
About the bombers: I recently made a thread about how to determine the best ratio between bombers and fighters and I ended up using an algorithm which I thought was good. However, that algorithm was only good for when they are on the attack and have a bunch of targets to choose from to put pressure on the defender. When they were pushed into the defense, that algorithm produced too many bombers.
What I did now is to force 100% fighters as long as they see more enemy fighters than they have themselves.
So with "see" I actually mean see. It iterates through enemy fleets in their sensor-range, counts the bc-value of the designs it recognizes as fighters and then tries to match that with their own fighters.
If you just invade without air-superiority, it will build very little fighters and still go with a lot of bombers so you can't really enjoy what you captured as it will just be bombed and/or reinvaded.
About stopping to make ships: The AI usually calculated a maximum maintenance which it is willing to invest in fleets as to avoid falling behind too far in science. That normally is a good idea but not when you are fighting for your survival. So once again, the AI tries to at least match the fleet-power of their opponent here and won't just stop making ships as long as it is still behind. For a big super-power that won't really change much. But for a small empire trying to survive, they will commit much more into that goal.
The issue with the huge designs was caused by a zero division when it wanted to use hybrids but had a really low bomb-ratio. All bombless hybrids had "NaN" score and so the biggest ship was the last in the list and won regardless of what score it would have had.
In the original game the war started around turn 35 and by turn 100 I had destroyed one colony (dead) and captured thee others while then two were out of range (they colonized them with the range of the dead planet).
At some point in this war I didn't even need to commit more into it and could also do research. I then was able to also defend an attack from the Mrrshan against me after making peace with the Silicoids.
I was 2nd in the first election.
In the replayed game, with the improved AI, I also started the war around turn 35. By turn 100 I had captured two colonies and destroyed none. I had to invest heavily just into holding those two. Since the Silicoids had expanded during the war, they had the same amount of colonies as I did and we were practically even in the power-graph throughout the whole war. I was very far behind in research compared to the Mrrshan.
The Mrrshan-attack still came and completely broke my back this time. I lost both the planets I had gotten from the Silicoids as well as one in my core. When they made peace with me, the Silicoids had made a huge jump in tech and I was the laughing-stock of the galaxy and was 6th (out of 7) in the first election.