How to update F2 2-6-0+ Missions to F2 2-7-0
Posted: Mon Dec 17, 2012 2:28 pm
NOTE
This guide was made speficially for F2 2-7-0.
The procedure for any version above should be similar but be sure to use WinMerge to avoid any critical mistakes.
Add
Find
and delete it.
Change the line
into
Below the last
but before any custom script execution. You add
Description.ext
Find and remove
and further down find and delete
Find
and change it into
below the next
but before
you add
Updating 2-5-0 and older: Updating missions prior to 2-6-0 is more involved due to them using the old ORBAT and a different assignGear method. I'd recommend using a fresh copy of F2 and merging any custom changes the mission did in by hand instead of trying a patchwork solution.
Game crashes after updating a mission: Most likely caused by issues within the description.ext. Scan for any open { or redundant } and try replacing it with a description.ext from a fresh F2 download.
This guide was made speficially for F2 2-7-0.
The procedure for any version above should be similar but be sure to use WinMerge to avoid any critical mistakes.
Add
- f/common/fa_tripwireaction.sqf _tripwire_init.sqf
- f/common/f_orbatNotes.sqf
- f/common/f_groupJoinAction.sqf
- f/common/f_groupJoinAddOption.sqf
- f/common/folk_assignGear_acr.sqf
- f/common/f_briefing_ru.sqf _gue.sqf _ins.sqf _usmc.sqf _cdf.sqf
- f/common/folk_assignGear_acre.sqf _ru.sqf _gue.sqf _ins.sqf _usmc.sqf _cdf.sqf
- f/common/folk_assignGear_us_alt.sqf
- f/common/f_spect/specta.sqf
- f/common/f_isAuthorisedCrewType.sqf
- briefing.sqf
- f/common/f_setMissionConditions.sqf
- f/common/folk_assignGear.sqf + _us _baf _tk _tk_ins _tk_gue _un _ger _cz
- f/common/folk_setLocalGroupMarkers.sqf
- f/common/folk_setGroupID.sqf
Find
Code: Select all
// F2 - Norrin's Revive Respawn
// Credits: Please see the F2 online manual (http://www.ferstaberinde.com/f2/en/)
// server execVM "revive_init.sqf";
// ====================================================================================
Change the line
Code: Select all
[] execVM "f\common\folk_setGroupIDs.sqf";
Code: Select all
f_script_setGroupIDs = [] execVM "f\common\folk_setGroupIDs.sqf";
Code: Select all
// ====================================================================================
Code: Select all
// F2 - ORBAT Notes
// Credits: Please see the F2 online manual (http://www.ferstaberinde.com/f2/en/)
[] execVM "f\common\f_orbatNotes.sqf";
// ====================================================================================
// F2 - Tripwire action
// Credits: Please see the F2 online manual (http://www.ferstaberinde.com/f2/en/)
// [[UnitName1,UnitName2],25,2,east] execVM "f\common\fa_tripwire_init.sqf";
// ====================================================================================
// F2 - Join Group Action
// Credits: Please see the F2 online manual (http://www.ferstaberinde.com/f2/en/)
[false] execVM "f\common\f_groupJoinAddOption.sqf";
Find and remove
Code: Select all
// F2 - Norrin's Revive Respawn (Part 1)
// Credits: Please see the F2 online manual (http://www.ferstaberinde.com/f2/en/)
// class f_param_lives
// {
// title = "Number of Lives:";
// values[] = {2000,1000,20,10,7,5};
// texts[] = {"No Revive","Infinite - Cadet","20 - Easy ","10 - Normal","7 - Hard","5 - Extreme"};
// default = 10;
// code = "f_param_lives = %1";
// };
Code: Select all
// F2 - Norrin's Revive Respawn (Part 2)
// Credits: Please see the F2 online manual (http://www.ferstaberinde.com/f2/en/)
// disabledAI = 0;
// #include "f\revive\dialogs\revive.cpp"
Code: Select all
// ============================================================================================
// F2 - Whether AssignGear should allow Backpacks for OA/BAF/PMC units
// Credits: Please see the F2 online manual (http://www.ferstaberinde.com/f2/en/)
// WARNING: DO NOT DISABLE THIS COMPONENT OR CHANGE POSITION IN PARAMS; IT MUST BE REFERENCABLE
// AS "paramsarray select 0" FOR GEAR SCRIPTS TO WORK CORRECTLY
class Params
{
class f_param_useBackpacks
{
title = "OA Backpacks (Asst. Gunners & Engineers)";
values[] = {0,1};
texts[] = {"Off","On"};
default = 1;
code = "f_param_useBackpacks = %1";
};
Code: Select all
class Params
{
// ============================================================================================
// F2 - Whether AssignGear should allow Backpacks for OA/BAF/PMC units. Works only on A2 units in CO 1.63 or later.
// Credits: Please see the F2 online manual (http://www.ferstaberinde.com/f2/en/)
class f_param_useBackpacks
{
title = "OA Backpacks";
values[] = {0,1};
texts[] = {"Off","On"};
default = 1;
code = "f_param_useBackpacks = %1";
};
Code: Select all
// ============================================================================================
Code: Select all
// F2 - Debug Mode
Code: Select all
// F2 - ACRE Support
// Credits: Please see the F2 online manual (http://www.ferstaberinde.com/f2/en/)
// WARNING: DO NOT DISABLE THIS COMPONENT OR CHANGE POSITION IN PARAMS; IT MUST BE REFERENCABLE
// AS "paramsarray select 1" FOR GEAR SCRIPTS TO WORK CORRECTLY
class f_param_acre
{
title = "ACRE";
values[] = {0,1};
texts[] = {"Off","On"};
default = 0;
code = "f_var_acre = %1";
};
// ============================================================================================
Updating 2-5-0 and older: Updating missions prior to 2-6-0 is more involved due to them using the old ORBAT and a different assignGear method. I'd recommend using a fresh copy of F2 and merging any custom changes the mission did in by hand instead of trying a patchwork solution.
Game crashes after updating a mission: Most likely caused by issues within the description.ext. Scan for any open { or redundant } and try replacing it with a description.ext from a fresh F2 download.