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 )
CraftingMachinePrototype.working_visualisations wrong type
- BrainGamer_
- Long Handed Inserter
- Posts: 93
- Joined: Sun Nov 14, 2021 9:52 pm
- Contact:
Re: CraftingMachinePrototype.working_visualisations wrong type
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.
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.