Finer World Options


Set the world-gen resource options more precisely than the vanilla game's controls permit.

Content
4 months ago
1.1
146
Environment
Owner:
StephenB
Source:
https://github.com/StephenBarnes/Fine...
Homepage:
N/A
License:
MIT
Created:
4 months ago
Latest Version:
1.0.0 (4 months ago)
Factorio version:
1.1
Downloaded by:
146 users

Adds new controls to multiply the values of the resource frequency/size/richness controls when creating a new world. Instead of being limited to setting them between 17% and 600%, you can now choose values between 0.084% and 129,600%.

Should be compatible with almost all other mods, even if they add new ores. Tested with vanilla and Industrial Revolution 3. Other overhaul mods haven't been tested - they should work, but I can't guarantee it. Also compatible with my other mod Move Starting Patches.


Technical details

The mod finds all resource autoplace controls and makes a new multiplier control for each of them. Then it looks through all resources with autoplace specifications, and recursively visits all nodes in the noise expression tree. It substitutes all the original variable nodes that look like frequency/size/richness control values, replacing them with subtrees like originalRichness * multiplierRichness * multiplierRichness, and same for size and frequency.

If another mod causes the resource to not be affected by the multiplier controls, it's probably because the mod is making new autoplace specifications in the data-final-fixes stage. You can probably fix it by just adding an optional dependency on that mod.

You could extend this mod to also have multipliers for enemy bases, cliffs, water coverage, trees, etc. I partially implemented this (see commit here) but decided against it because it's too messy and not very useful anyway.