Need info on how to apply an ODF file to my map

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
User avatar
SlyCoopersButt
First Lance Corporal
First Lance Corporal
Posts: 121
Joined: Thu Jul 19, 2007 6:57 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: United States:GA
Contact:

Need info on how to apply an ODF file to my map

Post by SlyCoopersButt »

Yes, I did all my research and read the documentation files that came with the mod tools and read the sticky through and looked everywhere else for hours. But I cannot figure out how to apply an ODF file to my map which alters the explosive power of all detpacks. The name of the file is "com_weap_inf_detpack_exp.odf". I know everything I need to know about changing ODF files but where do I put them in my (Example) data_ABC folder so that they get munged into the map and take effect? I know this may seem a very basic thing but this is one thing I've met total roadblocks on. I've literally tried everything in the book as the saying goes.
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Building a railway to Coruscant
Contact:

RE: Need info on how to apply an ODF file to my map

Post by trainmaster611 »

I hope you didn't edit the file in the assets folder. Never do that.

Got to assets/Sides. Click the common folder and copy it over to your data_ABC/Sides folder.

Now create four folders (or two if you have one era): rep, cis, all, imp. Now inside of each folder create 5 new folders: effects, msh, odf, munged, and req.

Now go back to the assets/sides folder and go to the cis folder and copy over cis.req and cisshell.req to your data_ABC/sides/cis folder. Do this for each side respectively.

Now go to the assets/sides/cis folder (or whatever side you want) and copy over the msh and odf and whatever else files you need over into their appropriate places in your data_ABC/Sides folder. This will allow you to edit your material for your map.

Now go to data_ABC/Common/Scripts/ABC and open up ABCc_con (and whatever era and mode you need to edit) LUA file. Make sure you are editing the LUA and not the BAK file.

Now go down to this line:
ReadDataFile("SIDE\\rep.lvl",
"rep_inf_ep3_rifleman",
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_engineer",
"rep_inf_ep3_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",
"rep_hover_fightertank",
"rep_hero_anakin",
"rep_hover_barcspeeder")
ReadDataFile("SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_droideka",
"cis_hero_darthmaul",
"cis_hover_aat")


ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_laser",
"tur_bldg_tower")
Change it to this:
ReadDataFile("dc:SIDE\\rep.lvl",
"rep_inf_ep3_rifleman",
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_engineer",
"rep_inf_ep3_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",
"rep_hover_fightertank",
"rep_hero_anakin",
"rep_hover_barcspeeder")
ReadDataFile("dc:SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_droideka",
"cis_hero_darthmaul",
"cis_hover_aat")


ReadDataFile("dc:SIDE\\tur.lvl",
"tur_bldg_laser",
"tur_bldg_tower")
Once you've got that done, then go to your data_ABC/Sides/Common/odf folder and edit the odf file you want to edit.

Then go munge your map.
User avatar
SlyCoopersButt
First Lance Corporal
First Lance Corporal
Posts: 121
Joined: Thu Jul 19, 2007 6:57 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: United States:GA
Contact:

RE: Need info on how to apply an ODF file to my map

Post by SlyCoopersButt »

I'll try that. Thanks for the help.

{Edit}

I have tried it out exactly as you instructed. But BF2 always crashes to desktop at the very end of the maps loading. I have also tried many other methods as well again with no luck. Am I missing someting I need to do or am not doing correctly?

{Edit}

Nevermind! I made a mistake with a certain thing which I won't dive into but I got it to work! Man it's fun to abuse the power of ODF files!
Last edited by SlyCoopersButt on Fri Jul 20, 2007 4:37 pm, edited 1 time in total.
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Building a railway to Coruscant
Contact:

RE: Need info on how to apply an ODF file to my map

Post by trainmaster611 »

Post the BF2_Modtools.exe log
Post Reply