ItemPrototypeFlags::always_show

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
kizrak
Long Handed Inserter
Long Handed Inserter
Posts: 75
Joined: Thu Jul 19, 2018 1:27 am
Contact:

ItemPrototypeFlags::always_show

Post 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 1109 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
Last edited by kizrak on Thu Jun 25, 2020 12:17 am, edited 1 time in total.

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

Re: ItemPrototypeFlags::always_show

Post 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.
If you want to get ahold of me I'm almost always on Discord.

User avatar
kizrak
Long Handed Inserter
Long Handed Inserter
Posts: 75
Joined: Thu Jul 19, 2018 1:27 am
Contact:

Re: ItemPrototypeFlags::always_show

Post 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" 😎

Post Reply

Return to “Resolved Problems and Bugs”