Jump to content

Access input resouce.


Recommended Posts

Greetings!

I've been looking for a way to access "Ratio" within INPUT_RESOURCE and OUTPUT_RESOURCE to manipulate it (from a different module in the same part). I've tried using KSPField, but for some reason I can't get it to work, although it works fine with things within the same module.

I have spent a couple of hours looking through the forums etc. without success. Would anyone be so kind to point me in the right direction?



MODULE
{
name = ModuleResourceConverter
ConverterName = Generate
StartActionName = Start
StopActionName = Stop
AutoShutdown = false
GeneratesHeat = false
UseSpecialistBonus = true
SpecialistEfficiencyFactor = 0.2
SpecialistBonusBase = 0.05
Specialty = Engineer
EfficiencyBonus = 1

INPUT_RESOURCE
{
ResourceName = ElectricCharge
Ratio = 30
}
OUTPUT_RESOURCE
{
ResourceName = LiquidFuel
Ratio = 0.45
DumpExcess = false
FlowMode = STAGE_PRIORITY_FLOW
}
}

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...