hello
well maybe its get better audiance here than on BIS forum as it might be more related to the stuff you guys do.
well i am somewhat surprised that no one has noticed this nice tool
Softreg has sent us his simple but efficient OFP Replacer tool; which allows you to replace units in mission.sqm file by the one you want (by example for updating BI missions by replacing original addons by community's ones without editing directly the sqm with a text editor).
There are so many cool addons for OFP its just a shame to play with original ones that come with OFP. I for instance like to play original campagin missions with new addons but its easy to figure out changing all thoes units on the mission editor or even note pad can be very painfull. Well not any more. This utilty allows you to replace units in mission.sqm file to one you want. All you have to do is first specify "template".
Old unit: unit you want to replace
New Unit: unit you want to be in mission
Addon: any addons that your new unit uses (you can separate addons by comma)
This utility will:
Replace all units that you have replacement for in a template file (empty New units are ignored)
Add addons only if specified unit was found in the mission
Software req: Windows XP, Microsoft .NET Framework 1.1
home siteofp info news and download linkspersonal note:
~ did some testing and it seemed to work fine so far
~ you can exchange units and vehicles (no weapons and ammo (yet?))
~ this programm has even more potential if it also adds these features:
+ exchaning weapons and ammo
+ not only sqm file but also sqs and ext files support
+ more than 1 file selectable at the same time (like to convert 1000mission at the same time)
i really hope the auther is willing to enhance to programm and
that mods and maybe even addons will add an xml file every time!
(
short summary: you can exchange units in a mission with this programm if you do know the class of the original unit and exchanged one (also requiredAddons class))
---
yea no worries mate - the prog isnt very easy for sure, you have to have at least basic knowledge about addons and their structure
it works like this
a.) first of all you have to make an xml file with the changeslist and an unpbo'ed mission
you have to know the class name (<Unit> / <UnitNew>):
like for m1a1, its M1Abrams
you can look about this stuff in the config.cpp of the addon
(for the basic ofp classes have a look a the commented config from BIS for example)
you have to know addon dependency (<AddonName>):
you can find this out in cfgPatches.hpp/.cpp of config.cpp i think (not certain myself in every case) - watch out for "requiredAddons[]", that is what you need
this is not always needed !
example of the xml file with Wargames stuff
<Units>
<Unit>M113</Unit>
<UnitNew>WGL_M113A3</UnitNew>
<AddonName>wgl_veh</AddonName>
</Units>
b.) secondly select the mission.sqm with the prog
c.) finally repack / pbo the mission again
d.) you are done
tools which extracting and packing stuff are ofp editor, pbo_decryptor 1.5 / 7makepbo, PboX_v1.0 or winpbopack
---
well i just recognized that currently that search and replace inbuilt option by the program is
case-sensitive, so take care about the correct writing of the classes
hopefully this bug will be squased in the next release
---
thread in BIS forum