Currently, MAS tracks resource converters that output ElectricCharge as "fuel cells". However, there are plenty of other possible resource converters. Add code that can categorize resource converters by their output, leaving "ElectricCharge" as the default mode (no IVA designer action required). Add functions that can be called in MASFlightComputer's startupScript to assign particular resource converters to groups by their output, such as fc.CreateResourceConverter(1, "MonoPropellant"), which would add any resource converter that outputs monopropellant to group 1.
This would be a priority system - group 0 (lowest priority) is always "ElectricCharge" so the existing Fuel Cell methods aren't affected. If group 1 is "MonoPropellant", and a resource converter outputs both "ElectricCharge" and "MonoPropellant", the converter will be assigned to group 1, not group 0.
All of this entails implementing startupScript on MASFlightComputer.
Currently, MAS tracks resource converters that output ElectricCharge as "fuel cells". However, there are plenty of other possible resource converters. Add code that can categorize resource converters by their output, leaving "ElectricCharge" as the default mode (no IVA designer action required). Add functions that can be called in MASFlightComputer's
startupScript
to assign particular resource converters to groups by their output, such asfc.CreateResourceConverter(1, "MonoPropellant")
, which would add any resource converter that outputs monopropellant to group 1.This would be a priority system - group 0 (lowest priority) is always "ElectricCharge" so the existing Fuel Cell methods aren't affected. If group 1 is "MonoPropellant", and a resource converter outputs both "ElectricCharge" and "MonoPropellant", the converter will be assigned to group 1, not group 0.
All of this entails implementing
startupScript
on MASFlightComputer.