Jump to content

Help with Kerbalism Configuration


Mitokandria

Recommended Posts

I'm trying to add a new option to the Convert-o-tron for converting Ore + Water + EC into CO2 and Liquid Fuel (Coal Gasification). I've added the process to the "Default.cfg" Kerbalism profile (just to test) but it doesn't show up ingame.

 

Any idea what I'm doing wrong? (Ignore the values. I thought it was per hour and not per second.)

    Process
  {
    name = Regolith Gasification
    title = #KERBALISM_Process_RegolithGasification
    modifier = _RG
    input = ElectricCharge@3.0 // 3 kW Furnace at 1800 C to begine coal gasification
    input = Ore@0.04
	input = Water@0.06
    output = CarbonDioxide@0.167  // 1g CO2 produced per day at 1800c
    output = LiquidFuel@0.000496445 // 1g CH4 produced per day at 1800c
    dump_valve = CarbonDioxide,CarbonDioxide&LiquidFuel,LiquidFuel
  }

 

Link to comment
Share on other sites

Hi there, @Mitokandria. There are three major components (I think) to a working Kerbalism refinery config. The first thing you need is a Profile{} to contain any and all  Process{} that you create, and other parameters that are important to any Kerbalism profile config. So you want to have this:

Profile
{
	name = KerbalismSupport // Uses this value to (I believe) extend whatever the actual active profile (like "Default") is
	modname = Mitokandria Things // Can be anything but it's good practice to match moddir value. Can contain spaces and funky characters
	moddir = MitokandriaKerbalism // A mod folder name. Must exist in GameData/
	
	Process
	{
		name = RegolithGasification // Personally, I don't like putting spaces in a name value. That's what title is for. Some mods don't like spaces here so I'm exercising a good habit
		title = Regolith Gasification // Something that I just made up isn't going to magically have a LOC entry
		modifier = _RG
		input = ElectricCharge@3.0 // 3 kW Furnace at 1800 C to begine coal gasification
		input = Ore@0.04
		input = Water@0.06
		output = CarbonDioxide@0.167  // 1g CO2 produced per day at 1800c
		output = LiquidFuel@0.000496445 // 1g CH4 produced per day at 1800c
		dump_valve = CarbonDioxide,CarbonDioxide&LiquidFuel,LiquidFuel
	}
}

 

The second thing you need is a resource definition for your pseudo-resource. It is a root node (a configNode that is not inside of any other, like Profile{} above and any PART{}).

RESOURCE_DEFINITION
{
	name = _RG
	density = 0.0
	isVisible = false
}

 

The third thing is the actual insertion of modules into the part you want to use. Be careful with the :FOR pass. (You might not need it at all so test without it and see.) Don't use :FOR on a mod you do not own or your patch will tell MM that the named mod is installed when it's not.

@PART[ISRU]:NEEDS[Kerbalism]:FOR[MitokandriaKerbalism]
{
	MODULE // Must have a match inside a SETUP{} below
	{
		name = ProcessController
		resource = _RG
		title = Regolith Gasification
		capacity = 1
	}
	
	@MODULE[Configure] // The switcher for converter or harvester chains
	{
		SETUP // Your chain added to the options/ other chains in the switcher
		{
			name = Regolith Gasification
			desc = Burn <b>Ore</b> and <b>Water</b> at 1800 C and get stuff. // Change as you wish. Basic HTML works here
			MODULE
			{
				type = ProcessController
				id_field = resource
				id_value = _RG
			}
		}
	}
}

 

 

Edited by JadeOfMaar
Link to comment
Share on other sites

11 hours ago, JadeOfMaar said:

Hi there, @Mitokandria.....

 

Thank you! I knew I was missing at least one part of the puzzle, but couldn't figure it out by analyzing the other kerbalism configs. Seems I was missing 2 parts!

 

I'll analyze what you've given me and give it another go. Scripting language for KSP1 modding feels very different from other games so I'm having a difficult time learning the defs and functions.

Edited by Mitokandria
Can't count
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...