Jump to content

Docking Port Shenanigans


Darthzeus

Recommended Posts

Hello everyone, so I've been working on this for just under a day, and can't figure out what's wrong.

The UI commands work fine, with the open and close shield, but it simply refuses to dock to anything (I've tried moving each size to it's own module, it didn't help) Any help is appreciated!

PART

{

name = magnoClamp

module = Part

author = DZ

mesh = model.mu

rescaleFactor = 2

node_stack_top = 0.0, 1.0, 0.0, 0.0, 2.0, 0.0, 1

node_stack_bottom = 0.0, -0.005308203, 0.0, 0.0, 1.0, 0.0, 1

TechRequired = specializedConstruction

entryCost = 8400

cost = 400

category = Utility

subcategory = 0

title = Clamp-O-Tron Magnetic Alignment Grid Projector

description = When deployed, this dish creates a powerful magnetic field before it, holding any viable clampatrons firmly affixed before it

attachRules = 1,1,1,1,0

mass = 0.2

dragModelType = default

maximum_drag = 0.25

minimum_drag = 0.25

angularDrag = 0.5

crashTolerance = 19

maxTemp = 3400

//docking module will go here

MODULE

{

name = ModuleDockingNode

deployAnimationController = 1

referenceAttachNode = top

nodeType = size1

nodeType = size0

nodeType = size2

}

MODULE

{

name = ModuleAnimateGeneric

animationName = dish

startEventGUIName = Open Shield

endEventGUIName = Close Shield

}

}

Link to comment
Share on other sites

The little help I can give you:

Looking at the code there can only be on nodeType per dockingNode. So i figure you would at least have to split it up into thee modules.

Does it work when you use only one nodeType, so only size1? I suggest getting it to work with one size and then building on from there. It's easier to make something simple work and it's also easier to find a cause if you have at least on situation in which it does work.

You could try adding the following line to the module

useReferenceAttachNode = True

(since you're trying to use the attach node as the docking point instead of a nodeTransform)

Here's a nice thread on a multi node docking port. Although it's not exactly what you are trying to do, it did help me a lot in getting my had around docking nodes.

Edited by PrivateFlip
Link to comment
Share on other sites

ModuleDockingNode can only recognize a single nodeType parameter.

My understanding of some of the "universal" docking port add-ons out there is that the part makes uses of multiple instances of ModuleDockingNode, each with their own nodeType. This does result in "mystery meat" GUI where you'll find the right-click context menu being filled with multiple buttons labeled "Undock Node" with no way of telling which button corresponds to which node size.

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