Profile: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[[Cc]ategory:ArmA:[ _]?([^|]+)\]\]" to "{{GameCategory|arma1|$1}}") |
Lou Montana (talk | contribs) m (Text replacement - "\{\{( *)Important( *)\|" to "{{$1Feature$2|$2important$2|") |
||
Line 74: | Line 74: | ||
Once set, you can retrieve the variable using: | Once set, you can retrieve the variable using: | ||
[[private]] _myVar = [[profileNamespace]] [[getVariable]] "myVariable"; | [[private]] _myVar = [[profileNamespace]] [[getVariable]] "myVariable"; | ||
{{ | {{Feature|important|Do not save large amount of data to the profile: the larger the profile file gets, the slower it loads!}} | ||
Revision as of 02:06, 7 February 2021
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 |
---|---|---|---|
1.00 | Arma: Cold War Assault | Arma: CWA directory\Users\ProfileName\
|
N/A |
1.00 | Armed Assault | My Documents\ArmA\
|
*.ArmAProfile |
1.00 | Arma 2 | My Documents\Arma 2\
|
*.ArmA2Profile |
1.51 | Arma 2: Operation Arrowhead | *.ArmA2OAProfile | |
1.00 | Take On Helicopters | My Documents\Take On Helicopters\
|
*.TakeOnHProfile |
1.00 | Arma 3 | My Documents\Arma 3\
|
*.Arma3Profile |
Contents
Files
- ProfileName.Extension - file with all basic profile settings. Commonly reffered 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.
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:
saveProfileNamespace
Once set, you can retrieve the variable using:
private _myVar = profileNamespace getVariable "myVariable";