Niskope - copying and pasting collision data how-to, please.

Post » Fri May 27, 2011 6:16 pm

So, I have a weapon in .nif format. Viewed in Nifskope, it has a yellow box around it indicating the size of its collision box. In the Block List pane, it sits within a node tree like this:

6 bhkCollisionObject 5 bhkRigidBodyT  4 bhkBoxShape


I have another weapon that doesn't have this collision information. I imagine if I drop it at any point, it's going to fall through the floor. I'd quite like to copy the same node branch that handles collision from the previous weapon into this one to stop this from happening.

Right clicking "6 bhkCollisionObject", selecting "Block -> Copy Branch" and then right-clicking on the BSFadeNode and selecting "Block -> Paste Branch" introduces the node branch into the second weapon's block list. The problem is, the node branch doesn't seem to be parented properly, so the yellow collision box isn't showing and the node branch appears at the bottom of the block list, not subordinate to the BSFadeNode as with the first weapon.

Would someone be willing to tell me how I connect this up properly, please?
User avatar
Gill Mackin
 
Posts: 3384
Joined: Sat Dec 16, 2006 9:58 pm

Post » Fri May 27, 2011 11:27 pm

For anyone else having trouble with this, here's a helpful how to do it:

Left-click "BSFadeNode" in the Block List.

In the Block Details, scroll down to the "Collision Object" field and type in the number that corresponds with the "bhkCollisionObject" node.

Click on the "bhkCollisionObject" node and use CTRL & up-arrow to make "bhkCollisionObject" the third item in the Block List to appear under the "BSfadeNode" node, after "BSXFlags" and "NiStringExtraData". It should be numbered decrementally consecutively, beginning with the grandchild element, "bhkBoxShape". When done, it should appear similar to this:

0 BSFadeNode 1 BSXFlags 2 NiStringExtraData 5 bhkCollisionObject  4 bhkRigidBody   3 BSFadeNode

User avatar
Jesus Lopez
 
Posts: 3508
Joined: Thu Aug 16, 2007 10:16 pm


Return to Fallout: New Vegas