Jump to content

Help With Rocket Part


Nicholander

Recommended Posts

Yeah, this rocket part I'm making, the HypeDrive isn't working. I set it's thrust to 1000, but when it's in the game, it doesn't even have any actual thrust, (MechJeb says TWR 0, and when I tried launching it, nothing happened) it doesn't have any effects, and the sound I added isn't playing. This is it's .cfg:

PART
{

// --- general parameters ---
name = HypeDrive
module = Part
author = Nicholander

// --- asset parameters ---
mesh = Model.mu
scale = 1


// --- node definitions ---
node_stack_top = 0.0, 0.75, 0.0, 0.0, 1.0, 0.0
node_stack_bottom = 0.0, -0.75, 0.0, 0.0, 1.0, 0.0


// --- FX definitions ---

fx_exhaustFlame_blue = 0.0, -0.75, 0.0, 0.0, 1.0, 0.0, running
fx_exhaustLight_blue = 0.0, -0.75, 0.0, 0.0, 0.0, 1.0, running
fx_smokeTrail_light = 0.0, -0.75, 0.0, 0.0, 1.0, 0.0, running
fx_exhaustSparks_flameout = 0.0, -0.75, 0.0, 0.0, 1.0, 0.0, flameout

// --- Sound FX definition ---

sound_vent_medium = engage
sound_rocket_hard = running
hype = running
sound_vent_soft = disengage
sound_explosion_low = flameout

// --- editor parameters ---
TechRequired = generalRocketry
entryCost = 5000
cost = 2500
category = Propulsion
subcategory = 0
title = HypeDrive-25
manufacturer = HypeCo
description = Our engineers found out that you can turn the emotion of excitment and anticipation into a fuel. They never told us how, they just told us they can, and this is expensive for a reason, as buying all the party equipment to get all the staff excited and anticipated about something aren't cheap.

// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
attachRules = 1,0,1,0,0

// --- standard part parameters ---
mass = 1
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.2
angularDrag = 2
crashTolerance = 7
maxTemp = 3600

MODULE
{
name = ModuleEngines
thrustVectorTransformName = thrustTransform
exhaustDamage = True
ignitionThreshold = 0.1
minThrust = 0
maxThrust = 1000
heatProduction = 400
fxOffset = 0, 0, 0.574338
PROPELLANT
{
name = Hype
ratio = 0.5
DrawGauge = True
}
atmosphereCurve
{
key = 0 700
}

}


MODULE
{
name = ModuleGimbal
gimbalTransformName = thrustTransform
gimbalRange = 1
}

MODULE
{
name = ModuleAlternator
RESOURCE
{
name = ElectricCharge
rate = 6.0
}
}
RESOURCE
{
name = ElectricCharge
amount = 0
maxAmount = 0
isTweakable = false
hideFlow = true
}


MODULE
{
name = ModuleTestSubject

// nowhere: 0, srf: 1, ocean: 2, atmo: 4, space: 8
environments = 15

useStaging = True
useEvent = False
}

}

Is there something in there which requires an animation, which my part doesn't have? Has anyone else had this problem, and they now how to fix it? If you do now what I'm doing wrong, please tell me how to fix it. Thanks in advance!

Also, why does it say in the VAB that it eats 29 Hype/sec, but there's no parameter in the cfg for that?

Link to comment
Share on other sites

I would also say you remove the ' scale = 1 ' and replace it with " rescaleFactor = 1 ', then your model has the same size as you modelled it.That's quiete iimportant. To lower the amount of hype it required, you can increase the ISP, you do that with typing a higher number than 700 in under atmospphere curve, as higher the ISP is, it will need less propellant.

Hope I could help

Link to comment
Share on other sites

Here's an example Unity setup and the compiled part. It's good for seeing how gimbals, fairings, and the basic engine setup work.
Hmm... I looked at (I loaded it up in Unity) And it doesn't even seem to have anything useful really. It's 2 basic dark pink cylinders, both with the exact same animation and one of them has a mono script which it says that doesn't exist. If I remove the gimbal, will it then work if I don't have this thrustTransform thing?
Link to comment
Share on other sites

As long as you do have an object to use as a thrustTransform, the engine can work. Make sure the blue (+Z) arrow is pointing the direction you want the thrust to go.

I'll take a look at the package in a little while, I've noticed that my packages want to export with a bunch of odd stuff so that may be affecting things a bit. Do you have the KSP Part Tools installed? Things won't work correctly unless you have those installed.

Link to comment
Share on other sites

Yes, I do have KSP Part Tools. But could you answer my original question, if it does not gimbal, and does not have thrustTransform, will it work?

EDIT: Wait, so was I also pointing it wrongly in Unity?

rKozhuD.png

Look at the way it's pointing and the 3D direction thing on the top right.

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