0.5 Report Part II - Production

I completely forgot to make a second part of the 0.5 report.
The production phase, is a system which is triggered each hour of game time and has 5 segments: CSM Energy, Items Production, CSM reserves process, Space Units Manufacturing and the process of the Conversion/Assembling/Building (or CAB) queue.
For now only the CSM Energy, Items Production and CAB queue processing are implemented.

The first segment update the result of energy balance for each colony in the game, and if this balance isn't equilibred, a special rule called Energy Equilibrium Rule (EQR) is triggered to restore this balance. In clear, at the end of the phase the energy production of a colony must be >= to the energy consumption.
If it's not the case the Energy Equilibrium Rule will force that by disabling some operational infrastructures in the colony by using a priority list:
For Restricted and Space Environment it's this Misc/Intelligence infrastructures that are disabled in first, followed by Production infrastructures and in last resort the Housing infrastructures.
For Free Environment it's a bit different: Misc/Intelligence infrastructures that are disabled in first, followed by Housing infrastructures and in last resort the Production infrastructures.
The difference is that in restricted or space environments,energy is life so the housing are in the bottom of the list.
If there's more energy generated than consumed, the EQR look if there's any infrastructures, the EQR have disabled, that can be enabled again. Infrastructures disabled by the player or event doesn't count in it.

The second segment concern the extraction, refining or manufacturing of products. For that it process the production matrix of each colony. A production matrix is basically a list of product the colony produce and/or use. For example a colony can produce 1m3 of Aluminium / hour and use 1m3 of rock by hour. This system is used to avoid to process too much calculations in real time. The calculations for the production are only processed when needed, like when a production mode is enabled or disabled.

The last segment process the infrastructures conversion, assembling and building. It also process the requiried transition phase for infrastructures used for production.

I don't talk about the other segments since they aren't implemented yet.

That's all for this second part, it's not very detailed but at least can give you an idea.

1 comment:

  1. to March or May is not going to see more news about snapshots alphas or pre-betas to download it?

    ReplyDelete