Page 1 of 1

Limit ruin spawning to individual planets

Posted: Tue Jan 28, 2025 7:23 pm
by Keysivi
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!

Re: Limit ruin spawning to individual planets

Posted: Thu Jan 30, 2025 9:38 am
by Natha
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