r/KSPModDevelopment • • Jul 01 '18

Mod Post Monthly Simple Questions Thread

1 Upvotes

The point of this thread is for anyone to ask questions that don't necessarily require a full thread. Even if your question seems slightly stupid, we'll do our best to answer it!

Before you post, maybe you can search for your problem using the search in the upper right! Chances are, someone has had the same question as you and has already answered it!

As always, the side bar is a great resource for all things Kerbal, if you don't know, look there first!


r/KSPModDevelopment • • Dec 28 '15

Mod Thoughts, Questions, Capital Ships, etc.

2 Upvotes

I've been thinking about doing something fairly big for a while now, and I think it's about time to start. But I might not, and this might be a waste of time, unless you use a concept yourself.

a question; if you have messed around with Kerbal and Space Engineers both lately, which do you think will have, in the end, better multiplayer support? The obvious answer I think is Space Engineers since it already has multiplayer, but I've been looking at Unity 5 MBS and other parts, multiplayer really should be fairly simple to integrate (as long as it's not me). If it's going to happen, I'd rather stick with KSP.

Capital Ships: I don't think the current KSP system can do them well; If you use the mod packs like LLL, you can get something that looks good, but the part count would kill most systems. I've been thinking of a couple of alternative ways to do it.

The easiest one I think would to have a library of Hull shapes (cigar, wedge, oval, square, etc) or better yet, 4 different parts that when combined make a hull shape. select the stern quarter of the hull, use the sliders to assign percentage and type of propulsion system; next more forward quarter, assign percentage set aside for cargo, fuel, quarters... etc. when done, it could probably all go into a custom category in the VAB to be assembled and oriented how the user wants, then further add-ons specified. it would lose something in the detailed looking good category, but minimize part counts.

The other way would use mesh design widget external to the game; I've got one I made in VB5 I think.."pull vertices until you get the shape you like" thing, mine exports as .OBJ and JPG maps, make another tool to automatically put it in Kerbal format...I think it's too weird.

I've got some other stuff I've been considering, like adding a strategic element? but this is a big enough post. BTW, I can make all this stuff to the point that it barely works, but I suck at finishing and polishing.


r/KSPModDevelopment • • Dec 16 '15

Question Compiling a plugin binary against a mod?

3 Upvotes

I am trying to get this plugin for kOS working.

I found a tutorial for compiling KSP plugins under linux. I think I can manage it but I don't know what:

just recompile it against last kos [version]

means. How do I do that?

Thx Junebug.

edit: fixed link


r/KSPModDevelopment • • Dec 19 '15

Mod Idea: MechJeb addon to automatically transfer fuel

3 Upvotes

An addon for MJ to shift the remaining fuel to the center of thrust, or to shift center of thrust to center of mass


r/KSPModDevelopment • • Jun 29 '16

Other Model+Texture request (I can make the CFG file)

Thumbnail
forum.kerbalspaceprogram.com
1 Upvotes

r/KSPModDevelopment • • Jan 01 '17

Mod Post Monthly Simple Questions Thread

3 Upvotes

The point of this thread is for anyone to ask questions that don't necessarily require a full thread. Even if your question seems slightly stupid, we'll do our best to answer it!

Before you post, maybe you can search for your problem using the search in the upper right! Chances are, someone has had the same question as you and has already answered it!

As always, the side bar is a great resource for all things Kerbal, if you don't know, look there first!


r/KSPModDevelopment • • May 27 '17

Finding Klockeed Martian Special Parts

3 Upvotes

So I'm trying to rebuild an archived version of KSP .90 I lost a year or so ago. The flotation devices in this mod were really cool and I used them pretty extensively in a few of my builds.

Unfortunately it seems at some point the maintainer of the original mod was harassed by a user on the official forums and basically shuttered the mod. Because KM Special Parts was only ever really hosted on the KM github which is now gone, as far as I can tell, I cannot find this mod mirrored anywhere else.

So my question is does anyone have an archived copy of this mod they could re-upload somewhere?


r/KSPModDevelopment • • Mar 16 '18

