Jump to content

Need help making a basic generator.


klgraham1013

Recommended Posts

I'm trying to make a generator that runs on liquid fuel. Something a bit simpler for myself, as apposed to some of the mods out there. What I've got so far won't run. The GUI will switch between start and stop, but that's about it.

Here's what I've got so far in my config: (The ratios are just for testing)

MODULE

{

name = ModuleGenerator

isAlwaysActive = false

activateGUIName = Start Generator

shutdownGUIName = Stop Generator

INPUT_RESOURCE

{

name = LiquidFuel

ratio = 1.0

}

OUTPUT_RESOURCE

{

name = ElectricCharge

rate = 1.0 <- Did I just find my own mistake after typing all this?

}

}

RESOURCE

{

name = ElectricCharge

amount = 0

maxAmount = 0

isTweakable = false

hideFlow = true

}

Added the electric charge code from an engine to see if that would help. It did not.

This is my first mod, besides a wet wing config I did for myself.

- - - Updated - - -

edit: May still need some help.

Edited by klgraham1013
Link to comment
Share on other sites

just by looking try

RESOURCE

{

name = ElectricCharge

amount = 0

maxAmount = 0 <------------- You have 0 you need to set a max like 100 or 1000 what ever.

isTweakable = false

hideFlow = true

}

Try this

MODULE

{

name = ModuleGenerator

isAlwaysActive = false

activateGUIName = Start Generator

shutdownGUIName = Stop Generator

INPUT_RESOURCE

{

name = LiquidFuel

ratio = 1.0

}

OUTPUT_RESOURCE

{

name = ElectricCharge

rate = 1.0

}

RESOURCE

{

name = ElectricCharge

amount = 0

maxAmount = 1000

isTweakable = false

hideFlow = true

}

}

you all so had too many }

EDIT- well not to many just wrong spot.

Edited by Mecripp2
Link to comment
Share on other sites

For some reason I'm getting an RTG-like electric charge trickle now. I'll keep messing with it. I think I just need a break from it for a bit.

update:

Ok. It looks like everything is working except a small RTG-like energy flow. The test ship is only 4 parts. Pod - LF Generator - Near Future XE-P01 Xenon Tank - Near Future HI-SNAP Ion Engine.

Obviously, I'm trying to add a Near Future generator without adding more resources. Here's my code so far:

MODULE

{

name = ModuleGenerator

isAlwaysActive = false

activateGUIName = Start Generator

shutdownGUIName = Stop Generator

INPUT_RESOURCE

{

name = LiquidFuel

rate = 0.1

}

OUTPUT_RESOURCE

{

name = ElectricCharge

rate = 2000

}

RESOURCE

{

name = ElectricCharge

amount = 0

maxAmount = 2000

}

}

RESOURCE

{

name = LiquidFuel

amount = 320

maxAmount = 320

}

- - - Updated - - -

Looks like there's an electric charge when connected to launch clamps. The more you know.

Edited by klgraham1013
Link to comment
Share on other sites

Again watch your }

MODULE

{

name = ModuleGenerator

isAlwaysActive = false

activateGUIName = Start Generator

shutdownGUIName = Stop Generator

INPUT_RESOURCE

{

name = LiquidFuel

rate = 0.1

}

OUTPUT_RESOURCE

{

name = ElectricCharge

rate = 2000 <--------------- Lol wow

}

RESOURCE

{

name = ElectricCharge

amount = 0

maxAmount = 2000

}

<----------------- move to the end

RESOURCE

{

name = LiquidFuel

amount = 320

maxAmount = 320

}

} <-------------- HERE

EDIT- You could try

MODULE

{

name = ModuleGenerator

isAlwaysActive = false

activateGUIName = Start Generator

shutdownGUIName = Stop Generator

INPUT_RESOURCE

{

name = LiquidFuel

rate = 0.01

}

OUTPUT_RESOURCE

{

name = ElectricCharge

rate = 5

}

RESOURCE

{

name = ElectricCharge

amount = 500 // <--- if you want to start with a charge or make full charge

maxAmount = 2000

}

RESOURCE

{

name = LiquidFuel

amount = 320

maxAmount = 320

}

}

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