Page 1 of 1
[2.1.9] on_gui_closed event not fired when blueprint is closed
Posted: Sat Jul 11, 2026 5:05 pm
by Gergely
Steps to reproduce
- Start a new freeplay.
- Place the furnace from the inventory.
- Enter the command, given at the end of this post.
- Enter the same command again because the game STILL does not execute it the first time. (Annoying.)
- Pick a blueprint tool and select the furnace.
- Exit the blueprint configuration by pressing "Esc".
Expected
"gui closed" is printed to the chat.
Actual
Nothing is printed.
Why is this unexpected
Closing the blueprint gui with confirm (E) will fire the event as expected. Other instances where the gui can be closed (such as the furnace's gui) will fire the event for both "Esc" and "E".
Code: Select all
/c script.on_event(defines.events.on_gui_closed,function() game.print("gui closed") end)
Re: [2.1.9] on_gui_closed event not fired when blueprint is closed
Posted: Sun Jul 12, 2026 5:37 pm
by Rseding91
Thanks for the report. This is now fixed for the next release.
Re: [2.1.9] on_gui_closed event not fired when blueprint is closed
Posted: Tue Jul 14, 2026 2:40 am
by sarge945
on_gui_opened and on_gui_closed are also not called when going into and out of remote view
Re: [2.1.9] on_gui_closed event not fired when blueprint is closed
Posted: Tue Jul 14, 2026 3:03 am
by robot256
sarge945 wrote: Tue Jul 14, 2026 2:40 am
on_gui_opened and on_gui_closed are also not called when going into and out of remote view
Please make a new thread. This one is closed and will be ignored.
Re: [2.1.9] on_gui_closed event not fired when blueprint is closed
Posted: Tue Jul 14, 2026 7:11 am
by Rseding91
Remote view is not a GUI though.
Re: [2.1.9] on_gui_closed event not fired when blueprint is closed
Posted: Tue Jul 14, 2026 7:49 am
by sarge945
Rseding91 wrote: Tue Jul 14, 2026 7:11 am
Remote view is not a GUI though.
Is there any way for a script to fire an event when the player opens/closes remote view, similar to opening any other GUI? If not, perhaps there should be?
Re: [2.1.9] on_gui_closed event not fired when blueprint is closed
Posted: Tue Jul 14, 2026 9:48 am
by Gergely
sarge945 wrote: Tue Jul 14, 2026 7:49 am
Is there any way for a script to fire an event when the player opens/closes remote view, similar to opening any other GUI? If not, perhaps there should be?
Remote view is a separate
controller. Changing controllers has it's own event:
on_player_controller_changed. This event is fired when a player enters/exits remote view.