[Bug/Feature] player.opened = LuaPlayer

Bugs that are actually features.
DragonD
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sun Oct 13, 2019 10:10 am
Contact:

[Bug/Feature] player.opened = LuaPlayer

Post by DragonD »

I am making a mod.
And my mod opens player inventories when ("e" is pressed and game.tick_paused == true) .
I do this by using:

Code: Select all

player.opened = Luaplayer
But this only opens the players crafting menu:
Image

Expected:
Image

In my opinion there aren't any reasons for being unable to open the inventory gui, when the game.tick_paused = true,
because you can't add anything to the crafting queue.

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

Re: [Bug/Feature] player.opened = LuaPlayer

Post by Rseding91 »

Thanks for the report. That's working as intended: as you say - there's no point in even showing the GUI since the player can't do anything with the GUI while tick_paused is true. The GUI specifically is setup to not show the inventory if the player can't do anything with the inventory (not an editor controller and tick_paused is true).

I'm not against changing this but as of now that's why it works like it does. Showing the GUI at all while tick_paused is true for non-editor players doesn't make sense to me.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Not a bug”