[0.13] Event defines.events.on_player_created not triggered properly

Bugs that are actually features.
Post Reply
Posts: 37
Joined: Mon Aug 31, 2015 8:00 pm

[0.13] Event defines.events.on_player_created not triggered properly

Post by AyrA »

The Event

Code: Select all

is not fired for some players in multiplayer.


DarkSlayerEX has first noticed this: viewtopic.php?f=94&t=17547&p=180881#p179805


The event is always called for the host player but only rarely for joining players.
The event was properly triggered in 0.12.
It's odd really...

Pretty much almost every time, no one gets any items aside from the host after starting a new world.
Extremely rarely for us(Discovered after lots of testing, and after having initially posted about this issue), 1 other person gets the items alongside the host, but no one else gets anything.

The issue happens regardless of who hosts as well..

I'm wondering if this issue could also be more prevalent when a world is generated in SP first, and then loaded through MP afterwards...

Factorio Staff
Factorio Staff
Posts: 10892
Joined: Wed Jun 11, 2014 5:23 am

Re: [0.13] Event defines.events.on_player_created not triggered properly

Post by Rseding91 »

The mod is written incorrectly.

It only subscribes to the event on_init which isn't called except for when world is first created.

That also means it's not save load stable and isn't MP stable.

http://lua-api.factorio.com/0.13.6/LuaB ... ap.on_init
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Not a bug”

Who is online

Users browsing this forum: No registered users