Floating weapon and no sound?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Elmo
Field Commander
Field Commander
Posts: 962
Joined: Wed Nov 08, 2006 5:13 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Floating weapon and no sound?

Post by Elmo »

I put in a Naboo soldier in my map, And when I play as him, his gun does not have any sound, and beside him, another copy of the gun is floating right there. How do you fix this?
The_Emperor
Supreme Galactic Ruler
Posts: 2118
Joined: Sat Dec 10, 2005 6:30 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Waaaaay over there.

RE: Floating weapon and no sound?

Post by The_Emperor »

Put "HudTag = "hud" in the guns odf, the floating gun will dissapear. And there's a missing sound tutorial in the how to section, I'm too lazy to post a link right now ;)
Elmo
Field Commander
Field Commander
Posts: 962
Joined: Wed Nov 08, 2006 5:13 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Elmo »

where do i put that whole hud tag thing? Anywhere in the guns odf?
The_Emperor
Supreme Galactic Ruler
Posts: 2118
Joined: Sat Dec 10, 2005 6:30 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Waaaaay over there.

Post by The_Emperor »

Yeah anywhere under properties
Elmo
Field Commander
Field Commander
Posts: 962
Joined: Wed Nov 08, 2006 5:13 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Elmo »

Ok, I did what you told me to do, but there is still that floating gun problem. Here is my gun's odf:

WeaponClass]
ClassParent = "com_weap_inf_rifle"

[Properties]
ScoreForMedalsType = -1
MedalsTypeToLock = -1

GeometryName = "gar_weap_inf_rifle"

OrdnanceName = "gar_weap_inf_rifle_ord"


//***********************************************
//*********** SOUND *********
//***********************************************

FireSound = "gar_weap_inf_rifle_fire"
ReloadSound = "com_weap_inf_reload_med"
ChangeModeSound = "com_weap_inf_equip_med"
FireEmptySound = "com_weap_inf_ammo_empty"
WeaponChangeSound = "com_weap_inf_equip_med"
JumpSound = "com_weap_inf_rifle_mvt_jump"
LandSound = "com_weap_inf_rifle_mvt_land"
RollSound = "com_weap_inf_rifle_mvt_roll"
//ProneSound = "com_weap_inf_rifle_mvt_squat"
SquatSound = "com_weap_inf_rifle_mvt_squat"
//StandSound = "com_weap_inf_rifle_mvt_getup"
"HudTag = "hud"

Waht's wrong??
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

Post by Penguin »

"HudTag = "hud"

should be

HudTag = "<anything thats not a real .msh file>"
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

Post by Darth_Z13 »

WeaponClass]
ClassParent = "com_weap_inf_rifle"

[Properties]
HUDTag = "hud"

ScoreForMedalsType = -1
MedalsTypeToLock = -1

GeometryName = "gar_weap_inf_rifle"

OrdnanceName = "gar_weap_inf_rifle_ord"


//***********************************************
//*********** SOUND *********
//***********************************************

FireSound = "gar_weap_inf_rifle_fire"
ReloadSound = "com_weap_inf_reload_med"
ChangeModeSound = "com_weap_inf_equip_med"
FireEmptySound = "com_weap_inf_ammo_empty"
WeaponChangeSound = "com_weap_inf_equip_med"
JumpSound = "com_weap_inf_rifle_mvt_jump"
LandSound = "com_weap_inf_rifle_mvt_land"
RollSound = "com_weap_inf_rifle_mvt_roll"
//ProneSound = "com_weap_inf_rifle_mvt_squat"
SquatSound = "com_weap_inf_rifle_mvt_squat"
//StandSound = "com_weap_inf_rifle_mvt_getup"

a) You had it in the sound section and
b) You sorta typed it wrong.
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

Post by Penguin »

EDIT: duplicate post
Last edited by Penguin on Tue Dec 19, 2006 12:09 am, edited 1 time in total.
Elmo
Field Commander
Field Commander
Posts: 962
Joined: Wed Nov 08, 2006 5:13 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Elmo »

anything that's not a real msh file??? In the meantime ill try darth's way. :P
PvtParts
Jedi
Jedi
Posts: 1001
Joined: Mon Apr 03, 2006 9:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: plundering yer booty

