Jump to content

Node detection problem


Killerhurtz

Recommended Posts

I am having slight problems with a single node on one of my fuel tanks. The bottom one does not work. It IS parsed, as the sphere that marks a node position appears, but no part wants to snap onto it. Wierdest thing is that the top one works perfectly fine. I have tried relocating the node to no avail, and I honestly have no clue what could be causing such a thing. Here's the (what I think are) relevant code parts:

//--- Node Definitions ---

node_stack_top = 0.0, 3.0, 0.0, 0.0, 1.0, 0.0
node_stack_bottom = 0.0, -2.0, 0.0, 0.0, 1.0, 0.0



//--- Attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision

attachRules = 1, 0, 1, 0, 0

Does anyone know how to fix this?

Link to comment
Share on other sites

If you look under attach rules, you can see allow_collision. If it is set to 1, this will allow parts to intersect when attaching. As it stands right now, set to 0, no parts of the node_collider for either model may intersect for the part to be placed successfully. You either need to correct the placement of your collider node or set the flag to 1. As a trick I always model my collider nodes slightly smaller then the part. This makes them seamless as the visual meshes will line up, but the node_colliders won't touch or overlap.

Link to comment
Share on other sites

Actually, that part is crucial for the thing to work. I have custom-tailored ONE part to be able to fit it otherwise it will collide with the tank. That isn't the problem. Usually, when something cannot attach, it snaps to the node but turns red, right? Well here it doesn't even snap. It's like the node doesn't even exist aside from the ball.

Things just got wierder. The node is not the problem. I just successfully attached the fuel tank by the bottom node (turns out 1m pieces can attach without colliding). But now, when it's attached by the BOTTOM node, the top node stops working. Like if it only wanted to allow a single connection.

Link to comment
Share on other sites

I really doubt it's a model problem, but here goes (comes in three part: the adapter which works entirely fine, the fuel tank which works half, and the engine which works entirely fine. All three have similar characteristics yet only the fuel tank does not want to work.):

http://dl.dropbox.com/u/21447217/Firelark.zip

Link to comment
Share on other sites

Allright I checked things out, I've got the model working by creating a new part.cfg file from scratch. I'm going to bed now but I'll send you the working cfg file in the morning. There's a couple things going on I noticed.

I'm going to assume harvester is using standard integers or floats. So the limit on your variables is going to be way lower then you entered in the cfg files. As a rule don't go over 9999 to prevent overflows of the variables. The hard limit is technically 32k, but its better to be on the safe side.

Also, your node colliders are exact copies of your part. At least if I imported your files right. That would mean they are in fact concave. The physics engine cannot handle concave objects at all, so your parts are going to behave in and undefined manner. Just make a simple shape for your collider that matches the general shape of your model. Like a polygonal tube. Not only does complex geometry murder performance, the physics engine won't know what to do with it.

I'll upload a working copy of everything tomorrow.

G'night.

-C7

Link to comment
Share on other sites

You imported it right, but it had a purpose. I intended to make it so no other parts could be used with the tank. Everything on there was for a purpose: the adapter so the tank could actually fit, to isolate the thing for the rest and to prevent extra fuel for being mounted, the tank so it could only attach to the adapter and the engine, and so it could handle the engine, and the engine's stats so it would blow up when used with anything else than the tank. Guess my plan's somewhat blown...

Thanks for looking into it, though. If it works I'm happy, although I'll keep what you said in mind from now on. I have another model to redo, then...

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