I need help at changing weapons.

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

User avatar
Vuler
Private
Posts: 37
Joined: Fri Dec 31, 2010 2:49 pm
Projects :: SWBF2 Sides update
Games I'm Playing :: SWBF2 JK2
xbox live or psn: No gamertag set
Location: Poland

I need help at changing weapons.

Post by Vuler »

Hello everyone. I'd like to thank people who helped me solving some modding problems. However, I'm having another trouble now. I'm trying to use OOM9's DC-15 Blaster Carbine and I have some problems with it (I'm not a great modder). Well, I've edited the rifle's ODF File (I'll soon write what it looks like now) but there's no rifle at all. The Troopers just hold their hands in air. They still can shoot. Another thing which I'd like to do is to remove its icon, so even if I won't have 1.2/1.3 Patch installed, the icon will not float in middle of the screen. Thanks to anyone who could help.
[Padawan]Helkaan
Sith
Sith
Posts: 1444
Joined: Mon Aug 16, 2010 3:01 pm
Projects :: Dunno. Maybe making something
Games I'm Playing :: Some.

Re: I need help at changing weapons.

Post by [Padawan]Helkaan »

Could you post the ODF, please?
Also about the icon, just change the ODF and the icon TGA, you don't need to have the patch for it.
User avatar
Vuler
Private
Posts: 37
Joined: Fri Dec 31, 2010 2:49 pm
Projects :: SWBF2 Sides update
Games I'm Playing :: SWBF2 JK2
xbox live or psn: No gamertag set
Location: Poland

Re: I need help at changing weapons.

Post by Vuler »

Thanks for help! Here's the ODF:
Hidden/Spoiler:
[WeaponClass]
ClassParent = "com_weap_inf_rifle"
GeometryName = "rep_weap_inf_dc15carbine.msh"

[Properties]
GeometryName = "rep_1st_weap_inf_pistol_bump"
HighResGeometry = "rep_1st_weap_inf_pistol_bump"
OrdnanceName = "rep_weap_inf_rifle_ord"
FirePointName = "hp_fire"
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: I need help at changing weapons.

Post by DarthD.U.C.K. »

you know "rep_1st_weap_inf_pistol_bump" is the name of the rifles texture. you need to enter the name of the rifles model. in battlefront textures are .tga-files and models are .msh-files.
User avatar
Vuler
Private
Posts: 37
Joined: Fri Dec 31, 2010 2:49 pm
Projects :: SWBF2 Sides update
Games I'm Playing :: SWBF2 JK2
xbox live or psn: No gamertag set
Location: Poland

Re: I need help at changing weapons.

Post by Vuler »

Allright, thanks! :D
EDIT: Okay, I know I sound really stupid but I still have some problems. Here are my 2 ODFs which I have tested so far:
Hidden/Spoiler:
[WeaponClass]
ClassParent = "com_weap_inf_rifle"
GeometryName = "rep_1st_weap_inf_pistol_bump"

[Properties]
GeometryName = "rep_weap_inf_dc15carbine.msh"
HighResGeometry = "rep_weap_inf_dc15carbine.msh"
OrdnanceName = "rep_weap_inf_rifle_ord"
FirePointName = "hp_fire"
Hidden/Spoiler:
[WeaponClass]
ClassParent = "com_weap_inf_rifle"
GeometryName = "rep_1st_weap_inf_pistol_bump"

[Properties]
GeometryName = "rep_weap_inf_dc15carbine.msh"
HighResGeometry = "rep_weap_inf_dc15carbine.msh"
OrdnanceName = "rep_weap_inf_rifle_ord"
FirePointName = "hp_fire"
Could you tell me where goes the msh. file and where should I put name of the TGA file? And can somebody give me more exact information about removing the icon (it takes me long time to learn something about modding)?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: I need help at changing weapons.

Post by AQT »

You don't need to put a ".msh" in GeometryName and HighResGeometry. You don't need to define a TGA name in the ODF; the MSH you define will already take care of that. Any MSH and TGA files you are using should go in your side's msh folder. A quick way to remove the floating weapon icon is add the following line to your ODF under [Properties]:

Code: Select all

HUDTag = "none"
User avatar
Vuler
Private
Posts: 37
Joined: Fri Dec 31, 2010 2:49 pm
Projects :: SWBF2 Sides update
Games I'm Playing :: SWBF2 JK2
xbox live or psn: No gamertag set
Location: Poland

