Jump to content

part.cfg HELP NEEDED!!!!!


willsta666

Recommended Posts

I've not been modding for very long and to write the part.cfg I've just been copying the stock ones from the same category and modifying them eg. if I make a probe I use the stock OKTO probe body etc. I am currently making a 1 part cruise missile flown by the player and I need some help with the engine module. if any one has a few minutes just to look at it and tell me what's wrong that would be a great help.


PART
{
name = tomahawkbody
module = CommandPod
author = willsta666

mesh = tomahawkmissile.dae
rescaleFactor = 1

CrewCapacity = 0

node_stack_bottom = 0.0, -0.0, 0.0, 0.0, 1.0, 0.0,

1

fx_exhaustLight_blue = 0.0, -3.5, 0.0, 0.0, 0.0,

1.0, power
fx_smokeTrail_light = 0.0, -5.0, 0.0, 0.0, 1.0,

0.0, power
fx_exhaustSparks_flameout = 0.0, 0.0, 0.0, 0.0,

1.0, 0.0, flameout

sound_vent_medium = engage
sound_jet_low = running
sound_jet_deep = power
sound_vent_soft = disengage
sound_explosion_low = flameout

cost = 250
category = Pods
subcategory = 0
title = Tomahawk Cruise Missile
manufacturer = Boeing/PolyCorp - Weapons Div.
description = Used to fly stealthily under enemy

radar and hit the target creating mass panic and

destruction. also has a very long range and can be

programmed to attack from a different angle,

leaving the attacker's position unknown.

attachRules = 1,0,1,1,0

mass = 1.5
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.15
angularDrag = 1.5
crashTolerance = 30
maxTemp = 3100

explosionPotential = 0

vesselType = Probe

MODULE
{
name = ModuleCommand
minimumCrew = 0

RESOURCE
{
name = ElectricCharge
rate = 0.02777778
}
}

RESOURCE
{
name = ElectricCharge
amount = 500
maxAmount = 500
}

MODULE
{
name = ModuleReactionWheel

PitchTorque = 5
YawTorque = 5
RollTorque = 5

RESOURCE
{
name = ElectricCharge
rate = 0.025
}

MODULE
{
name = ModuleEngines
thrustVectorTransformName =

thrustTransform
exhaustDamage = True
ignitionThreshold = 0.1
minThrust = 0
maxThrust = 1000
heatProduction = 350
useEngineResponseTime = True
engineAccelerationSpeed = 0.12
engineDecelerationSpeed = 0.21
useVelocityCurve = True
fxOffset = 0, 0, 0.74
PROPELLANT
{
name = LiquidFuel
ratio = 1
DrawGauge = True
}
PROPELLANT
{
name = IntakeAir
ratio = 15
}
atmosphereCurve
{
key = 0 1000
key = 0.3 1800
key = 1 2000
}
velocityCurve
{
key = 1000 0 0 0
key = 850 0.2 0 0
key = 0 1 0 0
}
}

MODULE
{
name = ModuleAnimateHeat
ThermalAnim = HeatAnimationEmissiveJet
}

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

MODULE
{
name = ModuleAlternator
RESOURCE
{
name = ElectricCharge
rate = 0.8
}
}
RESOURCE
{
name = ElectricCharge
amount = 0
maxAmount = 0
}
}
RESOURCE
{
name = LiquidFuel
amount = 500

Link to comment
Share on other sites


RESOURCE
{
name = ElectricCharge
amount = 0
maxAmount = 0
}
RESOURCE
{
name = LiquidFuel
amount = 500
}

}

First off, the bottom should look like this, not whatever mess of brackets you had going on before. secondly, you cannot just put the module in and expect it to generate thrust, you have to create the "thrustTransform" it refers to. This has to be done in Unity, which I assume you haven't done, as you are using .dae files. I would suggest looking around in this thread for tutorials

Link to comment
Share on other sites

You have a few missing braces. I'd recommend a more advanced text editor like Notepad++ to show you where braces are matching (pick a programming language from the Language menu to enable it). The "PART { .. }" braces need to wrap around everything else in the cfg. There were a few other ones missing, like to close the ModuleReactionWheel.

Here's your cfg with the braces fixed:


PART
{
name = tomahawkbody
module = CommandPod
author = willsta666

mesh = tomahawkmissile.dae
rescaleFactor = 1

CrewCapacity = 0

node_stack_bottom = 0.0, -0.0, 0.0, 0.0, 1.0, 0.0,

1

fx_exhaustLight_blue = 0.0, -3.5, 0.0, 0.0, 0.0,

1.0, power
fx_smokeTrail_light = 0.0, -5.0, 0.0, 0.0, 1.0,

0.0, power
fx_exhaustSparks_flameout = 0.0, 0.0, 0.0, 0.0,

1.0, 0.0, flameout

sound_vent_medium = engage
sound_jet_low = running
sound_jet_deep = power
sound_vent_soft = disengage
sound_explosion_low = flameout

cost = 250
category = Pods
subcategory = 0
title = Tomahawk Cruise Missile
manufacturer = Boeing/PolyCorp - Weapons Div.
description = Used to fly stealthily under enemy

radar and hit the target creating mass panic and

destruction. also has a very long range and can be

programmed to attack from a different angle,

leaving the attacker's position unknown.

attachRules = 1,0,1,1,0

mass = 1.5
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.15
angularDrag = 1.5
crashTolerance = 30
maxTemp = 3100

explosionPotential = 0

vesselType = Probe

MODULE
{
name = ModuleCommand
minimumCrew = 0

RESOURCE
{
name = ElectricCharge
rate = 0.02777778
}
}

RESOURCE
{
name = ElectricCharge
amount = 500
maxAmount = 500
}

MODULE
{
name = ModuleReactionWheel

PitchTorque = 5
YawTorque = 5
RollTorque = 5

RESOURCE
{
name = ElectricCharge
rate = 0.025
}
}

MODULE
{
name = ModuleEngines
thrustVectorTransformName = thrustTransform
exhaustDamage = True
ignitionThreshold = 0.1
minThrust = 0
maxThrust = 1000
heatProduction = 350
useEngineResponseTime = True
engineAccelerationSpeed = 0.12
engineDecelerationSpeed = 0.21
useVelocityCurve = True
fxOffset = 0, 0, 0.74
PROPELLANT
{
name = LiquidFuel
ratio = 1
DrawGauge = True
}
PROPELLANT
{
name = IntakeAir
ratio = 15
}
atmosphereCurve
{
key = 0 1000
key = 0.3 1800
key = 1 2000
}
velocityCurve
{
key = 1000 0 0 0
key = 850 0.2 0 0
key = 0 1 0 0
}
}

MODULE
{
name = ModuleAnimateHeat
ThermalAnim = HeatAnimationEmissiveJet
}

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

MODULE
{
name = ModuleAlternator
RESOURCE
{
name = ElectricCharge
rate = 0.8
}
}

RESOURCE
{
name = ElectricCharge
amount = 0
maxAmount = 0
}

RESOURCE
{
name = LiquidFuel
amount = 500
}

}

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