Crash on lua function assignment

Things that has been reported already before.
Unique_Pineapple
Burner Inserter
Burner Inserter
Posts: 19
Joined: Sun Mar 19, 2017 8:51 pm
Contact:

Crash on lua function assignment

Post by Unique_Pineapple »

My multiplayer server crashes when the following commands are typed:

Code: Select all

/c p = game.player.print

Code: Select all

/c p(1234)
posila
Factorio Staff
Factorio Staff
Posts: 5366
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: Crash on lua function assignment

Post by posila »

It is known issue, but it is unlikely to be fixed. I am sorry.

If you want to print to all players easily, you can use

Code: Select all

game.print()
Duplicate: 5638
Unique_Pineapple
Burner Inserter
Burner Inserter
Posts: 19
Joined: Sun Mar 19, 2017 8:51 pm
Contact:

Re: Crash on lua function assignment

Post by Unique_Pineapple »

Alright, thanks. I also found a fix using the following code:

Code: Select all

/c function p(s) game.player.print(s) end
Post Reply

Return to “Duplicates”