[2.0.61] on_chunk_generated is executed before on_surface_created

Bugs that are actually features.
Natha
Filter Inserter
Filter Inserter
Posts: 276
Joined: Sun Mar 15, 2015 1:48 pm
Contact:

[2.0.61] on_chunk_generated is executed before on_surface_created

Post by Natha »

Don't know if this is intended, but it breaks functionality of my mod:
When using force_generate_chunk_requests inside the on_surface_created event, the on_chunk_generated event is executed for all mods before all other mods execute on_surface_created.
In my example I assign a surface property in on_surface_created, which is used in on_chunk_generated; but it's not present when another mod uses force_generate_chunk_requests.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15996
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.61] on_chunk_generated is executed before on_surface_created

Post by Rseding91 »

Thanks for the report however there’s nothing to do about this. This is quite literally the engine doing what the mod(s) asked for and working correctly.
If that’s not the desired behavior, simply don’t force generate chunks in the surface created event.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Not a bug”