I'm trying to make a mod with color-coded power conduits that act the same way as vanilla conduits, in that they can connect to power consumers without any additional buildings (As opposed to Parallel Power Grids, where the color-coded conduits don't directly connect to devices and are more of a carrier between vanilla conduits).
I've got a script that inherits CompProperties_Power and one that inherits CompPowerTransmitter with adjustments to track the grid color, and the ghosts of the colored grid and vanilla conduits don't connect, they become connected after construction. This leads me to believe that the issue lies the PowerNetManager, but it doesn't seem to have any way of handling separate power grids. I can't inherit it and make necessary adjustments, because the parts that need to be changed can't be overridden, and I can't copy it because other related scripts are looking specifically for the PowerNetManager class (such as PowerNet class and, indirectly, the CompPower class)
Am I just trying the impossible, or am I simply missing something?
I've got a script that inherits CompProperties_Power and one that inherits CompPowerTransmitter with adjustments to track the grid color, and the ghosts of the colored grid and vanilla conduits don't connect, they become connected after construction. This leads me to believe that the issue lies the PowerNetManager, but it doesn't seem to have any way of handling separate power grids. I can't inherit it and make necessary adjustments, because the parts that need to be changed can't be overridden, and I can't copy it because other related scripts are looking specifically for the PowerNetManager class (such as PowerNet class and, indirectly, the CompPower class)
Am I just trying the impossible, or am I simply missing something?