Release Old Parts Redux - Part reimplimentation mod - Now released!

Thumbnail
spacedock.info
4 Upvotes

r/KSPModDevelopment • • Jul 01 '16

Mod Post Monthly Simple Questions Thread

3 Upvotes

The point of this thread is for anyone to ask questions that don't necessarily require a full thread. Even if your question seems slightly stupid, we'll do our best to answer it!

Before you post, maybe you can search for your problem using the search in the upper right! Chances are, someone has had the same question as you and has already answered it!

As always, the side bar is a great resource for all things Kerbal, if you don't know, look there first!


r/KSPModDevelopment • • Jun 01 '17

Mod Post Monthly Simple Questions Thread

1 Upvotes

The point of this thread is for anyone to ask questions that don't necessarily require a full thread. Even if your question seems slightly stupid, we'll do our best to answer it!

Before you post, maybe you can search for your problem using the search in the upper right! Chances are, someone has had the same question as you and has already answered it!

As always, the side bar is a great resource for all things Kerbal, if you don't know, look there first!


r/KSPModDevelopment • • Dec 27 '16

I'm developing a mod, and need some assistance with unity.

1 Upvotes

I'm working on a part mod and need some assistance with putting the model and texture through unity. I've watched a number of tutorials on working with Unity, but can't get my head around it. So I figured I'd just see if there's anyone interested in helping me with it.


r/KSPModDevelopment • • Dec 30 '15

Any Mods looking for a 3d Artist?

9 Upvotes

I've used blender for years now, and don't currently have any 3d projects on the go, so figured I'd offer my modelling skills to any mods in need of custom parts. Anyone interested?


r/KSPModDevelopment • • Nov 29 '20

Question Making nuclear electric sonic engine mod and aded a New added test part as config in directory, can't change thrust of new part tho other values seem to change.

2 Upvotes

So I am trying to make a series of power sucking electric engines that need an MPS nuclear power system and cooling to operate, and in Lynx I found the perfect candidate.

So I copied the rear_hover and hover cfg from the Lynx parts that are part of a rover mod into a new folder as new titled parts. Near the middle is "max thrust" and "thrust speed" and when I attempt to change the value to be higher; it will not reflect in game. I can change the scale to 0.25 as I wanted, can change the electric charge used, heat generated, (which is much higher so it requires cooling for balance) even the description; but the thrust will not change. There is no min thrust anywhere.   Also in the cfg files the thrust says 80, but in game it is 100? And on the second engine it says 130\80. Is a patch overriding these values somewhere?? Where can I actually change the value of thrust and have it reflected in game for the custom part? I want to combine the power usage and thrust of several of these electric engines so I can make an electric lifter/super sonic jet engine with a reduced part count as I put 40 of these in a fuselage and got it to mach 4.19; now i want to add the power of 20-40 into one. Can't I "weld" them together or something? I'd prefer it to be a new part based on the hover engine mesh, allows tilt or rotor deployment (rotor deployment is muuuuch lower and seems to work well for angling the engine.) that allows for a different challenge like power consumption, power storage, and high speed supersonic heat reduction using multiple forms of cooling and secondary power systems.   I want this to require nuclear power to run from the power draw for balance. I figure I can do this by just increasing the power requirements enough to need nuclear power.

If anyone can point me just in the right direction with the right place to look it would allow me to start building the mod for 1.3.1 KSP and up as I want a unique challenge here.

Below is the code for the Lynx Hover Engine and then the new part copied and edited as Sonic Engine 1:

This is the Original Hover Engine File for the Lynx:

"PART

