I looked into that and found the ISRU.cfg at \Kerbal Space Program\GameData\WarpPlugin\Parts\Utility\ISRU
It contained these modules that defined some of the processes, but the file doesn't contain stuff like the Haber process or Water Electrolysis that appears in the 'Refinery Window' in the game.
I did try to add another module defining a Water processor, but it didn't work
MODULE
{
name = ModuleResourceConverter
ConverterName = Borate Processor
StartActionName = Start Borate Processing
StopActionName = Stop Borate Processing
AutoShutdown = true
TemperatureModifier
{
key = 0 100000
key = 750 50000
key = 1000 10000
key = 1250 500
key = 2000 50
key = 4000 0
}
GeneratesHeat = true
DefaultShutoffTemp = .8
ThermalEfficiency
{
key = 0 0 0 0
key = 500 0.1 0 0
key = 1000 1.0 0 0
key = 1250 0.1 0 0
key = 3000 0 0 0
}
UseSpecialistBonus = true
SpecialistEfficiencyFactor = 0.2
SpecialistBonusBase = 0.05
Specialty = Engineer
EfficiencyBonus = 1
INPUT_RESOURCE
{
ResourceName = Borate
Ratio = 2.5
}
INPUT_RESOURCE
{
ResourceName = ElectricCharge
Ratio = 18
}
OUTPUT_RESOURCE
{
ResourceName = Boron
Ratio = 0.15
DumpExcess = False
}
OUTPUT_RESOURCE
{
ResourceName = LqdOxygen
Ratio = 0.75
DumpExcess = True
}
}
I look at the source for Interstellar on the GitHub page and found a file named FNRefinery.cs which contains the processor function that I'm looking for... (Line 280)
else if (active_mode == 3) { // Water Electrolysis
double density_h = PartResourceLibrary.Instance.GetDefinition(InterstellarResourcesConfiguration.Instance.Hydrogen).density;
double density_o = PartResourceLibrary.Instance.GetDefinition(InterstellarResourcesConfiguration.Instance.Oxygen).density;
double density_h2o = PartResourceLibrary.Instance.GetDefinition(InterstellarResourcesConfiguration.Instance.Water).density;
double electrical_power_provided = consumeFNResource((GameConstants.baseELCPowerConsumption) * TimeWarp.fixedDeltaTime, FNResourceManager.FNRESOURCE_MEGAJOULES);
electrical_power_ratio = (float)(electrical_power_provided / TimeWarp.fixedDeltaTime / GameConstants.baseELCPowerConsumption);
electrolysis_rate_d = electrical_power_provided / GameConstants.electrolysisEnergyPerTon / TimeWarp.fixedDeltaTime;
double water_consumption_rate = part.RequestResource(InterstellarResourcesConfiguration.Instance.Water, electrolysis_rate_d * TimeWarp.fixedDeltaTime / density_h2o) / TimeWarp.fixedDeltaTime * density_h2o;
double hydrogen_rate = water_consumption_rate / (1 + GameConstants.electrolysisMassRatio);
double oxygen_rate = hydrogen_rate * GameConstants.electrolysisMassRatio;
electrolysis_rate_d = part.RequestResource(InterstellarResourcesConfiguration.Instance.Hydrogen, -hydrogen_rate * TimeWarp.fixedDeltaTime / density_h);
electrolysis_rate_d += part.RequestResource(InterstellarResourcesConfiguration.Instance.Oxygen, -oxygen_rate * TimeWarp.fixedDeltaTime / density_o);
electrolysis_rate_d = electrolysis_rate_d / TimeWarp.fixedDeltaTime * density_h;
So could you direct me how to change this file and then implement the change in the game install, cause I can't find anything resembling the above file (FNRefinery.cs) in the game folder