[0.17.61] choose-elem-button not working for mods

This subforum contains all the issues which we already resolved.
Post Reply
dockmeister
Inserter
Inserter
Posts: 48
Joined: Tue Feb 26, 2019 5:49 pm
Contact:

[0.17.61] choose-elem-button not working for mods

Post by dockmeister »

Hi,

as i understand you just added new types for the choose-elem-button - the syntax did not change?
button =
container.add({
name = "button-name",
type = "choose-elem-button",
elem_type = "signal",
})
As soon as i access the element with elem_value() or elem_type(), the game crashes with "Unknown elem type"
Image

I made a new choose-elem-button in a fresh and simple mod and got the same error message, so i hope its not on me.

cheers

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

Re: [0.17.61] choose-elem-button not working for mods

Post by Rseding91 »

Thanks for the report. It seems like reading elem_type is the only broken part of that so it's now fixed for the next version of 0.17.

We don't seem to have any tests for that part of the lua API so I'll be making those.
If you want to get ahold of me I'm almost always on Discord.

Divinicus
Manual Inserter
Manual Inserter
Posts: 1
Joined: Fri Aug 02, 2019 9:44 pm
Contact:

Re: [0.17.61] choose-elem-button not working for mods

Post by Divinicus »

Hi, the buttons "craft/usage" from the popular FNEI mod are broken (for me at least) since .61

Do you think it's the same bug?

Post Reply

Return to “Resolved Problems and Bugs”