Jump to content

3 Engine Modes?


Fireheart318

Recommended Posts

I've been working on an improved nuclear engine for the past few hours (don't tell my english teacher) and it's almost done. Just one problem, I can't get all three modes to work. It just goes from liquid fuel to intake air, skipping oxidizer. Help is greatly appreciated.

Code concerning switching:

MODULE
    {
        name = MultiModeEngine
        primaryEngineID = LF
        secondaryEngineID = OX
        secondaryEngineID = IA
    }
    MODULE
    {
        name = ModuleEnginesFX
        engineID = LF
        thrustVectorTransformName = thrustTransform
        exhaustDamage = True
        ignitionThreshold = 0.1
        minThrust = 0
        maxThrust = 60
        heatProduction = 250
        fxOffset = 0, 0, 1.6
        EngineType = Nuclear
        PROPELLANT
        {
            name = LiquidFuel
            ratio = 0.9
            DrawGauge = True
        }
        atmosphereCurve
        {
            key = 0 800
            key = 1 185
            key = 2 0.001
        }
    }
    MODULE
    {
        name = ModuleEnginesFX
        engineID = OX
        thrustVectorTransformName = thrustTransform
        exhaustDamage = True
        ignitionThreshold = 0.1
        minThrust = 0
        maxThrust = 60
        heatProduction = 250
        fxOffset = 0, 0, 1.6
        EngineType = Nuclear
        PROPELLANT
        {
            name = Oxidizer
            ratio = 0.9
            DrawGauge = True
        }
        atmosphereCurve
        {
            key = 0 800
            key = 1 185
            key = 2 0.001
        }
    }
    MODULE
    {
        name = ModuleEnginesFX
        engineID = IA
        thrustVectorTransformName = thrustTransform
        exhaustDamage = True
        ignitionThreshold = 0.1
        minThrust = 0
        maxThrust = 60
        heatProduction = 250
        fxOffset = 0, 0, 1.6
        EngineType = Nuclear
        PROPELLANT
        {
            name = IntakeAir
            ratio = 0.9
            DrawGauge = True
        }
        atmosphereCurve
        {
            key = 0 800
            key = 1 185
            key = 2 0.001
        }
    }

 

Link to comment
Share on other sites

MODULE
    {
        name = MultiModeEngine
        primaryEngineID = LF
        secondaryEngineID = OX
        secondaryEngineID = IA
    }

The reason is because your secondaryEngineID is in there twice, so it just selects the IA mode.

You would have to look into the Wiki to see if there is a "tertiaryEngineID"?

Or you might have to write a plugin that somehow adds that to the existing module.

Link to comment
Share on other sites

3 hours ago, martinezfg11 said:

MODULE
    {
        name = MultiModeEngine
        primaryEngineID = LF
        secondaryEngineID = OX
        secondaryEngineID = IA
    }

The reason is because your secondaryEngineID is in there twice, so it just selects the IA mode.

You would have to look into the Wiki to see if there is a "tertiaryEngineID"?

Or you might have to write a plugin that somehow adds that to the existing module.

I'm sorta new to this stuff. This is actually the first "successful" part I've created from scratch. How do you write plugins?

I'm not exactly familiar with KSPI's code (interstellar) but I know the engines there can use tons of different fuel types. There's gotta be a simpler way though

Link to comment
Share on other sites

3 hours ago, nli2work said:

each MultiModeEngine module supports 2 fuel modes. Maybe try multiple MultiModeEngines and make sure all the EngineIDs are unique. I suspect you'll have two fuel modes running simultaneously though.

I've set this up and I'm waiting for the game to load as I'm typing. It's loading pretty fast considering I've got around 20 mods installed including KSPI...

 

... it stopped at the better nuke. I don't think it'll work...

Link to comment
Share on other sites

  • 5 months later...
  • 3 weeks later...
3 hours ago, Fireheart318 said:

Unfortunately, no. It requires Interstellar Fuel Switch which makes my brain hurt

I actually found this: https://github.com/WarezCrawler/Guybrush101

It's a little buggy but the core is there. someone with some C# knowledge could probably flesh out the details and recompile it for the new patch. I haven't heard from the developer about their activity or intentions. Nevertheless, I've worked out that the core could be bundled (like firespitter) into a mod easily.

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