Page 1 of 1

ItemPrototypeFlags::always_show

Posted: Thu Jun 25, 2020 12:14 am
by kizrak
ItemPrototypeFlags::always_show seems to be missing documentation on https://wiki.factorio.com/Types/ItemPrototypeFlags

Also, I'm having difficult getting it working...

Unknown flag "always-show"
Unknown flag "always-show"
nel8XmR46U.png (9.3 KiB) Viewed 1491 times

I'm able to add flags like ItemPrototypeFlags#hidden and they appear to be working. So I believe I'm adding the flag correctly.

Code: Select all

local sb = serpent.block
local item = data.raw["item"]
local chest = item["logistic-chest-storage"]
chest.flags = chest.flags or {}
log(sb( chest ))
local flags = chest.flags
log(sb( flags ))
table.insert(flags,"hide-from-bonus-gui")
table.insert(flags,"always-show")
table.insert(flags,"hidden")
log(sb( chest ))
log(sb( flags ))
bonus links:
Prototype/Item#flags
Concepts#ItemPrototypeFlags

Re: ItemPrototypeFlags::always_show

Posted: Thu Jun 25, 2020 12:16 am
by Rseding91
Thanks for the report. It was entered as "always_show" by mistake. I've fixed it for the next release so it's "alwasy-show" like the others.

Re: ItemPrototypeFlags::always_show

Posted: Thu Jun 25, 2020 12:22 am
by kizrak
Thanks!

Code: Select all

table.insert(flags,"always_show")
works with 0.18.33! ❤
Rseding91 wrote: Thu Jun 25, 2020 12:16 am Thanks for the report. It was entered as "always_show" by mistake. I've fixed it for the next release so it's "alwasy-show" like the others.
And hopefully "always-show" instead of "alwasy-show" 😎