ORBAT Viewer – Arma 3

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fixed squished Functions section, added in previous)
(Added expandable spoilers for valid attributes section and a header, shrunk Functions section to link to Function Group Strategic, cleaned up Texture section, added Size1->11 option info)
Line 14: Line 14:
              
              
  side = "West"; {{codecomment|// Unit side from CfgChainOfCommand >> Sides}}
  side = "West"; {{codecomment|// Unit side from CfgChainOfCommand >> Sides}}
  size = "Division"; {{codecomment|// Unit size from CfgChainOfCommand >> Sizes}}
  size = "Division"; {{codecomment|// Unit size from CfgChainOfCommand >> Sizes. Displays relevant icon above the Type icon}}
  type = "HQ"; {{codecomment|// Unit type from CfgChainOfCommand >> Types}}
  type = "HQ"; {{codecomment|// Unit type from CfgChainOfCommand >> Types}}
  insignia = "\ca\missions_f\data\orbat\7thInfantry_ca.paa"; {{codecomment|// Unit insignia, displayed in ORBAT background and in tooltip}}
  insignia = "\ca\missions_f\data\orbat\7thInfantry_ca.paa"; {{codecomment|// Unit insignia, displayed in ORBAT background and in tooltip}}
Line 48: Line 48:
  };
  };


Possible values of ''side'' attribute:
 
===Valid Attributes===
'''Side''':
 
<spoiler>
* West
* West
* East
* East
Line 54: Line 58:
* Civilian
* Civilian
* Unknown
* Unknown
</spoiler>


Possible values of ''size'' attribute:
''Size''':
 
<spoiler>
* Army
* Army
* ArmyGroup
* ArmyGroup
Line 73: Line 80:
* Squadron
* Squadron
* Troop
* Troop
* Size1->11 (Ex, Size1 [Will not display an size-icon indicator, such as Ø])
</spoiler>


Possible values of ''type'' attribute:
Valid '''type''' attributes:
 
<spoiler>
* Airborne
* Airborne
* Armored
* Armored
Line 99: Line 110:
* UAV
* UAV
* Unknown
* Unknown
</spoiler>


Possible values of ''rank'' attribute:
Valid '''rank''' attributes:
 
''Note: Arma 3 units cannot be a "General" rank; however, it is a valid ORBAT attribute. Uses a Star as the rank-icon.''
 
<spoiler>
* Private
* Private
* Corporal
* Corporal
Line 109: Line 125:
* Colonel
* Colonel
* General
* General
</spoiler>


=== Module Parameters ===
=== Module Parameters ===
Line 118: Line 135:


==== CfgORBAT Ceiling ====
==== CfgORBAT Ceiling ====
The highest superior unit to display in the ORBAT viewer while this group is selected.
The highest superior unit to display in the ORBAT viewer while this group is selected. If blank, the ``CfgORBAT Path`` unit is displayed as the ceiling.


'''Example:'''
'''Example:'''
Line 124: Line 141:


==== Tags ====
==== Tags ====
 
'''TODO'''
 


==== Texture ====
==== Texture ====
As {{Inline code|texture}} is treated as a ''new'' texture (rather than an image, as icon is), Arma needs a direct path to it. Example,  
As '''texture''' is treated as a ''new'' texture (rather than an image, as icon is), Arma needs a direct path to it. Example,  
<code>C:\Users\Kerry\Documents\Arma 3\Kerry\missions\MyMission.Stratis</code>
<code>C:\Users\Kerry\Documents\Arma 3\Kerry\missions\MyMission.Stratis</code>


Line 141: Line 157:


Thanks to [http://killzonekid.com/arma-scripting-tutorials-mission-root/| KK's blog] for solving the above issue.
Thanks to [http://killzonekid.com/arma-scripting-tutorials-mission-root/| KK's blog] for solving the above issue.


==== Functions ====
==== Functions ====
* [[BIS_fnc_ORBATAddGroupOverlay]]
See [https://community.bistudio.com/wiki/Category:Function_Group:_Strategic:| Function Group: Strategic] for relevant functions.
* [[BIS fnc ORBATAnimate]]
* [[BIS fnc ORBATConfigPreview]]
* [[BIS fnc ORBATGetGroupParams]]
* [[BIS fnc ORBATOpen]]
* [[BIS fnc ORBATRemoveGroupOverlay]]
* [[BIS fnc ORBATSetGroupFade]]
* [[BIS fnc ORBATSetGroupParams]]
* [[BIS fnc ORBATTooltip]]


=== Other ===
=== Other ===

Revision as of 01:11, 24 May 2018

A3 ORBATViewer.jpg

Config

class CfgORBAT
{
	class 7thInfantry
	{
		id = 7; // Unit ID
		idType = 0; // Unit ID type
		 // 0 - show as ordinal number, e.g. "7th" (default)
		 // 1 - show as roman numeral, e.g. "VII"
		 // 2 - show as NATO phonetical alphabet word, e.g. "Golf"
                // 3 - show as color, e.g. "Red"
           
		side = "West"; // Unit side from CfgChainOfCommand >> Sides
		size = "Division"; // Unit size from CfgChainOfCommand >> Sizes. Displays relevant icon above the Type icon
		type = "HQ"; // Unit type from CfgChainOfCommand >> Types
		insignia = "\ca\missions_f\data\orbat\7thInfantry_ca.paa"; // Unit insignia, displayed in ORBAT background and in tooltip
		colorInsignia[] = {0,0,1,1}; // Insignia image color (white default), can be either RGBA array, or class from CfgMarkerColors
		commander = "Armstrong"; // Name of unit commander. Can be either direct name, or class from CfgWorlds >> GenericNames (random name from the list is then selected)
		commanderRank = "GENERAL"; // Rank of unit commander (by default selected based on unit size)
		tags[] = {BIS,USArmy,Kerry,Hutchison,Larkin}; // Group tags. When opening ORBAT viewer, user can define what tags will be accepted.
		text = "%1 Combat Technology Research %3"; // Custom text and short text, can still use some arguments when defined:
		// 	%1 - ID (e.g. "7th")
		// 	%2 - Type (e.g. "Infantry")
		// 	%3 - Size (e.g. "Division")
		textShort = "%1 CTR %3";
		texture = "\ca\missions_f\data\orbat\customTexture_ca.paa"; // Custom texture, will replace icon set by 'type' param.
		color[] = {0,0,1,1}; // Custom color, will replace color set by 'side' param. Can be either RGBA array, or class from CfgMarkerColors
                description= "All of your text would go here."; // A brief description of the group or unit.
		assets[] = {{B_Heli_Transport_03_F,5},{B_Heli_Light_01_F,3},{B_Heli_Light_01_armed_F,4},B_Heli_Transport_01_camo_F}; // Will display pictures of all available assets to the unit commander
		subordinates[] = {2ndBCT}; // Subordinates, searched on the same level as this class.
 		
               // When 'subordinates' are missing, child classes will be used. They can have their own subs - number of tiers is not limited.
		class 1stBCT
		{
			id = 1;
			type = "Armored";
			size = "BCT";
			side = "West";
			commander = "NATOMen";
			tags[] = {"BLUFOR", "USArmy","Kerry"};
 		};
	};
	class 2ndBCT
	{
	};
};


Valid Attributes

Side:

  • West
  • East
  • Resistance
  • Civilian
  • Unknown

Size':

  • Army
  • ArmyGroup
  • Battalion
  • BCT
  • Brigade
  • Company
  • Corps
  • Division
  • FireTeam
  • HBCT
  • IBCT
  • Platoon
  • Regiment
  • Section
  • Squad
  • Squadron
  • Troop
  • Size1->11 (Ex, Size1 [Will not display an size-icon indicator, such as Ø])

Valid type attributes:

  • Airborne
  • Armored
  • Artillery
  • Assault
  • AttackRecon
  • AviationSupport
  • Cavalry
  • CombatAviation
  • Fighter
  • GeneralSupport
  • Helicopter
  • HQ
  • Infantry
  • Maintenance
  • Maritime
  • MechanizedInfantry
  • Medical
  • Mortar
  • MotorizedInfantry
  • Recon
  • Service
  • Support
  • UAV
  • Unknown

Valid rank attributes:

Note: Arma 3 units cannot be a "General" rank; however, it is a valid ORBAT attribute. Uses a Star as the rank-icon.

  • Private
  • Corporal
  • Sergeant
  • Lieutenant
  • Captain
  • Major
  • Colonel
  • General

Module Parameters

CfgORBAT Path

The group you want this module to display.

Example:

missionconfigfile >> "CfgORBAT" >> "unitClassName" >> "subordinateUnitClassName"

CfgORBAT Ceiling

The highest superior unit to display in the ORBAT viewer while this group is selected. If blank, the ``CfgORBAT Path`` unit is displayed as the ceiling.

Example:

missionconfigfile >> "CfgORBAT" >> "unitClassName"

Tags

TODO

Texture

As texture is treated as a new texture (rather than an image, as icon is), Arma needs a direct path to it. Example, C:\Users\Kerry\Documents\Arma 3\Kerry\missions\MyMission.Stratis

However, as CfgORBAT is defined in description.ext, we cannot use SQF scripting like missionConfigFile. But we can define a global variable in description.ext using PreProcessor Commands to our mission's folder. In this case, MISSIONLOCATION.

__EXEC (MISSIONLOCATION = __FILE__ select [0, count __FILE__ - 15])

In our CfgORBAT, be it in a separate .hpp file or your description.ext, we can now define the path to our texture with the following:

texture = __EVAL(MISSIONLOCATION + "someFolder\SomeImage.paa");

Thanks to KK's blog for solving the above issue.

Functions

See Function Group: Strategic for relevant functions.

Other