Messed up gun!

How to create models in XSI and other 3D applications and make them work in Battlefront 1 & 2. Post models, tips for application usage and share anything XSI, 3DMax, SketchUp, etc.

Moderator: Moderators

Post Reply
User avatar
Fluffy_the_ic
Hoth Battle Chief
Hoth Battle Chief
Posts: 3223
Joined: Thu Jan 24, 2008 7:03 pm
xbox live or psn: fluffytherc
Location: she/her
Contact:

Messed up gun!

Post 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). Image 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?
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Messed up gun!

Post 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.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Messed up gun!

Post 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.
User avatar
Fluffy_the_ic
Hoth Battle Chief
Hoth Battle Chief
Posts: 3223
Joined: Thu Jan 24, 2008 7:03 pm
xbox live or psn: fluffytherc
Location: she/her
Contact:

Re: Messed up gun!

Post by Fluffy_the_ic »

I thought you needed a dummyroot no matter what with mshex...
User avatar
tsurugi13
Lieutenant Colonel
Lieutenant Colonel
Posts: 543
Joined: Mon Dec 17, 2007 6:16 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Battling the ISA menace on Helghan.

Re: Messed up gun!

Post by tsurugi13 »

Wait... Are you using hp_active as the root? That could cause problems.
User avatar
Fluffy_the_ic
Hoth Battle Chief
Hoth Battle Chief
Posts: 3223
Joined: Thu Jan 24, 2008 7:03 pm
xbox live or psn: fluffytherc
Location: she/her
Contact:

Re: Messed up gun!

Post 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?
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Re: Messed up gun!

Post by Caleb1117 »

First of all, is it pointing along the Z-axis?
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Messed up gun!

Post 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.
Hidden/Spoiler:
Image
Oh and even though the picture says bone, they aren't but it does indicate the of hierarchy of the model
User avatar
Culvar
1st Lieutenant
1st Lieutenant
Posts: 429
Joined: Thu Jul 10, 2008 10:36 am

Re: Messed up gun!

Post by Culvar »

It looks like it may be using chaingun anims, may just be me though..
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Messed up gun!

Post by DarthD.U.C.K. »

if it does, its no problem
User avatar
Fluffy_the_ic
Hoth Battle Chief
Hoth Battle Chief
Posts: 3223
Joined: Thu Jan 24, 2008 7:03 pm
xbox live or psn: fluffytherc
Location: she/her
Contact:

Re: Messed up gun!

Post 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.
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Re: Messed up gun!

Post by Caleb1117 »

I'll go ahead ask again, are you sure it's pointing along the Z-axis? did you do that?
User avatar
Fluffy_the_ic
Hoth Battle Chief
Hoth Battle Chief
Posts: 3223
Joined: Thu Jan 24, 2008 7:03 pm
xbox live or psn: fluffytherc
Location: she/her
Contact:

Re: Messed up gun!

Post 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?
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Messed up gun!

Post 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!
User avatar
Fluffy_the_ic
Hoth Battle Chief
Hoth Battle Chief
Posts: 3223
Joined: Thu Jan 24, 2008 7:03 pm
xbox live or psn: fluffytherc
Location: she/her
Contact:

Re: Messed up gun!

Post by Fluffy_the_ic »

:shock: 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.
User avatar
tsurugi13
Lieutenant Colonel
Lieutenant Colonel
Posts: 543
Joined: Mon Dec 17, 2007 6:16 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Battling the ISA menace on Helghan.

Re: Messed up gun!

Post by tsurugi13 »

Fluffy_the_ic wrote::shock: 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.
User avatar
Fluffy_the_ic
Hoth Battle Chief
Hoth Battle Chief
Posts: 3223
Joined: Thu Jan 24, 2008 7:03 pm
xbox live or psn: fluffytherc
Location: she/her
Contact:

Re: Messed up gun!

Post 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.
User avatar
tsurugi13
Lieutenant Colonel
Lieutenant Colonel
Posts: 543
Joined: Mon Dec 17, 2007 6:16 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Battling the ISA menace on Helghan.

Re: Messed up gun!

Post 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.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Messed up gun!

Post 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.
User avatar
Fluffy_the_ic
Hoth Battle Chief
Hoth Battle Chief
Posts: 3223
Joined: Thu Jan 24, 2008 7:03 pm
xbox live or psn: fluffytherc
Location: she/her
Contact:

Re: Messed up gun!

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