Disable terrain for main world

Place to get help with not working mods / modding interface.
Post Reply
Raelf
Burner Inserter
Burner Inserter
Posts: 12
Joined: Sun Dec 23, 2018 4:01 pm
Contact:

Disable terrain for main world

Post by Raelf »

Hello,

I created a new terrain to let a new surface looking more like another planet. Now I'm looking for a way to disable that new terrain on the starting world.
It would be possible to disable that terrain in the menu before generating the world, but I would prefer that this is not necessary and maybe even that this new terrain is not even shown there. Is there an easy way to do this?

Thank you for helping

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Disable terrain for main world

Post by darkfrei »

On chunk generation spam tiles "not-on-map"?

Or you can change MapGenSettings, width and height:
https://lua-api.factorio.com/latest/Lua ... n_settings
https://lua-api.factorio.com/latest/Con ... enSettings

Raelf
Burner Inserter
Burner Inserter
Posts: 12
Joined: Sun Dec 23, 2018 4:01 pm
Contact:

Re: Disable terrain for main world

Post by Raelf »

I had some time to look for this again. After changing the MagGenSettings for Nauvis inside the onInit function of my mod I could change the frequency of my new terrain to none.
This worked perfectly outside the spawning area.
Inside my new terrain is still present. I added some logs and the onInit is called always before the chunkCreated event. So for my understanding it should work.
However, it seems like I need to regenerate the chunks around the spawning position or just create a new world and teleport the player there when a game starts.

Post Reply

Return to “Modding help”