[2.1.9] on_gui_closed event not fired when blueprint is closed

This subforum contains all the issues which we already resolved.
User avatar
Gergely
Filter Inserter
Filter Inserter
Posts: 659
Joined: Sun Apr 10, 2016 8:31 pm
Contact:

[2.1.9] on_gui_closed event not fired when blueprint is closed

Post by Gergely »

Steps to reproduce
  1. Start a new freeplay.
  2. Place the furnace from the inventory.
  3. Enter the command, given at the end of this post.
  4. Enter the same command again because the game STILL does not execute it the first time. (Annoying.)
  5. Pick a blueprint tool and select the furnace.
  6. 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)
Rseding91
Factorio Staff
Factorio Staff
Posts: 17171
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.1.9] on_gui_closed event not fired when blueprint is closed

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.
sarge945
Fast Inserter
Fast Inserter
Posts: 180
Joined: Wed Apr 26, 2023 9:45 am
Contact:

Re: [2.1.9] on_gui_closed event not fired when blueprint is closed

Post by sarge945 »

on_gui_opened and on_gui_closed are also not called when going into and out of remote view
robot256
Smart Inserter
Smart Inserter
Posts: 1416
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: [2.1.9] on_gui_closed event not fired when blueprint is closed

Post 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.
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Rseding91
Factorio Staff
Factorio Staff
Posts: 17171
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.1.9] on_gui_closed event not fired when blueprint is closed

Post by Rseding91 »

Remote view is not a GUI though.
If you want to get ahold of me I'm almost always on Discord.
sarge945
Fast Inserter
Fast Inserter
Posts: 180
Joined: Wed Apr 26, 2023 9:45 am
Contact:

Re: [2.1.9] on_gui_closed event not fired when blueprint is closed

Post 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?
User avatar
Gergely
Filter Inserter
Filter Inserter
Posts: 659
Joined: Sun Apr 10, 2016 8:31 pm
Contact:

Re: [2.1.9] on_gui_closed event not fired when blueprint is closed

Post 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.
Post Reply

Return to “Resolved Problems and Bugs”