Limit ruin spawning to individual planets

Place to get help with not working mods / modding interface.
Keysivi
Fast Inserter
Fast Inserter
Posts: 109
Joined: Mon Feb 07, 2022 5:29 pm
Contact:

Limit ruin spawning to individual planets

Post 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!
Attachments
AbandonedRuins-base_0.0.1.zip
(118.8 KiB) Downloaded 6 times
Natha
Fast Inserter
Fast Inserter
Posts: 240
Joined: Sun Mar 15, 2015 1:48 pm
Contact:

Re: Limit ruin spawning to individual planets

Post 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
Post Reply

Return to “Modding help”