Page 1 of 1

[2.0.14] Missing or inconsistent prototype data for Fusion Reactors/Generators

Posted: Tue Nov 05, 2024 2:19 pm
by Olipro
Some data appears to be inaccessible or awkward to access for Fusion equipment when compared to its boiler/nuclear brethren. Additionally, the Fusion prototypes have no Lua wrapper exposed at all.

For more concrete examples: I cannot find any way to programmatically retrieve the plasma production/consumption for either of the respective entities - although at least I can identify their fluids through fluidbox_prototype. It would seem logical that something like `fluid_usage_per_tick` wouldn't be entirely unreasonable to change so that it doesn't return nil.

...Or I suppose, go ahead and rewrite all the electricity related entity prototypes to expose a consistent API, but that's probably not in the cards for the moment.