{

    //The hover engine for the Lynx Rover of the Feline Utility Rover series

    //---Metadata---

    name = Lynx_Hoverengine

    module = Part

    author = Nils277

    //---Visual---

    MODEL

    {

        model = KerbetrotterLtd/FelineUtilityRover/Assets/Parts/HoverEngine

    }

    

    rescaleFactor = 1

    //---Nodes and Attachment---

    attachRules = 1,1,0,0,1

    node_stack_front = 0, 0, 0, 1, 0, 0, 0

    node_attach = 0, 0, 0, 1, 0, 0, 0

    CoMOffset = -0.8, 0, 0

    

    //---Costs & Tech---

    TechRequired = landing

    entryCost = 15000

    cost = 8000

    //---Descriptions---

    category = Engine

    title = #LOC_FUR.hoverengine.title

    manufacturer = #LOC_FUR.manufacturer

    description = #LOC_FUR.hoverengine.description

    vesselType = Rover

    subcategory = 0

    //---Physical---

    mass = 0.01

    crashTolerance = 20

    maxTemp = 1200

    breakingForce = 200

    breakingTorque = 200

    bulkheadProfiles = srf

    //---Drag---

    dragModelType = default

    maximum_drag = 0.2

    minimum_drag = 0.2

    angularDrag = 1

    //---General---

    tags = #LOC_FUR.hoverengine.tags

    

    //---Effects---

    

    EFFECTS

    {

        running

        {

            AUDIO

            {

                channel = Ship

                clip = KerbetrotterLtd/FelineUtilityRover/Sounds/sound_hoverengine

                volume = 0 0.07 0 0

                volume = 0.05 0.6 0.7 0.7

                volume = 1 1 0.4 0

                pitch = 0.0 1.0

                pitch = 1.0 1.2

                loop = true

            }

            MODEL_MULTI_PARTICLE

            {

                modelName = KerbetrotterLtd/FelineUtilityRover/FX/fx_impeller

                transformName = EffectTransform

                emission = 0.0 0.0

                emission = 0.25 0.5

                emission = 1.0 1.0

                speed = 0 0 0 18.65

                speed = 0.05 0.4 0.75 0.75

                speed = 0.5 0.7 0.52 0.52

                speed = 1 1 0.52 0

            }           

        }

        engage

        {

            AUDIO

            {

                channel = Ship

                clip = sound_vent_medium

                loop = false

            }

        }

        disengage

        {

            AUDIO

            {

                channel = Ship

                clip = sound_vent_soft

                loop = false

            }

        }

    }

    

    

    //---Control Modules---

    

    MODULE

    {

        name = ModuleKerbetrotterEngine

        thrustVectorTransformName = ThrustTransform

        heightTransformName = RotorCase

        maxThrust = 80

        thrustSpeed = 1

        engineType = Turbine

        maxHoverHeight = 4

        minHoverHeight = 0.4

        allowHover = true

        

        PID-PROFILE

        {

            planet = Kerbin

            values = 1.5, 2.0, 1.0

            isDefault = true

        }

        

        PID-PROFILE

        {

            planet = Duna

            values = 3.0, 1.0, 1.0

        }

        

        PID-PROFILE

        {

            planet = Laythe

            values = 1.5, 2.0, 1.0

        }

        

        PID-PROFILE

        {

            planet = Eve

            values = 0.5, 1.5, 1.0

        }

        

        MODE

        {

            name = Electrical

            engineType = Electric

            needsAtmosphere = true

            flameoutThreshold = 0.1

            

            PROPELLANT

            {

                name = ElectricCharge

                ratio = 7

            }

            

            consumptionCurve

            {

                key = 0 0 0 0

                key = 0.5 0.35 1.2 1.2

                key = 1 1 1.7

            }

            

            velocityCurve

            {

                key = 0 1 0 0

                key = 90 0.75 -0.009 -0.009

                key = 180 0.1 0 0

            }

            

            atmosphereThrustCurve

            {

                key = 0 0 0 8.5

                key = 0.01 0.1 5 5

                key = 0.04 0.2 2.5 2.5

                key = 0.16 0.4 1.25 1.25

                key = 0.36 0.6 0.83333 0.83333

                key = 0.64 0.8 0.625 0.625

                key = 1 1 0.5 0.5

                key = 4 2 0.25 0.25

                key = 9 3 0.125 0.125

            }

        }

        

        MODE

        {

            name = Air Breathing

            engineType = Turbine

            needsAtmosphere = true

            needsOxygen = true

            flameoutThreshold = 0.01

            

            PROPELLANT

            {

                name = LiquidFuel

                ratio = 0.135 //Equal to an ISP of ~12000

            }

            

            consumptionCurve

            {

                key = 0 0 0 0

                key = 0.5 0.35 1.2 1.2

                key = 1 1 1.7

            }

            

            velocityCurve

            {

                key = 0 1 0 0

                key = 90 0.75 -0.009 -0.009

                key = 180 0.1 0 0

            }

            

            atmosphereThrustCurve

            {

                key = 0 0 0 8.5

                key = 0.01 0.1 5 5

                key = 0.04 0.2 2.5 2.5

                key = 0.16 0.4 1.25 1.25

                key = 0.36 0.6 0.83333 0.83333

                key = 0.64 0.8 0.625 0.625

                key = 1 1 0.5 0.5

                key = 4 2 0.25 0.25

                key = 9 3 0.125 0.125

            }

        }

    }

    

    

    MODULE

    {

        name = ModuleKerbetrotterEngineControl

        thrustTransformName = ThrustTransform

        referenceTransformName = ReferenceTransform

        engineName = Hover Engine

        animationID = RotorAnimation

        maxAngleRate = 90

        controlAngleRate = 5

    }

    

    MODULE

    {

        name = ModuleAnimateGeneric

        animationName = RotorFold

        moduleID = RotorAnimation

        startEventGUIName = #LOC_KERBETROTTER.engine.anim.unfold

        endEventGUIName = #LOC_KERBETROTTER.engine.anim.fold

        actionGUIName = #LOC_KERBETROTTER.engine.anim.toggle

    }

    

    //---Visual Modules---

    

    MODULE

    {

        name = ModuleKerbetrotterEngineAnimation

        engineName = Hover Engine

        transformName = Rotor

        maxRotationSpeed = 100

        minRotationSpeed = 3

        speedChangeRate = 1

        speedCurve

        {

            key = 0 0 0 50

            key = 0.05 0.8 0.63 0.63

            key = 1 1 0 0

        }

    }

    

    MODULE

    {

        name = ModuleKerbetrotterConstrainedLookAt

        sourceTransformName = ThrustTransform

        destinationTransformName = RotorArm

        referenceTransformName = ReferenceTransform

        constrainedAxis = X

    }

    

    MODULE

    {

        name = ModuleKerbetrotterConstrainedLookAt

        sourceTransformName = ThrustTransform

        destinationTransformName = RotorCase

        referenceTransformName = RotorArm

        constrainedAxis = Y

    }

    

    MODULE

    {

        name = ModuleKerbetrotterEditorMesh

        transformNames = Pointer

        availableInFlight = false

    }

}"

