[Rseding91] [0.16.7] game.player.opened = item_without_gui crashes game

This subforum contains all the issues which we already resolved.
Post Reply
dewiniaid
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Tue Mar 07, 2017 8:50 pm
Contact:

[Rseding91] [0.16.7] game.player.opened = item_without_gui crashes game

Post by dewiniaid »

The following console command crashes vanilla 0.16.7 in a brand new game:

Code: Select all

/c game.player.opened = game.player.get_quickbar()[1]
It works if the first quickbar item is not an openable item (e.g. Modular Armor, etc.). If the first quickbar slot is empty, the crash still occurs.

The expected result was a console error message telling modders to stop doing stupid things.

(As an aside, would this -- or right-clicking on an inventory item -- raise `on_mod_item_opened` on an item that is `can_be_mod_opened`?)
Attachments
factorio-current.log
Log moments after starting a new game with no mods enabled.
(55.1 KiB) Downloaded 53 times

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

Re: [0.16.7] game.player.opened = item_without_gui crashes game

Post by Rseding91 »

Thanks for the report. I've fixed it for the next version of 0.16.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”