Introduction:

All systems, files and extracts are cationstudio’s intellectual property and only authorized persons and server are allowed to use it. Files and extracts from other authors are exceptions. In these exceptions, you have to apply their copyright.
A working installation of ArmA Life RPG Framework is required for a successful installation. Modifying the ArmA Life RPG Framework could cause errors – feel free to contact our
support if you have a problem.

This guide assumes that the cation core system is installed.

Make sure to make a backup before you go on!

Installation:

Step 1

Copy the attached folder “reporting” in your “cation” folder that can be found in the  root folder (subsequently called <mission>) of your mission.

Step 2

Open <mission>/cation/cation_functions.cpp and insert

#include "reporting\functions.cpp"

and save the file.

Step 3

Open <mission>/cation/cation_master.cpp and insert

#include "reporting\config.cpp"

and save the file.

Step 4

Open <mission>/cation/cation_remoteExec.cpp and insert

#include "reporting\remoteExec.cpp"

and save the file.

Step 5

Create two new buttons to your y-menu (<mission>/dialog/player_inv.hpp). Insert the following code to the control center button

onButtonClick = "closeDialog 0; [] call cat_reporting_fnc_createDialogControlCenter;";

and insert the next code to the unit’s radio button:

onButtonClick = "closeDialog 0; [] call cat_reporting_fnc_createDialogUnit;";

Afterwards save the file.

Example:

class FMSCenter: Life_RscButtonMenu {    idc = 2017;    text = "Control Center";    onButtonClick = "closeDialog 0; [] call cat_reporting_fnc_createDialogControlCenter;";    x = 0.1 + (6.25 / 19.8) + (1 / 250 / (safezoneW / safezoneH));    y = 0.805;    w = (6.25 / 40);    h = (1 / 25);};
class FMS: Life_RscButtonMenu {    idc = 2019;    text = "Radio";    onButtonClick = "closeDialog 0; [] call cat_reporting_fnc_createDialogUnit;";    x = 0.1 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));    y = 0.805;    w = (6.25 / 40);    h = (1 / 25);};

Step 6

In your <mission>/core/pmenu/fn_p_openMenu.sqf add to case civilian

ctrlShow[2019,false];ctrlShow[2017,false];

and to case west

if ((call life_coplevel) &gt;&gt; (getNumber(missionConfigFile &gt;&gt; "Cation_Reporting" &gt;&gt; "controlCenterMinLevelWest"))) then {    ctrlShow[2017,false];};

and to case independent

if ((call life_mediclevel) &gt;&gt; (getNumber(missionConfigFile &gt;&gt; "Cation_Reporting" &gt;&gt; "controlCenterMinLevelIndependent"))) then {    ctrlShow[2017,false];};

and save the file.

That’s it!

You have installed the cationstudio reporting system successfully!

Configuration

You can adjust settings in <mission>/cation/reporting/config.cpp.

In the settings it is important to set ArmA Life version to your used version.

Texts and translations can be edited in <mission>/cation/reporting/language.cpp.


0 Comments

Leave a Reply