7erra/Sandbox – User

From Bohemia Interactive Community
Jump to navigation Jump to search
(config viewer page)
(bis_fnc_arsenal variables)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{TOC|side}}
=== Variables ===
The Splendid Config Viewer™ is a way to access the contents of the game's current config.
This is a list of all the variables that are used by the Virtual Arsenal.
[[File:Config Viewer.png|thumb|The Splendid Config Viewer™'s UI in Arma 3.]]
{| class="wikitable"
|-
! colspan=3 | [[missionNamespace]]
|-
! Variable !! Data Type !! Explanation
|-
| BIS_fnc_arsenal_data || [[Array]] of arrays of [[String|strings]] || All available items that can be accessed in the Arsenal (not the actual content!). Format:<br>


= Interface =
== Classes List ==
On the left hand side you can find a list of all config classes that are currently loaded by the game. This includes the classes found in the [[Config.cpp/bin_File_Format|main config]] from the base game and mods, the [[campaignConfigFile|campaign's config]] and the [[Description.ext|missions's config]]. Selecting an entry from the list will show the attributes of the class in the right window. A plus to the left of the class indicates that it contains more subclasses. To expand it you can double click the entry. The classes are sorted alphabetically. Be aware that the list list cut off at the end. In case of long configs the last config entries can only be selected by selecting the last visible entry and then using the arrow keys to scroll further down.
== Bookmarks ==
Below the [[#Classes List|Classes List]] you can find your bookmarked configs. Double clicking on "&lt;Bookmark selected class&gt;" will add the currently selected entry to the list. To remove a bookmark you can select it and press DELETE on your keyboard. Double clicking on a bookmarked class will take you to the config.
== Attributes List ==
The right window displays the attributes of the currently selected class. The attributes are sorted alphabetically. The attributes are colored according to the data type of the attribute:
{| class="wikitable"
{| class="wikitable"
|-
|-
! Color !! Data Type
! Index !! Content
|-
| 0 || Primary Weapons
|-
| 1 || Secondary Weapons
|-
| 2 || Handguns
|-
| 3 || Uniforms
|-
|-
| <span style="color: green;">Green</span> || [[TokenNameValueTypes|Number]]
| 4 || Vests
|-
|-
| <span style="color: red;">Red</span> || [[TokenNameValueTypes|String]]
| 5 || Backpacks
|-
|-
| <span style="color: blue;">Blue</span> || [[TokenNameValueTypes|Array]]
| 6 || Headgear
|}
|-
 
| 7 || Goggles
Some attributes are indented a bit which means that those attribute have been [[Class_Inheritance|inherited]] from one of the parent classes. No indentation means that the attribute is specific or new to the config class.
|-
 
| 8 || NVGs
== Path Edit Field ==
|-
The content of this edit field can be used with commands such as [[configClasses]], [[configProperties]], etc.. When an attribute from the right window is selected it will also display the path to it which can be used with [[getText]], [[getNumber]] or [[getArray]].
| 9 || Binoculars
 
|-
== Parents Edit Field ==
| 10 || Maps
This field lists all the classes that the selected class is inheriting from. It is generated by [[BIS_fnc_returnParents]].
|-
 
| 11 || GPS
== Preview Class ==
|-
The classes from the following parent configs are supported:
| 12 || Radio
* CfgVehicles: Creates the given vehicle class at the position you are looking at
|-
* CfgWeapons: Creates the given weapon on the ground and also adds all magazines listed in the {{ic|magazines}} attributes
| 13 || Compass
 
|-
== Preview Param ==
| 14 || Watch
You can preview the following attributes:
* paa: If the attribute is a string and ends with "paa" it will open a window displaying the paa file
* RGBA color: If the attribute is a 4D array consisting of numbers only it will display the color
 
= Shortcuts =
The config viewer supports a very basic search functionality. If you focus either the classes list or the attributes list and start typing it will search for a match in the given list.
 
{| class="wikitable"
|-
|-
! Key !! Effect
| 15 || Face (empty)
|-
|-
| BACKSPACE || Go up one config level
| 16 || Voice (empty)
|-
|-
| ENTER || Expand the selected config
| 17 || Insignia (empty)
|}
 
== Classes List ==
{| class="wikitable"
|-
|-
! Key !! Effect
| 18 || Optic attachments (empty)
|-
|-
| CTRL + X || Copy path in viewer format
| 19 || Side attachments (empty)
|-
|-
| CTRL + SHIFT + X || Copy path in config format
| 20 || Muzzle attachments (empty)
|-
|-
| CTRL + C || Copy config name
| 21 || Compatible magazines (empty)
|-
|-
| CTRL + SHIFT + C || Copy the names of the subclasses
| 22 || Grenades
|-
|-
| CTRL + V || Takes you to the config previously saved to the clipboard with CTRL + X
| 23 || Placeables
|}
 
== Attributes List ==
{| class="wikitable"
|-
|-
! Key !! Effect
| 24 || Miscellaneous
|-
|-
| CTRL + C || Copies the displayed attribute
| 25 || Bipod attachments (empty)
|-
|-
| CTRL + SHIFT + C || Copies the entire content of the list
| 26 || All magazines
|}
 
|}
|}

Latest revision as of 01:11, 6 September 2021

Variables

This is a list of all the variables that are used by the Virtual Arsenal.

missionNamespace
Variable Data Type Explanation
BIS_fnc_arsenal_data Array of arrays of strings All available items that can be accessed in the Arsenal (not the actual content!). Format:
Index Content
0 Primary Weapons
1 Secondary Weapons
2 Handguns
3 Uniforms
4 Vests
5 Backpacks
6 Headgear
7 Goggles
8 NVGs
9 Binoculars
10 Maps
11 GPS
12 Radio
13 Compass
14 Watch
15 Face (empty)
16 Voice (empty)
17 Insignia (empty)
18 Optic attachments (empty)
19 Side attachments (empty)
20 Muzzle attachments (empty)
21 Compatible magazines (empty)
22 Grenades
23 Placeables
24 Miscellaneous
25 Bipod attachments (empty)
26 All magazines