How can I make and ODF for a custom weapon?

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
superimperial11
Private First Class
Posts: 82
Joined: Thu Jan 01, 2015 6:15 am
Projects :: Onfar
Games I'm Playing :: Most Star Wars games
xbox live or psn: RomanElite79
Location: The Lonely Island

How can I make and ODF for a custom weapon?

Post by superimperial11 »

Hello. I just wanted to replace the standard clone blaster with OOM-9's carbine variant but it doesn't come with an odf for the weapon for the game to read. So I was wondering, how do I make said odf for the DC-15S blaster carbine?
Indytotof
Chief Warrant Officer
Chief Warrant Officer
Posts: 348
Joined: Fri Jun 06, 2014 6:58 am
Projects :: SWBF2 Sides Overhaul Mod
Games I'm Playing :: Battlefront 2
xbox live or psn: No gamertag set
Location: Senlis, France

Re: How can I make and ODF for a custom weapon?

Post by Indytotof »

superimperial11 wrote:Hello. I just wanted to replace the standard clone blaster with OOM-9's carbine variant but it doesn't come with an odf for the weapon for the game to read. So I was wondering, how do I make said odf for the DC-15S blaster carbine?

Didn't there is an ODF for this weapon on the BFX's assets ?
superimperial11
Private First Class
Posts: 82
Joined: Thu Jan 01, 2015 6:15 am
Projects :: Onfar
Games I'm Playing :: Most Star Wars games
xbox live or psn: RomanElite79
Location: The Lonely Island

Re: How can I make and ODF for a custom weapon?

Post by superimperial11 »

Indytotof wrote:
superimperial11 wrote:Hello. I just wanted to replace the standard clone blaster with OOM-9's carbine variant but it doesn't come with an odf for the weapon for the game to read. So I was wondering, how do I make said odf for the DC-15S blaster carbine?

Didn't there is an ODF for this weapon on the BFX's assets ?
I couldn't find BFX assets on these forums.
Edit: Found it. There is no weapon asset.
Last edited by superimperial11 on Sat Jan 10, 2015 3:22 pm, edited 1 time in total.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: How can I make and ODF for a custom weapon?

Post by AQT »

A weapon ODF reads the GeometryName and HighResGeometry of a weapon MSH file name, not the other way around. The weapon MSH file is independent of how its ODF functions. Just because you have a carbine model doesn't mean its ODF should function like a carbine.
Indytotof
Chief Warrant Officer
Chief Warrant Officer
Posts: 348
Joined: Fri Jun 06, 2014 6:58 am
Projects :: SWBF2 Sides Overhaul Mod
Games I'm Playing :: Battlefront 2
xbox live or psn: No gamertag set
Location: Senlis, France

Re: How can I make and ODF for a custom weapon?

Post by Indytotof »

superimperial11 wrote:
Indytotof wrote:
superimperial11 wrote:Hello. I just wanted to replace the standard clone blaster with OOM-9's carbine variant but it doesn't come with an odf for the weapon for the game to read. So I was wondering, how do I make said odf for the DC-15S blaster carbine?

Didn't there is an ODF for this weapon on the BFX's assets ?
I couldn't find BFX assets on these forums.
Right here: BFX's assets

Have fun !
superimperial11
Private First Class
Posts: 82
Joined: Thu Jan 01, 2015 6:15 am
Projects :: Onfar
Games I'm Playing :: Most Star Wars games
xbox live or psn: RomanElite79
Location: The Lonely Island

Re: How can I make and ODF for a custom weapon?

Post by superimperial11 »

AQT wrote:A weapon ODF reads the GeometryName and HighResGeometry of a weapon MSH file name, not the other way around. The weapon MSH file is independent of how its ODF functions. Just because you have a carbine model doesn't mean its ODF should function like a carbine.
I just wanted to know how to create one so my clone trooper can use it.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: How can I make and ODF for a custom weapon?

Post by AQT »

Have you simply tried taking a stock rifle ODF and editing it to your liking?
superimperial11
Private First Class
Posts: 82
Joined: Thu Jan 01, 2015 6:15 am
Projects :: Onfar
Games I'm Playing :: Most Star Wars games
xbox live or psn: RomanElite79
Location: The Lonely Island

Re: How can I make and ODF for a custom weapon?

Post by superimperial11 »

AQT wrote:Have you simply tried taking a stock rifle ODF and editing it to your liking?
That is what I was thinking but I wouldn't know what to change.
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: How can I make and ODF for a custom weapon?

Post by AnthonyBF2 »

Place the weapon model and textures in inside of side\msh, then edit the weapon odf of your choice to read the weapon model.

If your weapon model is named "super_duper_gun.msh", then at the top of the odf, you should change the msh it reads to super_duper_gun.msh
superimperial11
Private First Class
Posts: 82
Joined: Thu Jan 01, 2015 6:15 am
Projects :: Onfar
Games I'm Playing :: Most Star Wars games
xbox live or psn: RomanElite79
Location: The Lonely Island

Re: How can I make and ODF for a custom weapon?

Post by superimperial11 »

anthonybf2 wrote:Place the weapon model and textures in inside of side\msh, then edit the weapon odf of your choice to read the weapon model.

If your weapon model is named "super_duper_gun.msh", then at the top of the odf, you should change the msh it reads to super_duper_gun.msh
Thanks for the help! :thumbs: :D
Edit: Okay, new problem. Game crashes with "FATAL" and "Could not find ONFc_con.lvl" BUT this has nothing to do with the weapon because I haven't done that yet. All I did was change a clone skin, which I had no problems with before.
Post Reply