Planet Production Processing Order

General Stars in Shadow Discussion Forum
User avatar
harpy eagle
Posts: 296
Joined: Sat Mar 10, 2018 3:25 am

Planet Production Processing Order

Postby harpy eagle » Fri Apr 27, 2018 1:57 am

Right now the order in which planets are processed is really important when there is a metal shortage, since planets that have their production handled first can starve out the planets that are processed later. The game currently processes planets that have higher metal income first.

This is really bad for the AI, since it's highest metal income worlds typically have a lot of mines and few factories. While their metal use is less because their hammer output is smaller, if there's enough of them it can completely starve out the critical high production worlds.

Since the high production worlds are more likely to finish their projects sooner, having the metal go to the low production worlds needlessly prolongs the metal starvation for the AI. The AI also builds it's most strongly desired projects on its high production worlds first, so this means that the unimportant projects starve out the ones that the AI wants the most.

Do you think it would be worth it to change the order in which planets are processed?

I've been playing around with having planets process in order of higher production first, and it does help out the AI. In once case, an AI yoral had completely stopped expanding because it couldn't build an outpost transport, as it's main production world was being completely starved out (I had disabled hammer-to-metal conversion). When I went back several turns and changed the production order, the AI was not nearly as crippled by the metal shortage.

Of course, there are lots of things the AI can do to help it deal with metal shortages, but I think it would be good if the game defaulted to an order that was helpful for a metal-starved economy.

User avatar
fonzosh
Posts: 70
Joined: Mon Sep 04, 2017 9:10 am

Re: Planet Production Processing Order

Postby fonzosh » Fri Apr 27, 2018 6:53 am

Sounds perfect, since I also have the same problem when building huge ships on one planet and maybe a long term Def Star base on a mining planet. Would be great even for us players if this could be avoided.

User avatar
sven
Site Admin
Posts: 1620
Joined: Sat Jan 31, 2015 10:24 pm
Location: British Columbia, Canada
Contact:

Re: Planet Production Processing Order

Postby sven » Fri Apr 27, 2018 3:35 pm

harpy eagle wrote:Do you think it would be worth it to change the order in which planets are processed?

I've been playing around with having planets process in order of higher production first, and it does help out the AI. In once case, an AI yoral had completely stopped expanding because it couldn't build an outpost transport, as it's main production world was being completely starved out (I had disabled hammer-to-metal conversion). When I went back several turns and changed the production order, the AI was not nearly as crippled by the metal shortage.


I actually don't recall what, exactly, my rational for making the production update sorting dependent on *metal* production was. For all the reasons you list, planet.raw_hammer_production is almost certainly a better sort condition. When I wrote the original code, I *think* I was mostly concerned about making the production order unambiguous (so that there wouldn't be a random element if people replayed turns), but, any old sorting order is sufficient to manage that.

I'll change the order function to raw_hammer_production in the next 'in_development' patch.


Return to “General Forum”

Who is online

Users browsing this forum: No registered users and 30 guests