Profile: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Category:Arma 2: Editing" to "{{GameCategory|arma2|Editing}}")
m (Text replacement - "{{arma2}}" to "{{GameCategory|arma2|link= y}}")
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{SideTOC}}
{{TOC|side}}
All [[Real Virtuality]] games allow you to create multiple profiles. Personal settings like video configuration, campaign progress or controls assigments are saved in profile files.
All [[Real Virtuality]] games allow you to create multiple profiles. Personal settings like video configuration, campaign progress or controls assigments are saved in profile files.


Line 17: Line 17:
| {{GVI|ofp|1.00}}
| {{GVI|ofp|1.00}}
| '''[[Arma: Cold War Assault]]'''
| '''[[Arma: Cold War Assault]]'''
| <code>{{Color|green|Arma: CWA directory}}\Users\{{Color|green|ProfileName}}\</code>
| <code style="display: block">{{Color|green|Arma: CWA directory}}\Users\{{Color|green|ProfileName}}\</code>
| {{n/a}}
| {{n/a}}
|-
|-
| {{GVI|arma|1.00}}
| {{GVI|arma1|1.00}}
| '''[[{{arma}}]]'''
| '''[[:Category:ArmA: Armed Assault|{{arma1}}]]'''
| <code>My Documents\ArmA\<br>My Documents\ArmA Other Profiles\{{Color|green|ProfileName}}\</code>
| <code style="display: block">My Documents\ArmA\<br>My Documents\ArmA Other Profiles\{{Color|green|ProfileName}}\</code>
| <tt>{{Color|darkorange|*.ArmAProfile}}</tt>
| {{hl|{{Color|darkorange|*.ArmAProfile}}}}
|-
|-
| {{GVI|arma2|1.00}}
| {{GVI|arma2|1.00}}
| '''[[{{arma2}}]]'''
| '''{{GameCategory|arma2|link= y}}'''
| rowspan="2" | <code>My Documents\ArmA 2\<br>My Documents\ArmA 2 Other Profiles\{{Color|green|ProfileName}}\</code>
| rowspan="2" | <code style="display: block">My Documents\Arma 2\<br>My Documents\Arma 2 Other Profiles\{{Color|green|ProfileName}}\</code>
| <tt>{{Color|darkorange|*.ArmA2Profile}}</tt>
| {{hl|{{Color|darkorange|*.ArmA2Profile}}}}
|-
|-
| {{GVI|arma2oa|1.51}}
| {{GVI|arma2oa|1.50}}
| '''[[{{arma2oa}}]]'''
| '''[[{{arma2oa}}]]'''
| <tt>{{Color|darkorange|*.ArmA2OAProfile}}</tt>
| {{hl|{{Color|darkorange|*.ArmA2OAProfile}}}}
|-
|-
| {{GVI|tkoh|1.00}}
| {{GVI|tkoh|1.00}}
| '''[[{{tkoh}}]]'''
| '''[[{{tkoh}}]]'''
| <code>My Documents\Take On Helicopters\<br>My Documents\Take On Helicopters Other Profiles\{{Color|green|ProfileName}}\</code>
| <code style="display: block">My Documents\Take On Helicopters\<br>My Documents\Take On Helicopters Other Profiles\{{Color|green|ProfileName}}\</code>
| <tt>{{Color|darkorange|*.TakeOnHProfile}}</tt>
| {{hl|{{Color|darkorange|*.TakeOnHProfile}}}}
|-
|-
| {{GVI|arma3|1.00}}
| {{GVI|arma3|1.00}}
| '''[[{{arma3}}]]'''
| '''{{GameCategory|arma3|link= y}}'''
| <code>My Documents\Arma 3\<br>My Documents\Arma 3 - Other Profiles\{{Color|green|ProfileName}}\</code>
| <code style="display: block">My Documents\Arma 3\<br>My Documents\Arma 3 - Other Profiles\{{Color|green|ProfileName}}\</code>
| <tt>{{Color|orange|*.Arma3Profile}}</tt>
| {{hl|{{Color|darkorange|*.Arma3Profile}}}}
|}
|}


Line 50: Line 50:
=== Files ===
=== Files ===


