Jump to content

Infinite Resource Usage Problem


boodahz

Recommended Posts

I am trying to make some custom resources and an engine to use it, but I just can not get it to work right.

I am able to create a solar panel type part to collect "Photons" and then use a converter part mod to convert the "Photons" into "EnergizedPhotons" which are stored right in my engine. However the engine flames out because the resource draw is Infinity/sec.

The engine module for the booster is below. If I change the propellant to "LiquidFuel" and add some liquid fuel, the engine works fine, but as soon as I change the propellant to "EnergizedPhotons" the usage becomes Infinity/sec.

MODULE
{
name = ModuleEnginesFX
thrustVectorTransformName = thrustTransform
engineID = KSX
runningEffectName = running_closed
exhaustDamage = True
ignitionThreshold = 0.0
minThrust = 0
maxThrust = 10000
heatProduction = 1000
fxOffset = 0, 0, 0.5
PROPELLANT
{
name = EnergizedPhotons
ratio = 1
DrawGauge = True
}
atmosphereCurve
{
key = 0 10000
key = 1 8000
}
}

Do resources like this need a dll file to work correctly? I didn't make one and was trying to get away with just modifying cfg files.

Here is an imgur album with some screenshots.

Link to comment
Share on other sites

What does your RESOURCE DEFINITION file look like ?
Engines need some propellant with a mass. If the EnergizedPhotons have zero density, it screws up the ISP equation and gives infinity.

This worked! I had a 0 density in the Resource definition. Thanks!

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