Jump to content

[WIP] Thermonuclear Reaction Turbine (BAC9 help please)


Eskandare

Recommended Posts

I'm building a thermonuclear reaction turbine based off of the ones used in the anime series Macross. Although since I'm trying to use Bac9's vectored thrust engine model and the saber engine system. The premise: The engine uses a propellant efficiently in a plasma reaction within the turbine, in an atmosphere, the air acts as a propellant thus it does not need to carry fuel as the engine uses the atmosphere as a propellant. In space the craft must use a propellant stored in the craft to generate thrust from the engine while using very little propellant. In the series, early engines were propellant hungry but later ones used less propellant. I'm making this for fun rather then being realistic. Bac9 if you're available could you help me with this? I'm also trying to understand how the code works in relation to the engines.

PART
{
// --- general parameters ---
name = B9_Engine_Reaction_F119
module = Part
author = bac9-flcl (textures), Taverius (model), Eskandare (CFG file)

// --- asset parameters ---
mesh = model.mu
scale = 1
rescaleFactor = 1

// --- node definitions ---
node_stack_top = 0.0, 1.25, 0.0, 0.0, 1.0, 0.0, 1
node_attach = 0.0, 0.625, 0.625, 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 ---
cost = 950
category = Propulsion
subcategory = 0
title = F119 Thermonuclear Reaction Turbine
manufacturer = O-Tech Corporation
description = OverTechnology afterburning low-bypass reaction turbofan engine capable of sustained supercruise speeds and space travel. Fitted with latest in

thrust vectoring technology, this engine provides extreme pitch authority, and, if multiple engines are present, outstanding roll authority. Obvious choice whenever

superior maneuverability is desired.
// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
attachRules = 1,1,1,1,0

// --- standard part parameters ---
mass = 1.5
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.2
angularDrag = 2
crashTolerance = 7
breakingForce = 750
breakingTorque = 750
maxTemp = 3600

RESOURCE
{
name = Plasma_Reaction_Core
amount = 1
maxAmount = 1
}

MODULE
{
name = HydraEngineController
primaryModeName = Air-Breathing
secondaryModeName = Rocket

// Air-Breathing Mode
primaryEngine
{
name = ModuleEngines
thrustVectorTransformName = thrust_transform
exhaustDamage = True
ignitionThreshold = 0.1
minThrust = 0
maxThrust = 160
heatProduction = 450
useEngineResponseTime = True
engineAccelerationSpeed = 0.4
engineDecelerationSpeed = 0.7
useVelocityCurve = True
fxOffset = 0, 0, 0.5
PROPELLANT
{
name = Plasma_Reaction_Core
ratio = 1.E-40
}
PROPELLANT
{
name = IntakeAir
ratio = 1.E-13
}
atmosphereCurve
{
// Based on Isp/TSFC data from NASA EngineSim, and Kerbin atmo.
key = 0 1731 0 -8600000
key = 7.5E-06 1675 0 0
key = 0.0006 1781 0 0
key = 0.11 1715 0 0
key = 1 1800 120 0
}
velocityCurve
{
// Based on Fnet data from NASA EngineSim, curve fitted with MuMech CurveEd
key = 0 0.9 0 -0.0014
key = 234 0.75 0 0
key = 825 1 0 0
key = 945 0 -0.022 0
}
}

// Rocket Mode
secondaryEngine
{
name = ModuleEngines
thrustVectorTransformName = thrust_transform
exhaustDamage = True
ignitionThreshold = 0.1
minThrust = 0
maxThrust = 215
heatProduction = 550
fxOffset = 0, 0, 0.5
useEngineResponseTime = False
PROPELLANT
{
name = Plasma_Reaction_Core
ratio = 1.E-40
}
PROPELLANT
{
name = MonoPropellant
ratio = 1.E-20
}
atmosphereCurve
{
key = 0 375
key = 1 330
}
}
}

MODULE
{

Link to comment
Share on other sites

The code appears to have the modes of the SABRE coded as two separate engines, primary and secondary, that are swapped by the "hydra engine controller" which I can only imagine is part of one of the included plugins, likely Exurgent Engineering. Unless you can get permission to package your parts with that plugin, you may have to start learning some C# to code your own.

Link to comment
Share on other sites

Object orientated programing isn't the problem, I just don't have the source to play with (maybe I do?) or a dev kit currently (I wouldn't mind good suggestions on a free compiler etc). I haven't used C# for a few years. I'm basically doing this for myself until I have permission from Bac9 to post on boards.

Link to comment
Share on other sites

Bac9 is an artist, the plugins were done by others so if you're interested in using the HydraEngineController plugin I believe the creator is on the KSP modders IRC fairly frequently: #kspmodders on irc.esper.net.

If you really need to speak with Bac9 (or anyone, really) it'd make more sense to send a PM than just hoping he sees the thread.

Link to comment
Share on other sites

Bac9 is an artist,

Oh yeh that's right, I had forgotten to mention that also the attachment node is not flush with the model. Also want to ask him for permission to use the art and model.

the plugins were done by others so if you're interested in using the HydraEngineController plugin I believe the creator is on the KSP modders IRC fairly frequently: #kspmodders on irc.esper.net.

Thanks, that is good stuff. I'll do that, because I'm curious how the HydraEngineController plugin relates to the CFG file. EDIT: I'm also having issues with early flame-out and fuel consumption is still too high for the reaction core.

If you really need to speak with Bac9 (or anyone, really) it'd make more sense to send a PM than just hoping he sees the thread.

Yeh, I had just gotten off of work, had a few and wasn't thinking. I should have PMed Taverius and Bac9 about permission to use the art.

Edited by Eskandare
Forgot to add text.
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...