[Rseding] [15.14] choose-element-button type = entity

This subforum contains all the issues which we already resolved.
Post Reply
Nexela
Smart Inserter
Smart Inserter
Posts: 1822
Joined: Wed May 25, 2016 11:09 am
Contact:

[Rseding] [15.14] choose-element-button type = entity

Post by Nexela »

I think this showed up in .15.13

Code: Select all

-- creates the button, does not set it straight-rail
/c but = game.player.gui.center.add{type="choose-elem-button", name="elembut", elem_type="entity", elem_value = "straight-rail"}

-- errors that it is not an item prototype
/c but.elem_value = "straight-rail"

-- doesn't change the button value to stone furnace
/c but.elem_value = "stone-furnace"

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

Re: [Rseding] [15.14] choose-element-button type = entity

Post by Rseding91 »

This has actually been broken since it was added (0.15.0) it always expected elem_type to be "item". Anyway, it's now fixed for the next version of 0.15.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”