[0.18.17] Cannot hide locomotive from bonus gui
Posted: Tue Apr 07, 2020 9:10 am
Hello,
I have a locomotive prototype, only thing interesting to know about it I'll list below:
Then I have an item linked to it, again giving the relevant parts:
As you can see, I'm setting the flag to hide the locomotive from the bonus gui, but it still appears:
I've attached the mod to show this, just create an empty map and run the command to unlock all technologies
Kind regards
lovely_santa
I have a locomotive prototype, only thing interesting to know about it I'll list below:
Code: Select all
-- prototypes/entity/trainassembly-placeable.lua
local trainassembly = util.table.deepcopy(data.raw["locomotive"]["locomotive"])
trainassembly.name = "trainassembly-placeable"
trainassembly.minable.result = "trainassembly"
Code: Select all
-- prototypes/item/trainassembly-placeable.lua
trainassembly.name = "trainassembly"
trainassembly.place_result = "trainassembly-placeable"
trainassembly.flags = trainassembly.flags or {}
table.insert(trainassembly.flags, "hide-from-bonus-gui")
Code: Select all
/c game.player.force.research_all_technologies()
lovely_santa