Jump to content

Changing what fuel usage is displayed in stage?


Recommended Posts

I don't know of a better way to phrase this question but how would I go about getting my jet engines to display air as the resource shown in stage instead of liquid fuel? B9's SABRE does it but not the turbojet, which is the one I actually need. Below is a picture showing what I mean XTDibDf.png

bmn59T7.png

loJzxOF.png?1

If you can point out what part of the CFG I need to copy and paste I can do that, anything more complicated may need a bit of tutorial.

Edited by Pyroyoshi
I added more pictures to make it more clear.
Link to comment
Share on other sites

As far as I know there is no way to change the resource-type shown against the engines. In any case, air is not a limited consumable in the same way as fuel so KSP would have no way of deciding when it's '50%' used, or whatever.

Although, thinking of that, the resources panel shows it as % of max available so perhaps it wouldn't have to work too hard!

Link to comment
Share on other sites

You'll have to edit the part config file for the engine. Inside the engine module, in the resources braces, one of them should say "showGauge = True" or something of that effect. Take that out of one resource and put it in another. (in this case, from liquidfuel to intakeair)

I think having multiple gauges also works, but I'm not 100% sure on that.

Link to comment
Share on other sites

You'll have to edit the part config file for the engine. Inside the engine module, in the resources braces, one of them should say "showGauge = True" or something of that effect. Take that out of one resource and put it in another. (in this case, from liquidfuel to intakeair)

I think having multiple gauges also works, but I'm not 100% sure on that.

Here are the two part Cfg's. I couldn't find showgauge or a resource call for either fuel or air.

CFG for Turbojet:

PART

{

// --- general parameters ---

name = B9_Engine_Jet_Turbojet

module = Part

author = bac9

// --- asset parameters ---

mesh = model.mu

scale = 1.0

rescaleFactor = 1

// --- node definitions ---

node_stack_top = 0.0, 0.5, 0.0, 0.0, 1.0, 0.0

// --- FX definitions ---

fx_exhaustLight_yellow = 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, power

fx_smokeTrail_light = 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, power

fx_exhaustSparks_flameout = 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, flameout

// --- Sound FX definition ---

sound_vent_medium = engage

sound_jet_low = running

sound_jet_deep = power

sound_vent_soft = disengage

sound_explosion_low = flameout

// --- editor parameters ---

TechRequired = supersonicFlight

entryCost = 9000

cost = 1450

category = Propulsion

subcategory = 0

title = D-30F7 Turbojet Engine

manufacturer = Tetragon Projects

description = Augmented turbojet capable of sustained supercruise without permanent damage to the engine thanks to advanced materials in use. Probably without. Perfect choice when brute force is required. Slow RPM change necessitates longer than usual takeoff roll and landing approaches, but is otherwise a non-issue.

// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision

attachRules = 1,0,1,0,0

// --- standard part parameters ---

mass = 1.3

dragModelType = default

maximum_drag = 0.2

minimum_drag = 0.2

angularDrag = 2

crashTolerance = 7

breakingForce = 75

breakingTorque = 75

maxTemp = 3600

MODULE

{

name = ModuleEngines

thrustVectorTransformName = thrust_transform

exhaustDamage = False

ignitionThreshold = 0.1

minThrust = 0

maxThrust = 225

heatProduction = 600

useEngineResponseTime = True

engineAccelerationSpeed = 0.12

engineDecelerationSpeed = 0.21

useVelocityCurve = True

fxOffset = 0, 0, 1.13

PROPELLANT

{

name = LiquidFuel

ratio = 1

DrawGauge = True

}

PROPELLANT

{

name = IntakeAir

ratio = 21

}

atmosphereCurve

{

// Based on Isp/TSFC data from NASA EngineSim, and Kerbin atmo.

key = 0 1625 0 2.25E+07

key = 7.5E-06 1772 0 0

key = 0.0006 1492 0 0

key = 0.11 1668 0 0

key = 1 1440 -375 0

}

velocityCurve

{

// Based on Fnet data from NASA EngineSim, curve fitted with MuMech CurveEd

key = 0 0.56 0 -0.0003

key = 230 0.52 0 0

key = 687 0.7 0.0011 0.0011

key = 1030 1 0 0

key = 1260 0.5 -0.004 -0.004

key = 1430 0 0 0

}

}

MODULE

{

name = ModuleAnimateHeat

ThermalAnim = jet_turbofan_heat

}

MODULE

{

name = ModuleAlternator

RESOURCE

{

name = ElectricCharge

rate = 5.0

}

}

RESOURCE

{

name = ElectricCharge

amount = 0

maxAmount = 0

}

}

