[Rseding91] [1.1.110] Playing single player a game started by another player freezes when using game.show_message_dialog

This subforum contains all the issues which we already resolved.
kameranis
Manual Inserter
Manual Inserter
Posts: 3
Joined: Fri Sep 13, 2024 6:34 pm
Contact:

[Rseding91] [1.1.110] Playing single player a game started by another player freezes when using game.show_message_dialog

Post by kameranis »

Reproduction steps:
1. Set player name to

Code: Select all

kmaeranis
2. Open save in single player
3. Run

Code: Select all

/c game.show_message_dialog{text ="This should show up as a speech bubble or throw an error. Instead it freezes the game."}
Expected behavior: Throw an error
Cannot execute command. Error: Map doesn't contain 1 player, this function can't be used
or show bubble to current player.
Actual behavior: Text bubble does not show up and all controls other than going into map mode and zooming in and out are disabled.

This save was started by another player, I was continuing it in single player and a mod (Lunar Landings) was using the above function on an event. Function works as expected when in multiplayer or single player when joining as the game creator. Opening the save in multiplayer will correctly throw an error. Bug can always be replicated.
Attachments
Broken state after mod used function in single player.png
Broken state after mod used function in single player.png (3.38 MiB) Viewed 780 times
Correct behavior multiplayer.png
Correct behavior multiplayer.png (3.95 MiB) Viewed 780 times
Lunar Landings - Pre Lunar.zip
(12.54 MiB) Downloaded 12 times
Lunar Landings - Pre Lunar Broken.zip
(12.51 MiB) Downloaded 11 times
factorio-current.log
(90.1 KiB) Downloaded 15 times

kameranis
Manual Inserter
Manual Inserter
Posts: 3
Joined: Fri Sep 13, 2024 6:34 pm
Contact:

Re: [1.1.110] Playing single player a game started by another player freezes when using game.show_message_dialog

Post by kameranis »

Talking with mod creator Xorimuth, bug exists in 2.0 beta.

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

Re: [Rseding91] [1.1.110] Playing single player a game started by another player freezes when using game.show_message_di

Post by Rseding91 »

Thanks for the report. This is now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”