Page 1 of 1

odf editing - nothing happening? what have I missed?

Posted: Fri Nov 24, 2017 1:54 pm
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?

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

Posted: Fri Nov 24, 2017 3:42 pm
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" )