odf editing - nothing happening? what have I missed?

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
ghescwa
Posts: 4
Joined: Sun Nov 19, 2017 7:19 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

odf editing - nothing happening? what have I missed?

Post by ghescwa »

OK, so to give a little context, I'm trying to swap the weapons of the engineer class for other stock weapons (I have absolutely nothing against shotguns btw...). In particular I've been trying to give the clone engineer the DN Bolt Caster (like in BF1).

I started by copying the "rep" and "common" folders from assets\sides then editing the ODF files in my test map's data folder (BF2_ModTools\data_ABC\sides). I then munged.

I only made one change to data_ABC\sides\rep\odf\rep_inf_default_engineer.odf -

Code: Select all

WEAPONSECTION 		= 1
WeaponName        	= "rep_weap_inf_shotgun"
WeaponAmmo        	= 8
changed to

Code: Select all

WEAPONSECTION 		= 1
WeaponName        	= "rep_weap_inf_arccaster"
WeaponAmmo        	= 8
I munged just the rep side and in the munge log, it mentioned rep_inf_default_engineer.odf so I'm guessing it did pick up on my edit.

However, when I load into BF2, there is no difference - clone engineer still has his shotgun on the test map. I also tried this with rep_weap_inf_rifle so I don't think it's just the arc caster that's not working.

What am I missing? Any ideas?
User avatar
EasyOvenOperator
Private Recruit
Posts: 23
Joined: Thu Nov 16, 2017 12:03 am
Projects :: No Mod project currently.
Games I'm Playing :: SWBFII
xbox live or psn: No gamertag set

Re: odf editing - nothing happening? what have I missed?

Post by EasyOvenOperator »

i'm not the expert on modding, so don't listen to me.

were you sure to add "dc:" to the "readdatafile" in your c_con lua? (or whatever mode you're changing).
this is the "imp" or "gc_con lua", but it's the same just change "imp" with "rep".


ReadDataFile("dc:SIDE\\imp.lvl",
"imp_inf_rifleman",
"imp_inf_rocketeer",
"imp_inf_engineer",
"imp_inf_sniper",
"imp_inf_officer",
"imp_inf_dark_trooper",
"imp_hero_marek",
"imp_fly_destroyer_dome" )
Post Reply