At one time, I created a fork for the updated for Factorio 2.0 mod The Ruins Mod https://mods.factorio.com/mod/Abandoned ... dated_fork
For more flexibility, I separated the ruins from this mod into a separate submod The Ruins Mod - Base (Time) https://mods.factorio.com/mod/AbandonedRuins-base
Unfortunately, a small problem emerged when, for example, on Vulcanus, where there is no water, ruins with water began to spawn, which completely breaks the entire narrative of the game.
Since I am a lousy programmer - I need help to limit the spawn of ruins from the mod The Ruins Mod - Base (Time) https://mods.factorio.com/mod/AbandonedRuins-base to only two planets Navius and Gleba...
Or, on the contrary - to prohibit the spawn of ruins from this mod on specific planets, for example Vulcanus...
The archive with the mod is attached to the message.
I will be very grateful for help!
Thank you!
Limit ruin spawning to individual planets
Limit ruin spawning to individual planets
- Attachments
-
- AbandonedRuins-base_0.0.1.zip
- (118.8 KiB) Downloaded 6 times
Re: Limit ruin spawning to individual planets
WIthout looking into your code, you could check the planet's map_gen_settings.autoplace_settings if the water tile will be generated there:
https://github.com/wube/factorio-data/b ... ap-gen.lua
https://github.com/wube/factorio-data/b ... ap-gen.lua