cfg for SABRE:

PART

{

// --- general parameters ---

name = B9_Engine_SABRE_M

module = Part

author = bac9-flcl (textures), Taverius (model)

// --- asset parameters ---

mesh = model.mu

scale = 1.0

rescaleFactor = 1

// --- node definitions ---

node_stack_top = 0.0, 1.25, 0.0, 0.0, 1.0, 0.0, 2

node_attach = 0.0, 0.625, 1.25, 0.0, 0.0, -1.0

CoMOffset = 0.0, -0.625, 0.0

// --- FX definitions ---

fx_exhaustFlame_blue = 0.0, -0.0, 0.0, 0.0, 1.0, 0.0, power

fx_exhaustLight_blue = 0.0, -0.0, 0.0, 0.0, 0.0, 1.0, power

fx_smokeTrail_light = 0.0, -0.0, 0.0, 0.0, 1.0, 0.0, power

fx_exhaustSparks_flameout = 0.0, -0.0, 0.0, 0.0, 1.0, 0.0, flameout

// --- Sound FX definition ---

sound_vent_medium = engage

sound_rocket_hard = power

sound_vent_soft = disengage

sound_explosion_low = flameout

// --- editor parameters ---

TechRequired = aerospaceTech

entryCost = 85500

cost = 19500

category = Propulsion

subcategory = 0

title = SABRE M Engine

manufacturer = Tetragon Projects

description = Combined-cycle rocket engine. Mode #1 is a turbocompressed air-breathing rocket/ramjet engine. Mode #2 is a high efficiency rocket engine. More convenient and easier to pull off than relying on using multiple engine types, but marginally less efficient than some specialized combinations.

// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision

attachRules = 1,1,1,1,0

// --- standard part parameters ---

mass = 6

dragModelType = default

maximum_drag = 0.2

minimum_drag = 0.2

angularDrag = 2

crashTolerance = 7

breakingForce = 3000

breakingTorque = 3000

maxTemp = 3600

MODULE

{

name = HydraEngineController

primaryModeName = Air-Breathing

secondaryModeName = Rocket

// Air-Breathing Mode

primaryEngine

{

name = ModuleEngines

thrustVectorTransformName = nozzle_transform

exhaustDamage = True

ignitionThreshold = 0.1

minThrust = 0

maxThrust = 860

heatProduction = 900

useEngineResponseTime = True

engineAccelerationSpeed = 0.2

engineDecelerationSpeed = 0.35

useVelocityCurve = True

fxOffset = 0, 0, 0.5

PROPELLANT

{

name = LiquidFuel

ratio = 1

}

PROPELLANT

{

name = IntakeAir

ratio = 9

}

atmosphereCurve

{

// Atm.P. Isp iTan oTan

key = 0 2351 0 3.26E+07

key = 7.5E-06 2564 0 0

key = 0.0006 2159 0 0

key = 0.11 2413 0 0

key = 1 2084 -660 0

}

velocityCurve

{

// m/s %F iTan oTan

key = 0 0.85 0 -0.0007

key = 300 0.75 0 0

key = 1500 1 0 0

key = 1650 0.88 -0.003 -0.003

key = 1800 0 0 0

}

}

// Rocket Mode

secondaryEngine

{

name = ModuleEngines

thrustVectorTransformName = nozzle_transform

exhaustDamage = True

ignitionThreshold = 0.1

minThrust = 0

maxThrust = 740

heatProduction = 1100

fxOffset = 0, 0, 0.5

useEngineResponseTime = False

PROPELLANT

{

name = LiquidFuel

ratio = 0.9

}

PROPELLANT

{

name = Oxidizer

ratio = 1.1

}

atmosphereCurve

{

key = 0 385

key = 1 370

}

}

}

MODULE

{

name = ModuleAnimateHeat

ThermalAnim = sabre_250_heat_nozzle

}

// Alternator & Power

MODULE

{

name = ModuleAlternator

RESOURCE

{

name = ElectricCharge

rate = 10.0

}

}

MODULE

{

name = ModuleGimbal

gimbalTransformName = nozzle_transform

gimbalRange = 3

//useGimbalResponseSpeed = true

}

RESOURCE

{

name = ElectricCharge

amount = 0

maxAmount = 0

}

}

It was call DrawGauge, I am checking now to see if that worked!

Edited by Pyroyoshi
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...