published on November 25, 2024 in devlog
Michi details what happens if an infrastructure construction or upgrade project fails.
Michi (molp)
In software development, there is a thing called "happy path" which basically describes a scenario where everything runs as specified, no errors occur and so on. In our case, for example, that could be what I described in last week's devlog #460: A government creates a motion, the motion is voted upon and passes. The recipient gets a contract to build a gateway and closes it. All parties fulfill their contract conditions, and a while later the universe has a brand-new gateway.
Of course, just like in real-life, not everything goes according to plan. This week I looked into the "unhappy path": edge cases and potential errors that can happen when building or upgrading a gateway (or infrastructure in general for that matter).
So, what exactly happens if a construction or upgrade contract is terminated or being breached?
The player acting as contractor owns the construction store and its materials until all required materials are present and the construction or upgrade can be completed. In case the contract breaches (due to a missed deadline, failing payment condition or the contractor failing to provide all materials), the construction/upgrade project fails. In this case, the materials stay in the construction store and in the possession of the contractor.
The construction store will then switch to a remove-only mode where no new materials can be added. Once all materials are removed, the store will be removed automatically.
We also won't allow half-built gateways. If the construction project fails, the gateway is removed. The construction project can't be continued by another player. The logical conclusion is that governments should be cautious when selecting contractors for large infrastructure projects.
I also added a new row to the PLI
and INF
commands. The existing "infrastructure" row was renamed to "planetary projects" and the gateways can now be found in the "infrastructure" row.
As always: we'd love to hear what you think: join us on Discord or the forums!
Happy trading!