[0.15.32] LuaControl.opened with defines.gui_type.none

This subforum contains all the issues which we already resolved.
User avatar
theRustyKnife
Filter Inserter
Filter Inserter
Posts: 260
Joined: Thu Feb 26, 2015 9:26 pm
Contact:

[0.15.32] LuaControl.opened with defines.gui_type.none

Post by theRustyKnife »

If I try to do something like

Code: Select all

game.player.opened = defines.gui_type.none
the game just spits out an error saying: "Invalid type: 0". According to the docs this should be possible and I see no reason why it shouldn't either.

Cheers TRK
Rseding91
Factorio Staff
Factorio Staff
Posts: 16029
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.15.32] LuaControl.opened with defines.gui_type.none

Post by Rseding91 »

Thanks for the report. The current supported way to close the GUi is to set it to "nil". There's no reason "none" can't also work but until that's fixed you can use nil.
If you want to get ahold of me I'm almost always on Discord.
User avatar
theRustyKnife
Filter Inserter
Filter Inserter
Posts: 260
Joined: Thu Feb 26, 2015 9:26 pm
Contact:

Re: [0.15.32] LuaControl.opened with defines.gui_type.none

Post by theRustyKnife »

Ok, didn't know that, thanks.
Post Reply

Return to “Resolved Problems and Bugs”