This is the one i built that does not reflect the thrust change in game: 

"PART

{

    //The Improved hover engine made for sub-sonic and super sonic jats that run of nulcear power.

    //---Metadata---

    name = Sonic Electric Engine 1

    module = Part

    author = Nils277

    //---Visual---

    MODEL

    {

        model = KerbetrotterLtd/FelineUtilityRover/Assets/Parts/HoverEngine

    }

    

    rescaleFactor = 0.25

    //---Nodes and Attachment---

    attachRules = 1,1,0,0,1

    node_stack_front = 0, 0, 0, 1, 0, 0, 0

    node_attach = 0, 0, 0, 1, 0, 0, 0

    CoMOffset = -0.8, 0, 0

    

    //---Costs & Tech---

    TechRequired = landing

    entryCost = 15000

    cost = 8000

    //---Descriptions---

    category = Engine

    title = Sonic Electric Engine 1

    manufacturer = FSEJE

    description = The Improved hover engine made for sub-sonic and super sonic jats that run of nulcear power.

    vesselType = Rover

    subcategory = 0

    //---Physical---

    mass = 0.001

    crashTolerance = 20

    maxTemp = 1200

    breakingForce = 200

    breakingTorque = 200

    bulkheadProfiles = srf

    //---Drag---

    dragModelType = default

    maximum_drag = 0.2

    minimum_drag = 0.2

    angularDrag = 1

    //---General---

    tags = Sonic

    

    //---Effects---

    

    EFFECTS

    {

        running

        {

            AUDIO

            {

                channel = Ship

                clip = KerbetrotterLtd/FelineUtilityRover/Sounds/sound_hoverengine

                volume = 0 0.07 0 0

                volume = 0.05 0.6 0.7 0.7

                volume = 1 1 0.4 0

                pitch = 0.0 1.0

                pitch = 1.0 1.2

                loop = true

            }

            MODEL_MULTI_PARTICLE

            {

                modelName = KerbetrotterLtd/FelineUtilityRover/FX/fx_impeller

                transformName = EffectTransform

                emission = 0.0 0.0

                emission = 0.25 0.5

                emission = 1.0 1.0

                speed = 0 0 0 18.65

                speed = 0.05 0.4 0.75 0.75

                speed = 0.5 0.7 0.52 0.52

                speed = 1 1 0.52 0

            }           

        }

        engage

        {

            AUDIO

            {

                channel = Ship

                clip = sound_vent_medium

                loop = false

            }

        }

        disengage

        {

            AUDIO

            {

                channel = Ship

                clip = sound_vent_soft

                loop = false

            }

        }

    }

    

    

    //---Control Modules---

    

    MODULE

    {

        name = ModuleKerbetrotterEngine

        thrustVectorTransformName = ThrustTransform

        heightTransformName = RotorCase

        minThrust = 80

        maxThrust = 1200

        thrustSpeed = 10

        engineType = Turbine

        maxHoverHeight = 4

        minHoverHeight = 0.4

        allowHover = true

        

        PID-PROFILE

        {

            planet = Kerbin

            values = 1.5, 2.0, 1.0

            isDefault = true

        }

        

        PID-PROFILE

        {

            planet = Duna

            values = 3.0, 1.0, 1.0

        }

        

        PID-PROFILE

        {

            planet = Laythe

            values = 1.5, 2.0, 1.0

        }

        

        PID-PROFILE

        {

            planet = Eve

            values = 0.5, 1.5, 1.0

        }

        

        MODE

        {

            name = Electrical

            engineType = Electric

            needsAtmosphere = true

            flameoutThreshold = 0.1

            

            PROPELLANT

            {

                name = ElectricCharge

                ratio = 500

            }

            

            consumptionCurve

            {

                key = 0 0 0 0

                key = 0.5 0.35 1.2 1.2

                key = 1 1 1.7

            }

            

            velocityCurve

            {

                key = 0 1 0 0

                key = 90 0.75 -0.009 -0.009

                key = 180 0.1 0 0

            }

            

            atmosphereThrustCurve

            {

                key = 0 0 0 8.5

                key = 0.01 0.1 5 5

                key = 0.04 0.2 2.5 2.5

                key = 0.16 0.4 1.25 1.25

                key = 0.36 0.6 0.83333 0.83333

                key = 0.64 0.8 0.625 0.625

                key = 1 1 0.5 0.5

                key = 4 2 0.25 0.25

                key = 9 3 0.125 0.125

            }

        }

        

        MODE

        {

            name = Air Breathing

            engineType = Turbine

            needsAtmosphere = true

            needsOxygen = true

            flameoutThreshold = 0.01

            

            PROPELLANT

            {

                name = LiquidFuel

                ratio = 0.135 //Equal to an ISP of ~12000

            }

            

            consumptionCurve

            {

                key = 0 0 0 0

                key = 0.5 0.35 1.2 1.2

                key = 1 1 1.7

            }

            

            velocityCurve

            {

                key = 0 1 0 0

                key = 90 0.75 -0.009 -0.009

                key = 180 0.1 0 0

            }

            

            atmosphereThrustCurve

            {

                key = 0 0 0 8.5

                key = 0.01 0.1 5 5

                key = 0.04 0.2 2.5 2.5

                key = 0.16 0.4 1.25 1.25

                key = 0.36 0.6 0.83333 0.83333

                key = 0.64 0.8 0.625 0.625

                key = 1 1 0.5 0.5

                key = 4 2 0.25 0.25

                key = 9 3 0.125 0.125

            }

        }

    }

    

    

    MODULE

    {

        name = ModuleKerbetrotterEngineControl

        thrustTransformName = ThrustTransform

        referenceTransformName = ReferenceTransform

        engineName = Hover Engine

        animationID = RotorAnimation

        maxAngleRate = 90

        controlAngleRate = 5

    }

    

    MODULE

    {

        name = ModuleAnimateGeneric

        animationName = RotorFold

        moduleID = RotorAnimation

        startEventGUIName = #LOC_KERBETROTTER.engine.anim.unfold

        endEventGUIName = #LOC_KERBETROTTER.engine.anim.fold

        actionGUIName = #LOC_KERBETROTTER.engine.anim.toggle

    }

    

    //---Visual Modules---

    

    MODULE

    {

        name = ModuleKerbetrotterEngineAnimation

        engineName = Hover Engine

        transformName = Rotor

        maxRotationSpeed = 100

        minRotationSpeed = 3

        speedChangeRate = 1

        speedCurve

        {

            key = 0 0 0 50

            key = 0.05 0.8 0.63 0.63

            key = 1 1 0 0

        }

    }

    

    MODULE

    {

        name = ModuleKerbetrotterConstrainedLookAt

        sourceTransformName = ThrustTransform

        destinationTransformName = RotorArm

        referenceTransformName = ReferenceTransform

        constrainedAxis = X

    }

    

    MODULE

    {

        name = ModuleKerbetrotterConstrainedLookAt

        sourceTransformName = ThrustTransform

        destinationTransformName = RotorCase

        referenceTransformName = RotorArm

        constrainedAxis = Y

    }

    

    MODULE

    {

        name = ModuleKerbetrotterEditorMesh

        transformNames = Pointer

        availableInFlight = false

    }

}"


