Page 1 of 1
Messed up gun!
Posted: Tue Sep 02, 2008 7:49 pm
by Fluffy_the_ic
So I made a gun model. I exported it (using mshex). I had the right hardpoints, I believe (hp_active and hp_fire).

That's what happened ingame. The hp_fire is on the barrel. The hp_active is on the trigger, however, it is held like this ingame. I know one problem is the gunn is facing the wrong direction, but... What's with the nulls?
Re: Messed up gun!
Posted: Tue Sep 02, 2008 7:59 pm
by FragMe!
How was the gun aligned? It has to be pointing to the left when looking at the right view screen, the nulls by default will point the right way so other than moving the hp_fire to the end of the gun you should not need to rotate them.
Re: Messed up gun!
Posted: Tue Sep 02, 2008 8:00 pm
by AceMastermind
It looks like you didn't freeze the transforms on the weapon geometry, you didn't rotate any of the nulls did you?
If your entire weapon is a single object then you don't need a hp_active/dummyroot, just a hp_fire child of the weapon, the game will use the geometry's center as the attach point and as long as the center is on 0,0,0 then you're good, freezing the transforms on the geometry will move the center to 0,0,0.
Re: Messed up gun!
Posted: Tue Sep 02, 2008 8:03 pm
by Fluffy_the_ic
I thought you needed a dummyroot no matter what with mshex...
Re: Messed up gun!
Posted: Tue Sep 02, 2008 8:17 pm
by tsurugi13
Wait... Are you using hp_active as the root? That could cause problems.
Re: Messed up gun!
Posted: Tue Sep 02, 2008 9:01 pm
by Fluffy_the_ic
I am. So i don't need an hp_active or a dummyroot, just the point where they will be holding the gun at 0,0,0, with the barrel pointing down the z-axis. And I didn't rotate any nulls. I translated them, is that the same as rotating with nulls?
Re: Messed up gun!
Posted: Tue Sep 02, 2008 9:08 pm
by Caleb1117
First of all, is it pointing along the Z-axis?
Re: Messed up gun!
Posted: Tue Sep 02, 2008 11:46 pm
by FragMe!
Here is a picture of the all rifle, you can see it has no dummyroot everything is under the all_weap_inf_rifle mesh.
The color of the axis is the picture are the same as XSI, and the orientation of the rifle is how it should be in XSI.
I believe in this case they have an hp_active because the center of the rifles geometry may not be in the location where it would sit properly in the hand.
And translating (just moving) the null does not rotate it.
Oh and even though the picture says bone, they aren't but it does indicate the of hierarchy of the model
Re: Messed up gun!
Posted: Wed Sep 03, 2008 2:27 pm
by Culvar
It looks like it may be using chaingun anims, may just be me though..
Re: Messed up gun!
Posted: Wed Sep 03, 2008 2:52 pm
by DarthD.U.C.K.
if it does, its no problem
Re: Messed up gun!
Posted: Wed Sep 03, 2008 4:27 pm
by Fluffy_the_ic
The reason I'm making the big deal about the dummyroot is that rep said in the instructions for mshex that everything must be the child of a null called dummyroot. Thanks! I need to fix this, quick. Obi's using it in his map and he's releasing the beta tomorrow.
Re: Messed up gun!
Posted: Wed Sep 03, 2008 4:57 pm
by Caleb1117
I'll go ahead ask again, are you sure it's pointing along the Z-axis? did you do that?
Re: Messed up gun!
Posted: Wed Sep 03, 2008 5:09 pm
by Fluffy_the_ic
Caleb, I fixed that. It's just that I figured it out when I asked the question. But still, you really don't need a dummyroot when exporting a weapon model with mshex?
Re: Messed up gun!
Posted: Wed Sep 03, 2008 5:31 pm
by AceMastermind
I'm not familiar with MshEx but why don't you just try it with and without one and see if it works or not, the worst that could happen is your computer exploding and you getting hit with plastic shrapnel!
Re: Messed up gun!
Posted: Wed Sep 03, 2008 5:51 pm
by Fluffy_the_ic

THAT could happen??? Holy [Diet Dr. Pepper]! I might need someone with a full exporter! jk. Altho, if this doesn't work, I will try it with a dummyroot, and if it still doesn't work, I'll have to get an experienced weapon modeler to export it for me.
Re: Messed up gun!
Posted: Wed Sep 03, 2008 7:03 pm
by tsurugi13
Fluffy_the_ic wrote:
THAT could happen??? Holy [Diet Dr. Pepper]! I might need someone with a full exporter! jk. Altho, if this doesn't work, I will try it with a dummyroot, and if it still doesn't work, I'll have to get an experienced weapon modeler to export it for me.
Sure it could happen. Did you see live free or die hard? The dummyroot should work, it always has for me.
Re: Messed up gun!
Posted: Wed Sep 03, 2008 7:15 pm
by Fluffy_the_ic
Ok, now I'm getting confused... I need a dummyroot, i just tried without it. Everything's a child of the dummyroot. Must be facing left from a right side view. And hp_fire is a child of the gun, or no? <- Point of confusion.
Re: Messed up gun!
Posted: Wed Sep 03, 2008 8:08 pm
by tsurugi13
My setup has nothing as a child of the gun, the gun and the hp_active/fire as children of the dummyroot. That's what works for me, and I don't usually merge my meshes.
Re: Messed up gun!
Posted: Wed Sep 03, 2008 8:27 pm
by FragMe!
hp_fire does not need to be a child of the model mesh just a child of the dummyroot for a model like a gun/weapon as it all moves as one. If you were making something like a turret that would move in game (rotate tilt aim etc) then yes it location needs to be more specific.
Re: Messed up gun!
Posted: Wed Sep 03, 2008 8:35 pm
by Fluffy_the_ic
Ok, now I'm on the verge of giving up. I've done everything told to do. EVERYTHING. Including Rep's msex tut. I read through that 3 times. And now, after a half hour of exporting ONE MODEL I'm only halfway there, and now it crashed. I still have the messed up originals, and there filesize was about 74kb. This model is annoying me now, and i really am not in the mood for this. I think that I'm gonna need someone to export this for me eventually.
EDIT: Ya, someones gonna need to export this for me... I've given up on mshex, as FragMe! diagnosed the problem, I fixed the problem. Now it crashes about halfway through at something that says TURT: 158.