* '''{{Color|green|ProfileName}}.{{Color|darkorange|Extension}}''' - file with all basic profile settings. Commonly reffered to as a '''profile file'''.
* '''{{Color|green|ProfileName}}.{{Color|darkorange|Extension}}''' - file with all basic profile settings. Commonly referred to as a '''profile file'''.
* '''{{Color|green|ProfileName}}.vars.{{Color|darkorange|Extension}}''' - file with scripted variables used by scenarios or modules. See [[#scripting|Scripting]] section below for more details. The file is binarized, which means it's encrypted and cannot be opened as a plain text and saved afterwards. This is to prevent cheating by editing values of certain variables.
* '''{{Color|green|ProfileName}}.vars.{{Color|darkorange|Extension}}''' - file with scripted variables used by scenarios or modules. See [[#scripting|Scripting]] section below for more details. The file is binarized, which means it is encrypted and cannot be opened as a plain text and saved afterwards. This is to prevent cheating by editing values of certain variables.
* '''{{Color|green|ProfileName}}.3den.{{Color|darkorange|Extension}}''' - [[Eden Editor]] specific settings.
* '''{{Color|green|ProfileName}}.3den.{{Color|darkorange|Extension}}''' - [[:Category:Eden Editor|Eden Editor]] specific settings.
* '''UserInfo.cfg''' - file with all basic profile settings used in Arma: CWA.
* '''UserInfo.cfg''' - file with all basic profile settings used in Arma: CWA.


Line 58: Line 58:


* '''''Compositions''''' - [[Eden_Editor:_Custom_Composition|custom compositions]] saved by the editor
* '''''Compositions''''' - [[Eden_Editor:_Custom_Composition|custom compositions]] saved by the editor
* '''''Missions''''' - scenarios saved by [[Eden Editor]]
* '''''Missions''''' - scenarios saved by [[:Category:Eden Editor|Eden Editor]]
* '''''MPMissions''''' - scenarios saved by [[Eden Editor]] when it was opened on a server
* '''''MPMissions''''' - scenarios saved by [[:Category:Eden Editor|Eden Editor]] when it was opened on a server
* '''''Saved''''' - savegames of scenarios and campaigns. Also contains local versions of subscribed Steam scenarios.
* '''''Saved''''' - savegames of scenarios and campaigns. Also contains local versions of subscribed Steam scenarios.
* '''''Screenshot''''' - folder where pictures are saved by [[screenshot]] command. By default limited to 250 MB to prevent abuse, see the command page for description on how to increase the size.
* '''''Screenshot''''' - folder where pictures are saved by [[screenshot]] command. By default limited to 250 MB to prevent abuse, see the command page for description on how to increase the size.
Line 65: Line 65:




{{ArgTitle|Scripting|2|{{GVI|tkoh|1.00}}{{GVI|arma3|1.00}}}}
{{ArgTitle|2|Scripting|{{GVI|tkoh|1.00}}{{GVI|arma3|1.00}}}}


You can save any variable to the profile using [[profileNamespace]] command.
You can save any variable to the profile using [[profileNamespace]] command.
This is used to preserve persistent information like character progress, resources or various mod settings.
This is used to preserve persistent information like character progress, resources or various mod settings.
[[profileNamespace]] [[setVariable]] ["myVariable", 1];
<sqf>profileNamespace setVariable ["myVariable", 1];</sqf>
This will save it to namespace, but not yet to the file itself, so restarting would not preserve the variable. To mirror the namespace into the file, call:
This will save it to namespace, but not yet to the file itself, so restarting would not preserve the variable. To mirror the namespace into the file, call:
[[saveProfileNamespace]]
<sqf>saveProfileNamespace;</sqf>
Once set, you can retrieve the variable using:
Once set, you can retrieve the variable using:
[[private]] _myVar = [[profileNamespace]] [[getVariable]] "myVariable";
<sqf>private _myVar = profileNamespace getVariable "myVariable";</sqf>
{{Important|Do not save large amount of data to the profile: the larger the profile file gets, the slower it loads!}}
{{Feature|important|Do not save large amount of data to the profile: the larger the profile file gets, the slower it loads!}}




[[Category:Operation Flashpoint: Editing]]
{{GameCategory|ofp|Editing}}
[[Category:ArmA: Editing]]
{{GameCategory|arma1|Editing}}
{{GameCategory|arma2|Editing}}
{{GameCategory|arma2|Editing}}
{{GameCategory|arma3|Editing}}
{{GameCategory|arma3|Editing}}
[[Category:Take On Helicopters: Editing]]
[[Category:Take On Helicopters: Editing]]

Latest revision as of 13:01, 19 March 2024

All Real Virtuality games allow you to create multiple profiles. Personal settings like video configuration, campaign progress or controls assigments are saved in profile files.


Directory

Path varies depending on a project, see following table for specific directories.

Green text means variable based on your local settings.

Icon Game Path Extension
Logo A0.png1.00 Arma: Cold War Assault Arma: CWA directory\Users\ProfileName\ N/A
Logo A1 black.png1.00 Armed Assault My Documents\ArmA\
My Documents\ArmA Other Profiles\ProfileName\
*.ArmAProfile
Logo A2.png1.00 Arma 2 My Documents\Arma 2\
My Documents\Arma 2 Other Profiles\ProfileName\
*.ArmA2Profile
A2 OA Logo.png1.50 Arma 2: Operation Arrowhead *.ArmA2OAProfile
tkoh logo small.png1.00 Take On Helicopters My Documents\Take On Helicopters\
My Documents\Take On Helicopters Other Profiles\ProfileName\
*.TakeOnHProfile
Arma 3 logo black.png1.00 Arma 3 My Documents\Arma 3\
My Documents\Arma 3 - Other Profiles\ProfileName\
*.Arma3Profile


Contents

Files

  • ProfileName.Extension - file with all basic profile settings. Commonly referred to as a profile file.
  • ProfileName.vars.Extension - file with scripted variables used by scenarios or modules. See Scripting section below for more details. The file is binarized, which means it is encrypted and cannot be opened as a plain text and saved afterwards. This is to prevent cheating by editing values of certain variables.
  • ProfileName.3den.Extension - Eden Editor specific settings.
  • UserInfo.cfg - file with all basic profile settings used in Arma: CWA.

Folders

  • Compositions - custom compositions saved by the editor
  • Missions - scenarios saved by Eden Editor
  • MPMissions - scenarios saved by Eden Editor when it was opened on a server
  • Saved - savegames of scenarios and campaigns. Also contains local versions of subscribed Steam scenarios.
  • Screenshot - folder where pictures are saved by screenshot command. By default limited to 250 MB to prevent abuse, see the command page for description on how to increase the size.
  • UserSaved - savegames of scenarios previewed in the editor.


Scripting

You can save any variable to the profile using profileNamespace command. This is used to preserve persistent information like character progress, resources or various mod settings.

profileNamespace setVariable ["myVariable", 1];

This will save it to namespace, but not yet to the file itself, so restarting would not preserve the variable. To mirror the namespace into the file, call:

Once set, you can retrieve the variable using:

private _myVar = profileNamespace getVariable "myVariable";

Do not save large amount of data to the profile: the larger the profile file gets, the slower it loads!