[Event] on_surface_created

Post Reply
yeganer
Long Handed Inserter
Long Handed Inserter
Posts: 74
Joined: Mon Jul 06, 2015 12:07 pm
Contact:

[Event] on_surface_created

Post by yeganer »

I think an event that triggers every time a surface gets created would be really handy for mods that mess with map gen and several worlds.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13240
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Event] on_surface_created

Post by Rseding91 »

An event would be useful.

However, on_chunk_generated is what you're looking for if you want to modify terrain during generation. It will pass the bounding box of the chunk generated and the surface it was created on.
If you want to get ahold of me I'm almost always on Discord.

yeganer
Long Handed Inserter
Long Handed Inserter
Posts: 74
Joined: Mon Jul 06, 2015 12:07 pm
Contact:

Re: [Event] on_surface_created

Post by yeganer »

For terrain generation manipulation on_chunk_generated works as a workaround.

But for mods that interact heavily with surfaces, like some interdimensional transportation, it seems like a hacky solution to use on_chunk_generated to check for new surfaces to set stuff up.

For my application i would just be happy to have it, but it's not neccessary.

Post Reply

Return to “Implemented mod requests”