how do you merge 2 map addition mission files

piff

Well-Known Member
I have 2 different map additions and would like to combine them, how do you do this?
 
-1 create a new file.sqf ( name it as you want without ponctuation and any space, replace space by _ ie : new_balota.sqf)
-2 go to your user/documents/arma2OA other profile/username/saved/mission/name of your first map addon/mission
-3 copy everything and paste it in your new_balota.sqf.
-4 Delete your first line block, something like this
Code:
activateAddons []; initAmbientLife;
and replace it by
Code:
if (isServer) then {
-5 delete all this group placed somewhere in this new_balota.sqf
Code:
_this = createCenter west;
_center_0 = _this;
 
_group_0 = createGroup _center_0;
 
_unit_XXX = objNull;
if (true) then
{
  _this = _group_0 createUnit ["GER_Soldier_EP1", [0,0,0], [], 0, "CAN_COLLIDE"];
  _unit_XXX = _this;
  _this setUnitAbility 0.60000002;
  if (true) then {_group_0 selectLeader _this;};
  if (true) then {selectPlayer _this;};
  if (true) then {setPlayable _this;};
};
(it will remove your center group / center side and units. Keeping it on your new_balota.sqf will affect your mission pbo and will crach your server at start...
-6 open your second map addon and copy and paste evrything into your new_balota.sqf
delete again the ""activateAddons []; initAmbientLife;"" at begining of this paste.
delete the center group/ group side and units block again.

-7 check out every object number from your new paste and change them if it's the same number object of your first paste ( of your first mission file pasted at start)
getting 2 object with the same number will crach your mission pbo and server.
Dont forget than each object added get the same object number 2 time. both number need to get the same number for the same object ie:
Code:
_vehicle_XXX= objNull;
if (true) then
{
  _this = createVehicle ["Land_a_stationhouse", [0,0,0], [], 0, "CAN_COLLIDE"];
  _vehicle_XXX = _this;
  _this setDir 211.89264;
  _this setPos [0,0,0];
};

-8 go on bottom of your new_balota.sqf and delete latest block of line:
Code:
processInitCommands;
and replace it by :
Code:
};

-9 now it's ready to be placed into your mission pbo
 
Back
Top