Creating new weapons by using ONLY the odfs?

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
Jawa26
Private Recruit
Posts: 23
Joined: Sun Nov 16, 2014 8:53 am
Projects :: No Mod project currently.
Games I'm Playing :: Battlefront 2
xbox live or psn: No gamertag set

Creating new weapons by using ONLY the odfs?

Post by Jawa26 »

As the title already says I want to create a weapon by only using the odf.
I want to do that with a lightsabre so I dont want to change any texture.

I have tried copying a lightsabres odf and just changed the name and context inside the odf.
Now when I start the game and select the unit then it says jed_weap_lightsabre_green2 instead of
the original name and I cannot change the combo animations otherwise the game crashes.

It that actually possible or would I have to a completely new texture msh and all the other files?

Jawa 26
User avatar
commanderawesome
Field Commander
Field Commander
Posts: 971
Joined: Tue Aug 13, 2013 11:58 pm
Projects :: Skin Changer - Warfront - Other stuff
Games I'm Playing :: SWBF SWTOR KotOR EaW
xbox live or psn: AaTc_CmdrAwesome
Location: The Universe

Re: Creating new weapons by using ONLY the odfs?

Post by commanderawesome »

Umm...
Outside of localization, there shouldn't be anything else you need to do outside of the ODF stuff. Unless if you want to make some radical change to it's appearance.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Creating new weapons by using ONLY the odfs?

Post by Noobasaurus »

Jawa26 wrote:I have tried copying a lightsabres odf and just changed the name and context inside the odf.
Now when I start the game and select the unit then it says jed_weap_lightsabre_green2 instead of
the original name and I cannot change the combo animations otherwise the game crashes.
This is a very vague explanation of what you did. Please explain what you did in further detail. What parameters did you change exactly in the lightsaber odf and how did you attempt to change the combo animations? Also, what was the error message in the log when the game crashed?
Jawa26
Private Recruit
Posts: 23
Joined: Sun Nov 16, 2014 8:53 am
Projects :: No Mod project currently.
Games I'm Playing :: Battlefront 2
xbox live or psn: No gamertag set

Re: Creating new weapons by using ONLY the odfs?

Post by Jawa26 »

Lightsabre:
[WeaponClass]

ClassLabel = "melee"
ClassParent = "com_weap_inf_lightsaber"

[Properties]

GeometryName = "rep_weap_inf_lightsabre"
ComboAnimationBank = "human_sabre melee rep_hero_ep3obiwan"

FirePointName = "hp_fire"
LightSaberLength = "1.0"
LightSaberWidth = "0.08"
LightSaberTexture = "violetlightsaber"
LightSaberTrailColor = "189 7 255 128"

That is what I have done inside the odf.
I just copied the normal lightsabre and renamed it.
With these Animations:ComboAnimationBank = "human_sabre melee rep_hero_ep3obiwan"
the game works perfectly and all movements look like the original obiwan animation but when I
change the animations then the game either crashes or the animations look broken (I forgot to mention that).
I thought that maybe the character using the lightsabre has a different animation ,or that he was not designed for some animations.
Now the problem with the error log is that I can't find it. Where can I find the error log?

That is basically all I did.
Jawa 26
Post Reply