Jump to content

Modder Help Needed


Recognize-Me-

Recommended Posts

My part is close to completion but what I'm focused on right now is getting the part oriented the way i want.

No matter which way I rotate it in Blender or Unity it always faces the same way when I get into KSP.

Example Photo:

  • The tank circled in Red is the way the part is oriented when placed without rotating or translating.

  • The tank circled in Green is the way I want the part to be oriented when first placed.(I had to rotate and translate the part for it to look like that)

59J12Lb.jpg?1


My question is what do I need to do to get the part to radially attach to parts like the tank circled in Green?

I have tried changing the orientation in Blender and in Unity but no matter what way the part is rotated it always radially attaches like the tank circled in Red.

Here is the cfg. Do I need to change the attachment_node values ?

node_stack_top = 0.5, 0.0, 0.0, 0.0, 0.0, 1.0, 0
node_stack_bottom = 0.5, 0.0, 0.0, 0.0, 0.0, 1.0, 0
node_attach = 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1

I'm new to modding and I'm trying to learn every step but I'm still new to all of it so all the help I can get is greatly appreciated!

Link to comment
Share on other sites

I believe you're looking for node_attach = 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1

I'm not completly sure, just give it a try

I think that is what tells the game where radially attach your part. It correspond as node_attach = X, Y, Z, rX, rY, rZ, Size

Link to comment
Share on other sites

I believe you're looking for node_attach = 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1

I'm not completly sure, just give it a try

I think that is what tells the game where radially attach your part. It correspond as node_attach = X, Y, Z, rX, rY, rZ, Size

It already is node_attach = 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1

Link to comment
Share on other sites

I believe you're looking for node_attach = 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1

I'm not completly sure, just give it a try

I think that is what tells the game where radially attach your part. It correspond as node_attach = X, Y, Z, rX, rY, rZ, Size

I tried changing some of the others but they either did nothing for the orientation or made the game stop loading when it was loading my part.

Link to comment
Share on other sites

I would move away from those definitions and try NODE{} instead. This explains it a bit. If you want attach nodes you also need this fix.

Alright I did everything do I have to change anything else in the cfg file? When I load the game it stops loading at my part.

PART{
name = Radial Fuel Tank
module = Part
author = Recognize-Me-


mesh = model.mu
rescaleFactor = .3


node_stack_top = 1.3, 0.0, 1, 0.0, 0.0, 1, 0
node_stack_bottom = 1.3, 0.0, -1, 0.0, 0.0, 1, 0
node_attach = 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1


NODE
{
name = join1
transform = n1
size = 0
method = HINGE_JOINT
}
NODE
{
name = top
transform = ntop
size = 0
method = FIXED_JOINT
}
NODE
{
name = bottom
transfer = nbottom
size = 0
method = FIXED_JOINT
}
TechRequired = precisionEngineering
entryCost = 4200
cost = 180
category = FuelTank
subcategory = 0
title = Small Radial Liquid Fuel Tank
manufacturer = Recognize Industries
description = A Small Liquid Fuel Tank ment to be radially attached to small crafts or rovers that need Fuel.
attachRules = 1,1,1,1,0


mass = 0.015
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.15
angularDrag = 2
crashTolerance = 6
maxTemp = 2900
breakingForce = 50
breakingTorque = 50


RESOURCE
{
name = LiquidFuel
amount = 90
maxAmount = 90
}


RESOURCE
{
name = Oxidizer
amount = 100
maxAmount = 100
}
}

Link to comment
Share on other sites

You would need to add transforms in your part in Unity to match those names. You really don't need to do that....

I'd just stick with attachment nodes for now. Try this:

node_attach = 0.0, 0.0, 0.5, 0, 0, 1

That should make it attach with the brackets facing the rocket. The 0.5 is telling it how far from the center of your part to make the attachment; if its aligned the right way but needs to be closer, lower the 0.5 to 0.4 and so on until its right. If its too close, raise that number.

If the brackets happen to be facing out then you need to make the numbers negative, like so:

node_attach = 0.0, 0.0, -0.5, 0.0, 0.0, 0.0, -1

If the brackets are sticking to the sides, then you need to do:

node_attach = 0.5, 0.0, 0.0, 1, 0, 0

OR

node_attach = -0.5, 0.0, 0.0, -1, 0, 0

http://wiki.kerbalspaceprogram.com/wiki/CFG_File_Documentation#Node_Definitions - this should give you the basic information for making attachment nodes (node_attach is a surface attachment, node_stack_whatever makes the stack nodes)

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