Jump to content

Help With making the CFG for a wheel, not a rover wheel


Jakey4159

Recommended Posts

Greetings,

for last few days i have been trying to finish an add-on kit but im stuck at the part of making wheels, heres what i have so far, i think there could be a syntax error might have forgoten symbols such has {

name = Kings_Wheel

module = Part

author = Jakey4159

mesh = model.mu

rescaleFactor = 0.50

node_stack_side = 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 1

cost = 60

category = Utility

subcategory = 0

title = Kings Wheel

manufacturer = Kings Space Program

description =

attachRules = 1,1,1,1,1

mass = 0.075

dragModelType = default

maximum_drag = 0.0

minimum_drag = 0.0

angularDrag = 1

crashTolerance = 300

maxTemp = 600

fuelCrossFeed = True

crashTolerance = 100

breakingForce = 70

breakingTorque = 70

}

MODULE

{

name = King_Wheel

hasMotor = true

resourceName = LiquidFuel

resourceConsumptionRate = 0.01

canSteer = true

controlAxisType = Forward

steeringModeType = AutomaticSteer

brakeTorque = 300

brakeSpeed = 1.2

impactTolerance = 300

overSpeedDamage = 99999

WHEEL

{

wheelName = wheel

wheelColliderName = node_collider

suspensionTransformName = suspensionTraverse

suspensionNeutralPointName = suspensionNeutralPoint

damagedObjectName =

rotateX = 0

rotateY = 1

rotateZ = 0

}

steeringCurve

{

key = 0 16

key = 10 9

key = 30 2

}

torqueCurve

{

key = 0 250 0 0

key = 20 100 0

key = 30 14 0 0

key = 34 0 0 0

}

}

MODULE

{

name = ModuleAlternator

RESOURCE

{

name = ElectricCharge

rate = 0.125

}

}

RESOURCE

{

name = LiquidFuel

amount = 0

maxAmount = 0

}

MODULE

{

name = FXModuleConstrainPosition

matchRotation = true

matchPosition = false

CONSTRAINFX

{

targetName = steering

moversName = trackSteering

}

}

This is the Wheel i made and the rest of the project has a motivation with blender.

http://imageshack.us/a/img43/2610/imagelseu.jpg

Thank for the help.

Link to comment
Share on other sites

MODULE

{

name = King_Wheel

...

}

There's no such module in the stock game, as you're using identical parameters to ModuleWheel I'm guessing you're not using a custom plugin and that needs changing back to ModuleWheel.

I'd also recommend not using node_collider for your wheelCollider or indeed anything else as it was used by the old system. It won't cause any problems with the stock game, but may cause confusion or issues with other plugins.

Finally, giving us a description of what's going wrong is usually helpful for tracking down the problem.

Link to comment
Share on other sites

C) Do i have to make a an object with the name (wheelCollider) Im good at making models but im new to KSP mod making :/ This is my fisrt one, its in multiple pieces, Light bar, Armored grill, theres also 2 hatches, 1 main to enter and exit and an other one to enter only.

Im planning on making a bus and a few other vehicules, a train too, and if possible, a big ship halo style

Space Port is broken ???

Thank for the help :D

Edited by Jakey4159
Link to comment
Share on other sites

A) You don't. The physics behaviour is built into the WheelCollider (height, spring and damping are adjustable parameters) and the rods, hinges and everything else are specified in the config through modules like FXModuleLookAtConstraint. One thing you should know is that you want to export your model from the unity editor with the suspension in the fully compressed position.

B) You just add the WheelCollider like any other component, see the image in the sticky as to what ModuleWheel specifically uses.

C) No, you specify the names in the config file.

Space Port is broken ???

Look at the announcements forum.

Link to comment
Share on other sites

i did what suggested and my car collision box is not working and nodes are all screwed up :( They werent screwed up before.

Any idea why ?

Heres the new CFG of my car frame

// Kerbal Space Program - Part Config

//

// --- general parameters ---

PART

{

name = Kings_Cab

module = CommandPod

author = Jakey4159

// --- asset parameters ---

mesh = model.mu

rescaleFactor = 0.50

texture = model.mbm

specPower = 0.1

rimFalloff = 3

alphaCutoff = 0.0

// --- node definitions ---

// definition format is Position X, Position Y, Position Z, Up X, Up Y, Up Z

// AD

node_stack_top = 0.710, -0.7, 2.966, 0.0, 1.0, 0.0

// AG

node_stack_top = -0.710, -0.7, 2.966, 0.0, 1.0, 0.0

// DD

node_stack_top = 0.710, -0.7, -0.907, 0.0, 1.0, 0.0

// DG

node_stack_top = -0.710, -0.7, -0.907, 0.0, 1.0, 0.0

// top

node_stack_bottom = 0.0, 0.703, 0.689, 0.0, 1.0, 0.0

// Front

node_stack = 0.0, -0.548, 4.3, 0.0, 1.0, 0.0

// --- editor parameters ---

cost = 100

category = Pods

subcategory = 0

title = Kings Crown

manufacturer = Kings Space Program

description = Roll in style around Kerbin ! Now with a free included battery for usage! The company afirms new accessories are coming for this model. They are also working on wheels.

// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision

attachRules = 1,0,1,1,1

// --- standard part parameters ---

mass = 1.0

dragModelType = default

maximum_drag = 0

minimum_drag = 0

angularDrag = 1

crashTolerance = 80

breakingForce = 100

breakingTorque = 100

maxTemp = 300

fuelCrossFeed = True

// --- internal setup ---

CrewCapacity = 5

INTERNAL

{

name = TTCabinternal

}

MODULE

{

name = ModuleCommand

minimumCrew = 1

}

RESOURCE

{

name = LiquidFuel

amount = 100

maxAmount = 100

}

RESOURCE

{

name = ElectricCharge

amount = 50

maxAmount = 50

}

}

Edited by Jakey4159
Link to comment
Share on other sites

ok my parts show up but the collision box of my main chassis is not working anymore, 2 my wheels dont roll or steer at all,

B) You just add the WheelCollider like any other component, see the image in the sticky as to what ModuleWheel specifically uses.

How do i do that :( And that
Have you got your suspension and wheel objects set up in Unity?
Link to comment
Share on other sites

My wheels still dont roll or steer il give a link bellow with the unity project folder and all other things conserning the wheels. AND PLEASE :( DONT CLAIM MY WORK ! I Will use this has an exemple for my future projects.

Link : http://www./download/f56xe6323mk47p2/My_Wheels.zip

Thanks for the help :D

Edited by Jakey4159
Link to comment
Share on other sites

nodes are all screwed up :( They werent screwed up before.

0.20 changed the default scale, you can move you nodes to the new scale or go back to the old one by adding scale = 1 in your config file.

I had a quick look at your unity project. All you've got there is a wheel shaped static part, you're missing all of the objects you've reference in your config file, and your 'node collider' object is a mesh collider, not a wheel collider.

XHZoV2G.png.

Use the GameObject > CreateEmpty menu option to create the objects you're missing. You want at least the three you mention in the config file and a bounds collider.

Link to comment
Share on other sites

This helps me a lot but im still a bit confused with modling the different suspension parts and Scripting them in Unity :( i see the different components but i still have no iidea how to (Program) Them

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