mod.io · Mod 6491183
Industry Base
Bitte ModManager zuerst starten. Dadurch wird der Installations-Link unter Windows registriert.
Beschreibung
Heads up: this one does nothing on its own. It's a base that other mods use (Industrial Investment, for one). If nothing you've got needs it, you don't need it.
Why I made it
I wanted to make a mod that changes how much industries produce, and found out the game handles it in a pretty weird way.
Every industry has one production number. The game's worker boost (the extra production you get when enough workers turn up) changes that number, but it never remembers what it set. It just looks at whether the number is above normal, and if it is, it assumes it boosted the industry itself.
So if a mod raises an industry's production and there aren't enough workers, the game thinks it's its own boost and quietly puts it back to normal. And while a mod's boost is in place, the game thinks the worker boost is already on, so the real one never gets added. Worse, the game only rechecks an industry when workers arrive or an old visit runs out, which can be two years later. So it breaks at random-looking times, and things just seem to get stuck.
On top of that, if two mods both change production, whichever one writes last wins and the other just disappears.
What it does
Industry Base takes over that one number. The worker boost still works exactly like it does in the base game; it just goes through Industry Base now. Other mods hand their changes to Industry Base instead of writing the number themselves, and it adds everything up the same way every time. Nothing overwrites anything any more.
Good to know
- With nothing else using it, your game plays exactly like the base game.
- It's safe to add to an existing save.
- If you remove it, production goes back to the game's own handling.
- It won't work alongside another mod that replaces the game's industry worker script. If it finds one, it stays out of the way and says so in stdout.txt.
For modders
Other mods send it changes to an industry's production (multiply or add, for one industry, one industry type or every industry), and it combines them in a fixed order. The interface is documented in industrybase_api/api.lua. Turn on "Debug log" in the mod settings to see every message and calculation in stdout.txt. Log lines start with [IndustryBase].
Bilder
Mod melden
Die Meldung gilt ausschließlich für Version 1.0. Bitte nur melden, wenn du diese Version selbst getestet hast.
Melde dich an, um eine Meldung abzugeben. Pro Konto, Mod-Version und Kategorie zählt eine Meldung.
Kommentare
Auf mod.io öffnen ↗