Jump to content

[Mod Help] Docking Ports Not Working


Recommended Posts

Hello, I am now trying to configure @EmbersArc's KRE NDS docking port for my mod, but without the lid, in Unity. I made the changes in Blender, and now I'm trying to get the docking node to work. What is happening is the docking ports don't dock, but just rest on each other. This is my config:

PART
{
	name = CapsuleDockingPort1
	module = Part
	author = EmbersArc 
	mesh = model.mu
	rescaleFactor = 1.07
	node_stack_bottom = 0.0, -0.385, 0.0, 0.0, -1.0, 0.0, 1
	node_attach = 0.0, -0.385, 0.0, 0.0, -1.0, 0.0, 1
	TechRequired = advMetalworks
	entryCost = 8400
	cost = 400
	category = Coupling
	subcategory = 0
	title = KASA Docking System
	manufacturer = 7D Exploration Technologies Inc. & Kerbobulus Corp.
	description = A very advanced docking port. Fully compatible with the Clamp-O-Tron Docking Port system.
	attachRules = 1,1,1,1,0
	mass = 0.05
	dragModelType = default
	maximum_drag = 0.25
	minimum_drag = 0.25
	angularDrag = 0.5
	crashTolerance = 10
	maxTemp = 2000 // = 3400
	bulkheadProfiles = size1, srf
	tags = berth capture connect couple dock fasten join moor socket
	stagingIcon = DECOUPLER_VERT
	
	stagingIcon = DECOUPLER_VERT
	MODULE
	{
		name = ModuleDockingNode
		referenceAttachNode = dockingNode
		deployAnimationController = 1
		nodeType = size1
		staged = False
		stagingEnabled = False
	}
	MODULE
	{
		name = ModuleAnimateGeneric
 		animationName = Extend Docking Ring
		actionGUIName = Toggle Docking Ring
		startEventGUIName = Extend Docking Ring
		endEventGUIName = Retract Docking Ring
		allowAnimationWhileShielded = False
	}
}

Unity file (Unity 5.4.2p4)

Texture

Model

Edited by Bottle Rocketeer 500
Full config added because part of it was missing
Link to comment
Share on other sites

14 hours ago, Bottle Rocketeer 500 said:

referenceAttachNode = dockingNode

You have no such node named in your cfg, the reference attach node needs to be named . see below example for stock docking port. You'll either change referenceAttachNode = dockingNode to referenceAttachNode = bottom,  or if that is not suitable add another node in the position you require the port to be .


name = dockingPortLarge


rescaleFactor = 1
	node_stack_top = 0.0, 0.29, 0.0, 0.0, 1.0, 0.0, 2    ////top 
	node_stack_bottom = 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 2
	TechRequired = metaMaterials
etc
	MODULE
	{
		name = ModuleDockingNode
		referenceAttachNode = top  /// top
		nodeType = size2
		stagingEnabled = False
	}
}

 

Link to comment
Share on other sites

On 8/12/2017 at 5:49 PM, Bottle Rocketeer 500 said:

referenceAttachNode = dockingNode

What @SpannerMonkey(smce) said.   This line in the .cfg file is telling KSP that the docking connection point is an empty game object in Unity, with the blue arrow pointing out (as in, towards the other ship that will dock with this port) named dockingNode.   To make it work, all you have to do is create and position this empty game object correctly!   

 

 

 

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