Page 1 of 1

How to update F2 2-6-0+ Missions to F2 2-7-0

Posted: Mon Dec 17, 2012 2:28 pm
by wolfenswan
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
  • 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
Overwrite
  • f/common/f_spect/specta.sqf
  • f/common/f_isAuthorisedCrewType.sqf
Check for custom changes first, then overwrite or adapt:
  • 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
init.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";

// ====================================================================================
and delete it.

Change the line

Code: Select all

[] execVM "f\common\folk_setGroupIDs.sqf";
into

Code: Select all

f_script_setGroupIDs = [] execVM "f\common\folk_setGroupIDs.sqf";
Below the last

Code: Select all

// ====================================================================================
but before any custom script execution. You add

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";
Description.ext

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";
//	};
and further down find and delete

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"
Find

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";
        };  
and change it into

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";
        }; 
below the next

Code: Select all

// ============================================================================================
but before

Code: Select all

// F2 - Debug Mode
you add

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.

Re: How to update F2 2-6-0+ Missions to F2 2-7-0

Posted: Mon Dec 17, 2012 3:10 pm
by Black Mamba
Seems like you're missing harakka's Join Group Action in your tuto!

Re: How to update F2 2-6-0+ Missions to F2 2-7-0

Posted: Mon Dec 17, 2012 3:34 pm
by harakka
The mission maker may have modified various bits of F2 to suit his purposes, one way to catch those modifications is, before updating anything, to compare the mission files with the files from clean F2 2-6 with WinMerge. You can download the clean files for F2 2-6-1 from here for example, sans Norrin's revive. Just click on the zip button.

Re: How to update F2 2-6-0+ Missions to F2 2-7-0

Posted: Mon Dec 17, 2012 4:53 pm
by wolfenswan
Black Mamba wrote:Seems like you're missing harakka's Join Group Action in your tuto!
You were right, thanks. Fixed.

Re: How to update F2 2-6-0+ Missions to F2 2-7-0

Posted: Fri Jan 04, 2013 2:16 am
by fer
Oops! Looks like your replacement code bloc for the backpacks selector in description.ext was missing the lines:

Code: Select all

class Params
{
This caused ArmA 2 to CTD when you attempted to create a local server! Fixed the OP.

Re: How to update F2 2-6-0+ Missions to F2 2-7-0

Posted: Fri Jan 04, 2013 10:38 am
by wolfenswan
You're right. there was a cosmetical change in F2 that tripped me up. Updated OP to reflect that change and also added a "game crashes after updating" section.

Re: How to update F2 2-6-0+ Missions to F2 2-7-0

Posted: Sat Jan 05, 2013 6:57 pm
by Macaco
fer wrote:Oops! Looks like your replacement code bloc for the backpacks selector in description.ext was missing the lines:

Code: Select all

class Params
{
This caused ArmA 2 to CTD when you attempted to create a local server! Fixed the OP.
Well at least now I know it wasn't my mistyping that caused the errors. Thanks for the fix!

Edit1:
In your fix for

Code: Select all

class Params
{
You chopped off the of the backpack script instead of changing it to the 2-7-0 script.

Edit2:
Also f_assignGear_*** or assignGear_*** should be folk_assignGear_*** and f_setGroupID.sqf should be folk_setGroupID.sqf

Edit3:
It's also missing the new f\common\f_briefing_cdf, gue, ins, ru, and usmc. Those cause a CTD if missing due to the #includes