Re: I need help at changing weapons.

Post by Vuler »

Thank you for your help! It should help me a lot!
Offtopic: I'm glad that you've helped me and I'll add you to my friends list. :)
EDIT: Well, there's still no effect.
My current ODF:

Code: Select all

[WeaponClass]
ClassParent = "com_weap_inf_rifle"
GeometryName = "rep_1st_weap_inf_pistol_bump"

[Properties]
GeometryName = "rep_weap_inf_dc15carbine.msh"
HighResGeometry = "rep_weap_inf_dc15carbine.msh"
OrdnanceName = "rep_weap_inf_rifle_ord"
FirePointName = "hp_fire"
HUDTag  = "none"
(There's still the .msh part because I just copied the name and the stock ODF's also include it.)
The files are still in the sides/rep/msh folder. Unfortunately, it still doesn't work. Any clue on what could be wrong?
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: I need help at changing weapons.

Post by kinetosimpetus »

Vuler wrote: EDIT: Well, there's still no effect.
My current ODF:

Code: Select all

[WeaponClass]
ClassParent = "com_weap_inf_rifle"
GeometryName = "rep_1st_weap_inf_pistol_bump"

[Properties]
GeometryName = "rep_weap_inf_dc15carbine.msh"
HighResGeometry = "rep_weap_inf_dc15carbine.msh"

(There's still the .msh part because I just copied the name and the stock ODF's also include it.)
The files are still in the sides/rep/msh folder. Unfortunately, it still doesn't work. Any clue on what could be wrong?[/quote]

The stock weapons include .msh only in the geo name in the [weaponclass] section, the geo name there is the one that will show up in Zero Editor, not ingame.

The geo names in [Properties] must [i]not[/i] have it.
User avatar
Vuler
Private
Posts: 37
Joined: Fri Dec 31, 2010 2:49 pm
Projects :: SWBF2 Sides update
Games I'm Playing :: SWBF2 JK2
xbox live or psn: No gamertag set
Location: Poland

Re: I need help at changing weapons.

Post by Vuler »

Okay, I still can't use this Carbine. I had to mess something up. I'll make more attemps and I'll update this topic after when I'll get it to work/still won't be able to get it to work.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: I need help at changing weapons.

Post by THEWULFMAN »

Vuler wrote:Okay, I still can't use this Carbine. I had to mess something up. I'll make more attempts and I'll update this topic after when I'll get it to work/still won't be able to get it to work.

Stay Strong, and keep working in it. Modding is tough at first, but it gets alot easier as you get more experience.
User avatar
Vuler
Private
Posts: 37
Joined: Fri Dec 31, 2010 2:49 pm
Projects :: SWBF2 Sides update
Games I'm Playing :: SWBF2 JK2
xbox live or psn: No gamertag set
Location: Poland

Re: I need help at changing weapons.

Post by Vuler »

Stay Strong, and keep working in it. Modding is tough at first, but it gets alot easier as you get more experience.
Thanks, that's exactly what I think. I believe I'll be able to figure out how to use it. The only weapon which I was putting into the game before this DC-15 was Rekubot's DH-17 (for Rebels) and I see that Rep's Weapons' ODFs are different. :D
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: I need help at changing weapons.

Post by kinetosimpetus »

They might be arranged differently, but they work exactly the same.
User avatar
Vuler
Private
Posts: 37
Joined: Fri Dec 31, 2010 2:49 pm
Projects :: SWBF2 Sides update
Games I'm Playing :: SWBF2 JK2
xbox live or psn: No gamertag set
Location: Poland

Re: I need help at changing weapons.

Post by Vuler »

kinetosimpetus wrote:They might be arranged differently, but they work exactly the same.
Yes, their arrangement is what I meant. Odd thing, I tested DH-17 and it worked perfectly, but Dc-15 still doesn't work. I'll look at their ODFs once again.
EDIT: Okay, I've checked the files. They look almost the same (except for those arrangement differences and names of the files). It gets a bit frustrating, but I'll keep trying. 8)
EDIT 2: I'm still not able to use the rifle, but well, I realised that I should just go on without it. This topic can be closed, since my questions have been answered.
User avatar
asleeponduty
Private First Class
Posts: 77
Joined: Tue Jul 22, 2008 3:05 pm
Games I'm Playing :: AaaaaAAaaaAAAaaAAAA
xbox live or psn: No gamertag set
Location: Illinois

