Page 1 of 1

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

Posted: Fri Aug 02, 2019 8:18 pm
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

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

Posted: Fri Aug 02, 2019 8:28 pm
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.

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

Posted: Fri Aug 02, 2019 9:57 pm
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?