event.on_player_joined_game not called in single player?

Place to get help with not working mods / modding interface.
Post Reply

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

Re: event.on_player_joined_game not called in single player?

Post by Rseding91 »

Because the player doesn't "join" the game in single player. He's created into the world. Joined is only called when joining a MP map. Once a map is loaded for MP it's forever marked as MP and treated differently when it comes to saving/loading.
If you want to get ahold of me I'm almost always on Discord.

Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: event.on_player_joined_game not called in single player?

Post by Nexela »

Rseding91 wrote:Joined is only called when joining a MP map
Joined is called in SP, right after Player Created. However it will not be called on subsequent map loading unless converted to MP

Post Reply

Return to “Modding help”