[1.0.0] on_gui_switch_state_changed not fires as expected after loading save

This subforum contains all the issues which we already resolved.
x2605
Inserter
Inserter
Posts: 41
Joined: Fri Jul 31, 2020 4:08 pm
Contact:

[1.0.0] on_gui_switch_state_changed not fires as expected after loading save

Post by x2605 »

Bug summary :
on_gui_switch_state_changed will not fires after loading game when clicking the switch that has left visible when saved before.

I made an scenario to help you reproduce bug.
Extract contents in scenario folder and try to play it.

Reproducing procedure with custom scenario :
1. Open switch window and click switch few times to see message.
2. Save the game while leaving switch window opened
3. Load the game and try to click switch
4. Toggle to refresh switch window, and try again. Then, it will become normal.

Other GUI elements are working as normal, as expected. I found only this one is not working as expected, I think it is bugged.
It also affect to multiplay guests. Leaving and rejoining while leaving switch on screen will produce bug.

test-on_gui_switch_state_changed.zip
(59.78 KiB) Downloaded 131 times
English is not my native language. Sorry for bad English.
My mods :
Lua API global Variable Viewer (mod portal)
Lua API Event Trace (mod portal)
My tools :
Locale String Editor (github.io webapp)
Rseding91
Factorio Staff
Factorio Staff
Posts: 14280
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.0.0] on_gui_switch_state_changed not fires as expected after loading save

Post by Rseding91 »

Thanks for the report. It's 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”