CraftingMachinePrototype.working_visualisations wrong type

Post Reply
User avatar
BrainGamer_
Long Handed Inserter
Long Handed Inserter
Posts: 85
Joined: Sun Nov 14, 2021 9:52 pm
Contact:

CraftingMachinePrototype.working_visualisations wrong type

Post by BrainGamer_ »

Docs specify that CraftingMachinePrototype.working_visualisations is "array[WorkingVisualisation]".
Apparently it should be "WorkingVisualisation or array[WorkingVisualisation]" instead.
(noticed because Bio Industries uses the non array variant which broke my prototype deserializer :D)

Bilka
Factorio Staff
Factorio Staff
Posts: 3246
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: CraftingMachinePrototype.working_visualisations wrong type

Post by Bilka »

No, it only allows an array of WorkingVisualisation. But all properties of WorkingVisualisation are optional, so when only a single WorkingVisualisation is provided it's not erroring in any way, it's just loading nothing.

You can see that happening if you turn on the unused prototype data option (via config or command line), because the properties of the single WorkingVisualisation will be logged as unused.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Resolved Requests”