[0.14.21] on_force_created called before on_init

Bugs that are actually features.
User avatar
mickael9
Fast Inserter
Fast Inserter
Posts: 112
Joined: Mon Mar 14, 2016 4:04 am
Contact:

[0.14.21] on_force_created called before on_init

Post by mickael9 »

When loading the "team-production-0.4.1" scenario, the on_force_created event is fired before the on_init callback which can make mods crash because their global variables are not yet initialized
Rseding91
Factorio Staff
Factorio Staff
Posts: 14345
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.14.21] on_force_created called before on_init

Post by Rseding91 »

No it's not.

During the scenarios on_init it creates the forces which fires the event.

Other mods need to account for that because it's perfectly valid.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Not a bug”