Re: I need help at changing weapons.

Post by asleeponduty »

Code: Select all

[WeaponClass]
ClassParent = "com_weap_inf_rifle"
GeometryName = "rep_1st_weap_inf_pistol_bump"   <- This should not be rep_1st_weap_inf_pistol_bump!!!!!!!!!!!!!!! 
            It should be rep_weap_inf_dc15carbine !

[Properties]
GeometryName = "rep_weap_inf_dc15carbine.msh"
HighResGeometry = "rep_weap_inf_dc15carbine.msh"
OrdnanceName = "rep_weap_inf_rifle_ord"
FirePointName = "hp_fire"
HUDTag  = "none"
Theres youre problem.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: I need help at changing weapons.

Post by AQT »

That should not matter as Kinetosemptus already stated a few posts above:
The stock weapons include .msh only in the geo name in the [weaponclass] section, the geo name there is the one that will show up in Zero Editor, not ingame.

The geo names in [Properties] must not have it.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: I need help at changing weapons.

Post by THEWULFMAN »

If you tested the dh17 and it works, I would suggest you tell us more about the model. Where did you download it? I dont think I ever used OOM9's carbine weapon model. Maybe the version you havee is messed up. Why dont you quickly upload the model and its texture. :wink:
User avatar
Vuler
Private
Posts: 37
Joined: Fri Dec 31, 2010 2:49 pm
Projects :: SWBF2 Sides update
Games I'm Playing :: SWBF2 JK2
xbox live or psn: No gamertag set
Location: Poland

Re: I need help at changing weapons.

Post by Vuler »

Ah, sorry for late response. I thought this topic is already closed. I've got DC-15 from "Various Clone Trooper Weapons Pack". There's link to it in Assets Links Thread. Just search for "DC-15A, DC-15s Carbine, DC-17 Pistol, WESTAR-M5, Underhand Chaingun" in Weapon assets section. I don't think there's something wrong with the weapon, though, especially because I tried using new Pistol for the Republic and the effect was the same. I even tried to do the same thing but with stock blaster pistol msh. I probably have messed ODF file.
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Re: I need help at changing weapons.

Post by CressAlbane »

Try this if you don't already have it:

Code: Select all

[WeaponClass]
ClassParent = "com_weap_inf_rifle"
GeometryName = "rep_1st_weap_inf_pistol_bump"   
[Properties]
GeometryName = "rep_weap_inf_dc15carbine"
HighResGeometry = "rep_weap_inf_dc15carbine"
OrdnanceName = "rep_weap_inf_rifle_ord"
FirePointName = "hp_fire"
HUDTag  = "none"

User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: I need help at changing weapons.

Post by Dakota »

Code: Select all

[WeaponClass]
ClassParent = "com_weap_inf_rifle"
GeometryName = "rep_1st_weap_inf_pistol_bump"

[Properties]
GeometryName = "rep_weap_inf_dc15carbine.msh"
HighResGeometry = "rep_weap_inf_dc15carbine.msh"
OrdnanceName = "rep_weap_inf_rifle_ord"
FirePointName = "hp_fire"
HUDTag  = "none"
my question is why does it have 2 geometry names i thought it should be only one and if there are 2 why are they both different... and i also am just wondering why is it a rep_1st_weap_inf_pistol_BUMP i thought it would just be without the _bump because of that usally being a .tga when ever i see one... but i am not really sure. wow i am more confused than sure :runaway:
User avatar
Jendo7
Sith
Sith
Posts: 1304
Joined: Wed Apr 01, 2009 6:37 pm
Location: Cambridge, England.
Contact:

Re: I need help at changing weapons.

Post by Jendo7 »

You are indeed correct, the GeometryName should be the same, in this case rep_weap_inf_dc15carbine in fact it should look like this:

Hidden/Spoiler:
[WeaponClass]
ClassParent = "com_weap_inf_rifle"
GeometryName ="rep_weap_inf_dc15carbine.msh"

[Properties]
GeometryName = "rep_weap_inf_dc15carbine"
HighResGeometry = "rep_weap_inf_dc15carbine"
OrdnanceName = "rep_weap_inf_rifle_ord"
FirePointName = "hp_fire"
HUDTag = "none"
Post Reply