r/KSPModDevelopment • • Nov 01 '18

Mod Post Monthly Simple Questions Thread

2 Upvotes

The point of this thread is for anyone to ask questions that don't necessarily require a full thread. Even if your question seems slightly stupid, we'll do our best to answer it!

Before you post, maybe you can search for your problem using the search in the upper right! Chances are, someone has had the same question as you and has already answered it!

As always, the side bar is a great resource for all things Kerbal, if you don't know, look there first!


r/KSPModDevelopment • • May 01 '19

Mod Post Monthly Simple Questions Thread

1 Upvotes

The point of this thread is for anyone to ask questions that don't necessarily require a full thread. Even if your question seems slightly stupid, we'll do our best to answer it!

Before you post, maybe you can search for your problem using the search in the upper right! Chances are, someone has had the same question as you and has already answered it!

As always, the side bar is a great resource for all things Kerbal, if you don't know, look there first!


r/KSPModDevelopment • • Aug 28 '16

Getting Started

3 Upvotes

Hello! I've recently started playing with mods in KSP, and would like to maybe create my own. What are some good places to start?

(I looked at the side bar, but don't know how relevant the information still is.)

Thanks!


r/KSPModDevelopment • • Sep 01 '16

Mod Post Monthly Simple Questions Thread

1 Upvotes

The point of this thread is for anyone to ask questions that don't necessarily require a full thread. Even if your question seems slightly stupid, we'll do our best to answer it!

Before you post, maybe you can search for your problem using the search in the upper right! Chances are, someone has had the same question as you and has already answered it!

As always, the side bar is a great resource for all things Kerbal, if you don't know, look there first!


r/KSPModDevelopment • • Dec 01 '17

Mod Post Monthly Simple Questions Thread

2 Upvotes

The point of this thread is for anyone to ask questions that don't necessarily require a full thread. Even if your question seems slightly stupid, we'll do our best to answer it!

Before you post, maybe you can search for your problem using the search in the upper right! Chances are, someone has had the same question as you and has already answered it!

As always, the side bar is a great resource for all things Kerbal, if you don't know, look there first!


r/KSPModDevelopment • • Dec 15 '24

Question Mods for more visuals in loading screen

1 Upvotes

After downloading a bunch of mods, the loading time when starting the game has gone up alot. Are there any mods for adding more visuals to the loading screen while I wait?


r/KSPModDevelopment • • May 20 '20

Question Unity not working

1 Upvotes

Hello,

I wanted to build a mu-file, but when I first started Unity, It shows up a loading screen, then it disappears and nothing happens. I waited a few minutes, then restarted the computer and tried it again. Nothing happend again.

Does anyone know, what's going wrong and what to do? Is there another way to do that?

Thank you in advance!


r/KSPModDevelopment • • Oct 29 '20

Beginner

3 Upvotes

Hi I tried making a solar panel mod with animation. The animation works in blender but non in unity. Can somebody tell me how to properly import the animation in unity and male it work?? Thanks


r/KSPModDevelopment • • Oct 06 '20

Module Manager woes

2 Upvotes

I posted this on the official forums, but no joy; I appreciate this subreddit is pretty dead but it seems worth a go: I wrote the following line to try and identify RTGs:

@PART:HAS[@MODULE[ModuleGenerator]:HAS[!INPUT_RESOURCE,!OUTPUT_RESOURCE[~ElectricCharge],@OUTPUT_RESOURCE[ElectricCharge]:HAS[#rate[>0]]]]:LAST[CAMREC] {

This edits RTGs... but, however, if I temporarily make the RTG generate LF out of nowhere as well as EC, it becomes clear the bit I expected to rule out any part with an output resource that's not EC doesn't work.

Then I went for fuel cells:

@PART:HAS[@MODULE[ModuleResourceConverter]:HAS[@INPUT_RESOURCE:HAS[#ResourceName[LiquidFuel]],@INPUT_RESOURCE:HAS[#ResourceName[Oxidizer]],@OUTPUT_RESOURCE:HAS[#ResourceName[ElectricCharge]],!OUTPUT_RESOURCE:HAS[#ResourceName[~ElectricCharge]]]]:LAST[CAMREC]

Two problems here - the restriction on non-EC output resources doesn't work, and I don't even have a guess as to how to write the other bit I want, which is that it should have no input resource that is neither LF nor OX.

Then I went for ODFC fuel cells:

@PART:HAS[@MODULE[ODFC]:HAS[!MODE:HAS[@FUELS:@HAS[SolidFuel]]]]:LAST[CAMREC] {
  @description ^= :$: CAMREC ODFC correction.:
  @MODULE[ODFC] {
    MaxEC = #$/MODULE[ODFC]/MODE,1/MaxEC$
    // I am too stupid to understand why I can't do these all at once
    -MODE {}
    -MODE {}
    -MODE {}
    -MODE {}

I expected from the documentation that "-MODE {}" would delete all MODE nodes, but it doesn't.

Can someone tell me where I'm going wrong, please?


r/KSPModDevelopment • • Oct 17 '15

Mod Post Weekly Simple Questions Thread

3 Upvotes

The point of this thread is for anyone to ask questions that don't necessarily require a full thread. Even if your question seems slightly stupid, we'll do our best to answer it!

Before you post, maybe you can search for your problem using the search in the upper right! Chances are, someone has had the same question as you and has already answered it!

As always, the side bar is a great resource for all things Kerbal, if you don't know, look there first!


r/KSPModDevelopment • • Oct 16 '15

Question How can I add a more info module for my part in VAB?

Post image
4 Upvotes

r/KSPModDevelopment • • Oct 03 '15

Question Some questions about .dll files

2 Upvotes

First off, what program do you guys use to read/write these files? What are the advantages to using a .dll as opposed to a .cfg with module manager? Are there certain things that can only be done with them? Are they even necessary in the first place? I see many of you guys include them in your mods and was wondering if it would be worth looking into how to write them. I've tried using net reflector to "read" some you guys have written but having trouble even understanding what I'm reading, usually I am able to at least get the gist of it by reading any code, maybe its just the program I am using, it keeps throwing up error flags constantly anyways.