[0.13.17] Creating an invalid entity on_player_left_game

This subforum contains all the issues which we already resolved.
credomane
Filter Inserter
Filter Inserter
Posts: 321
Joined: Tue Apr 12, 2016 6:21 pm
Contact:

[0.13.17] Creating an invalid entity on_player_left_game

Post by credomane »

Creating an invalid entity on_player_left_game event hardlocks factorio.
Relevant portion of log
I had a typo in a mod I was playing around with. Attempts to play an audible message when a player quits the game (or dies). If the (incorrect) AlliedReinforcementsHaveFallen entity is created when a play died then the normal script error appears and you are sent back to the main menu. The correct entity name is AlliedForcesHaveFallen which behaves correctly. All remaining connected players will hear either allied forces have fallen or enemy forces have fallen depending on depending on their allegiances to the disconnecting player.

But if this error occurs when a player quits the game then *all* players will find their factorio client frozen immediately and must use the taskmgr to forcefully kill factorio. Including the player that quit the game.

[edit]
Forgot to attach the mod in question.
Attachments
CredoTest_0.0.1.zip
(56.16 KiB) Downloaded 72 times
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5411
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.13.17] Creating an invalid entity on_player_left_game

Post by Klonan »

Thanks for the report,

Lua mistakes aside, the game probably shouldn't hard crash from a script error
Rseding91
Factorio Staff
Factorio Staff
Posts: 15981
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.13.17] Creating an invalid entity on_player_left_game

Post by Rseding91 »

Fixed for 0.14.
If you want to get ahold of me I'm almost always on Discord.
credomane
Filter Inserter
Filter Inserter
Posts: 321
Joined: Tue Apr 12, 2016 6:21 pm
Contact:

Re: [0.13.17] Creating an invalid entity on_player_left_game

Post by credomane »

Supercheese wrote:That mod sure sounds a lot like Red Alerts. ;)
It is. Playing with a bunch of stuff in it. :)
Post Reply

Return to “Resolved Problems and Bugs”