Post by PvtParts »

calling for the hud does the trick, but I guess Penguins saying it can be anything that doesnt exist.

I think you messed it up when you didnt close quotations and had them all over the place/
Elmo
Field Commander
Field Commander
Posts: 962
Joined: Wed Nov 08, 2006 5:13 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Elmo »

This is CrAzY... Ok, Is the odf file for the Naboo soldier's blaster rifle called... gar_weap_inf_rifle? I need to know that... and here is my odf file now:

[WeaponClass]
ClassParent = "com_weap_inf_rifle"

[Properties]
HUDTag = "hud"

ScoreForMedalsType = -1
MedalsTypeToLock = -1

GeometryName = "gar_weap_inf_rifle"

OrdnanceName = "gar_weap_inf_rifle_ord"


//***********************************************
//*********** SOUND *********
//***********************************************

FireSound = "gar_weap_inf_rifle_fire"
ReloadSound = "com_weap_inf_reload_med"
ChangeModeSound = "com_weap_inf_equip_med"
FireEmptySound = "com_weap_inf_ammo_empty"
WeaponChangeSound = "com_weap_inf_equip_med"
JumpSound = "com_weap_inf_rifle_mvt_jump"
LandSound = "com_weap_inf_rifle_mvt_land"
RollSound = "com_weap_inf_rifle_mvt_roll"
//ProneSound = "com_weap_inf_rifle_mvt_squat"
SquatSound = "com_weap_inf_rifle_mvt_squat"
//StandSound = "com_weap_inf_rifle_mvt_getup"

Is there something wrong? Because there is still that floating gun! :x

Edit: should I add this in my gun's ord odf file?
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

Post by Darth_Z13 »

Try cleaning your side and re-munging. That's what did it for me.
Elmo
Field Commander
Field Commander
Posts: 962
Joined: Wed Nov 08, 2006 5:13 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Elmo »

wait, so i select my side and click clean? And then munge my side again?
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post by Teancum »

Change HUDTag to "rep_weap_inf_rifle" instead of "hud" -- it'll show up where it should then.
PvtParts
Jedi
Jedi
Posts: 1001
Joined: Mon Apr 03, 2006 9:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: plundering yer booty

Post by PvtParts »

go into _BUILD\Sides\GAR\ and run (just double-click it) clean.bat

Then, run visualmunge, but be sure to select GAR under the sides menu (actually just select EVERYTHING in the SIDES drop-down).
Elmo
Field Commander
Field Commander
Posts: 962
Joined: Wed Nov 08, 2006 5:13 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Elmo »

Teancum wrote:Change HUDTag to "rep_weap_inf_rifle" instead of "hud" -- it'll show up where it should then.
hmmmmmm.. didn't work.. i'll try cleaning
Elmo
Field Commander
Field Commander
Posts: 962
Joined: Wed Nov 08, 2006 5:13 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Elmo »

dang, cleaning doesn't work either. Anyone have any suggestions?

Here is my odf file...again:
[WeaponClass]
ClassParent = "com_weap_inf_rifle"

[Properties]
HUDTag = "rep_weap_inf_rifle"

ScoreForMedalsType = -1
MedalsTypeToLock = -1

GeometryName = "gar_weap_inf_rifle"

OrdnanceName = "gar_weap_inf_rifle_ord"


//***********************************************
//*********** SOUND *********
//***********************************************

FireSound = "gar_weap_inf_rifle_fire"
ReloadSound = "com_weap_inf_reload_med"
ChangeModeSound = "com_weap_inf_equip_med"
FireEmptySound = "com_weap_inf_ammo_empty"
WeaponChangeSound = "com_weap_inf_equip_med"
JumpSound = "com_weap_inf_rifle_mvt_jump"
LandSound = "com_weap_inf_rifle_mvt_land"
RollSound = "com_weap_inf_rifle_mvt_roll"
//ProneSound = "com_weap_inf_rifle_mvt_squat"
SquatSound = "com_weap_inf_rifle_mvt_squat"
//StandSound = "com_weap_inf_rifle_mvt_getup"
Any problems?
Post Reply