Jump to content
Sign in to follow this  
RRDRL

Making an addon replace troops? read inside.

Recommended Posts

Im playing the FFUR 1985 woodland mod. (not using 2008 version, get too many errors) and it uses some resistance soldiers called... edge resistance soldiers. lets say I want this

http://operationflashpoint.filefront.com/file/Williec_generic_resistance;47608

to replace edge's resistance (EDG_res.pbo). what files must I edit?

oh and how to open .pbo file?

Share this post


Link to post
Share on other sites
to replace edge's resistance (EDG_res.pbo). what files must I edit?

If you are doing this for your own use this should be fine. If you plan on distributing it as a new mod pack you need to get permission from the makers of mod/addons (ie. Thunderbird - FFUR and maybe Sacturary for the DMA addons).

First find the folder in the OFP directory called "Bin" and inside is a file called "Config.bin".

It is not a pbo, it is a binary file so you need an unbin utility. Look for BinaryView, it's the best. When you are done editing you'll need to rebin the file, look for a utility called cpp2bin.

Now the meaty part;

Search down through the config.cpp file you get when you unbin the config file and find a section called:

[CfgVehicles]

Then look until you find this entry: (SoldierG is the resistance side)

class SoldierGB:Soldier

{

vehicleClass="Men";

scope=2;

>>>>> model="\ffur_res\RES_unit01"; <<<<<<

hiddenSelections[]={};

moves="CfgMovesMC";

displayName="Soldier - ak47";

side=2;

cost=10000;

accuracy=0.7;

weapons[]={"AK47CZ","Throw","Put"};

magazines[]={"AK47","AK47","AK47","AK47","AK47","AK47","ffur_rgo","ffur_rgo","ffur_rgo","ffur_rgo"};

The "model=" line is what you need to edit. You'll need change it to the model inside of the DMA resistance file. I guess you'll need to unpbo that file to see the contents. Look for an unpbo utility for that. All of the resistance side units need to be changed in this manner.

This is not an easy task for someone not familiar with working with these files, which is sounds like you are. You might want to start with just a simple addon insted of a large conversion mod like FFUR.

Share this post


Link to post
Share on other sites
If you are doing this for your own use this should be fine. If you plan on distributing it as a new mod pack you need to get permission from the makers of mod/addons (ie. Thunderbird - FFUR and maybe Sacturary for the DMA addons).

First find the folder in the OFP directory called "Bin" and inside is a file called "Config.bin".

It is not a pbo, it is a binary file so you need an unbin utility. Look for BinaryView, it's the best. When you are done editing you'll need to rebin the file, look for a utility called cpp2bin.

Now the meaty part;

Search down through the config.cpp file you get when you unbin the config file and find a section called:

[CfgVehicles]

Then look until you find this entry: (SoldierG is the resistance side)

The "model=" line is what you need to edit. You'll need change it to the model inside of the DMA resistance file. I guess you'll need to unpbo that file to see the contents. Look for an unpbo utility for that. All of the resistance side units need to be changed in this manner.

This is not an easy task for someone not familiar with working with these files, which is sounds like you are. You might want to start with just a simple addon insted of a large conversion mod like FFUR.

MMyah, where can I get binaryview??

AND the only thing i need to change is soldierG? or must I change other things? I want all the resistance soldiers with the new model, even gabe and geronimo.

Edited by RRDRL

Share this post


Link to post
Share on other sites

ftp://ftp.ofpr.info/ofpd/rest/Binview.zip

AND the only thing i need to change is soldierG? or must I change other things? I want all the resistance soldiers with the new model, even gabe and geronimo.

No you need to change every soldier on the resistance side. Anything that has a "G" in the classname.

SoldierW__ =West Side

SoldierE__ = East Side

SoldierG__ = Resistance

Share this post


Link to post
Share on other sites
ftp://ftp.ofpr.info/ofpd/rest/Binview.zip

No you need to change every soldier on the resistance side. Anything that has a "G" in the classname.

SoldierW__ =West Side

SoldierE__ = East Side

SoldierG__ = Resistance

how do I unbin the config? ah well, i might decide to quit as well, this is too hard is there some sort of model viewer that will make my work easier?

Share this post


Link to post
Share on other sites

so a person would do this for all the reg-OFP units and vehs to the mod in question, so none of the west and east and res units show up editor, like the way the Lib Mod ????

edit : I guess i could just look into my Lib\Bin\Config file to see ... how dumb ass am i .......

don't answer that please... :P

LFH

Edited by ladie from hell
found answer

Share this post


Link to post
Share on other sites
so a person would do this for all the reg-OFP units and vehs to the mod in question, so none of the west and east and res units show up editor, like the way the Lib Mod ????

Yes.The main config is where the models can be re-pathed and

re-named.

Although,I'd be careful about poking around in a mod config.

Mostly because it may cause serious headaches.If you want

to experiment,it might be better to create a new mod folder

of your own.Then throw in a fresh config,and start editing it.

At least that way,any damage should be limited.Because mistakes

can and do happen.

:)

Share this post


Link to post
Share on other sites

thanks a bunch, i have been doing just that for our mod of OFPWH40K, and to make sure i get it right i have been doing a complete separate mod folder.

so far all is going well.

i am looking into keeping all civi stuff, and some basic stuff like jeeps and 5 ton trucks from west/east/res sides but i really would like not to have the US/Russian/Res troops/vehs and Air units in the editor.... :D

will see how it goes.

Don't suppose any one knows how to get the UI lap top changed looking into having that changed to some thing a bit more to our mod look. ????

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×