[0.15.10] game crash when someone joined the game.

Bugs that are actually features.
mophydeen
Filter Inserter
Filter Inserter
Posts: 529
Joined: Sun Nov 22, 2015 5:02 pm
Contact:

[0.15.10] game crash when someone joined the game.

Post by mophydeen »

I was afk. someone joined and BOOM.
Screenshot from 2017-05-15 20-01-23.png
factorio-current.log
dev2.zip
mods.zip
Last edited by mophydeen on Mon May 15, 2017 6:38 pm, edited 1 time in total.
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5411
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.15.10] game crash when someone joined the game.

Post by Klonan »

mophydeen wrote:I was afk. someone joined and BOOM.
Screenshot from 2017-05-15 20-01-23.png
factorio-current.log
Thanks for the report,

Can you attach the mods you are using?
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5411
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.15.10] game crash when someone joined the game.

Post by Klonan »

mophydeen wrote:added the savefile and mods
The error is in your scenario script:

Code: Select all

script.on_event(defines.events.on_player_created, function(event)
  
  playerSpawnItems(event)

  silo_script.gui_init(player)

end)
should be

Code: Select all

script.on_event(defines.events.on_player_created, function(event)
  
  playerSpawnItems(event)

  silo_script.gui_init(game.players[event.player_index])

end)
mophydeen
Filter Inserter
Filter Inserter
Posts: 529
Joined: Sun Nov 22, 2015 5:02 pm
Contact:

Re: [0.15.10] game crash when someone joined the game.

Post by mophydeen »

Klonan wrote:
mophydeen wrote:added the savefile and mods
The error is in your scenario script:

Code: Select all

script.on_event(defines.events.on_player_created, function(event)
  
  playerSpawnItems(event)

  silo_script.gui_init(player)

end)
should be

Code: Select all

script.on_event(defines.events.on_player_created, function(event)
  
  playerSpawnItems(event)

  silo_script.gui_init(game.players[event.player_index])

end)
thank you. this map contained old script files.

cause it's for me only. Someone tried to join and I thought it was related to something else.
Post Reply

Return to “Not a bug”