saveProfileNamespace: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Replace warnings)
(Some improvements to the description, added links to the Profile page)
Line 9: Line 9:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Saves the variables stored in [[profileNamespace]] to the persistent active user profile.  
| Saves all variables stored in [[profileNamespace]] to the (persistently stored) active [[Profile]].


{{Important |
{{Warning|[[saveProfileNamespace]] triggers a file operation. File operations are very slow (even on SSDs), as such it is not recommended to use this command too frequently (i.e. several times per second).}}
* this is a file operation, which makes it expensive! It is not recommended to do this at a high frequency in a loop for example. It is however also recommended not to change a large amount of variables and wait long before saving, because certain game crashes may cause a loss of data.
{{Important|Do not save large amounts of data to the profile; the larger the profile file gets, the slower it loads!}}
* saving a lot of data can quickly increase the size of the profile variables file, so keep an eye on this.}}
{{Feature|tkoh|Heliport status (used in the Career mode for example) is stored in the file that is modified by this command, so be mindful of this to avoid losing data and progress.}}
 
|DESCRIPTION=
{{Feature|tkoh|Heliport status (used in the Career mode for example) is stored in this file, so be mindful of working with this technology to avoid losing data and progress.}} |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 25: Line 24:
|x1= <code>saveProfileNamespace;</code> |=
|x1= <code>saveProfileNamespace;</code> |=


| [[profileNamespace]] |SEEALSO=
| [[profileNamespace]], [[Profile]] |SEEALSO=


}}
}}
Line 33: Line 32:
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->


<dd class="notedate">17:34, 25 November 2011‎</dd>
<dt class="note">Unknown
<dt class="note">{{User|Joris}}</dt>
<dd class="note">Variables are also saved when the game is quit.
<dd class="note">Variables are also saved when the game is quit.



Revision as of 19:09, 27 December 2020

Hover & click on the images for description

Description

Description:
Saves all variables stored in profileNamespace to the (persistently stored) active Profile.
saveProfileNamespace triggers a file operation. File operations are very slow (even on SSDs), as such it is not recommended to use this command too frequently (i.e. several times per second).
Do not save large amounts of data to the profile; the larger the profile file gets, the slower it loads!
Take On Helicopters
Heliport status (used in the Career mode for example) is stored in the file that is modified by this command, so be mindful of this to avoid losing data and progress.
Groups:
System

Syntax

Syntax:
saveProfileNamespace
Return Value:
Nothing

Examples

Example 1:
saveProfileNamespace;

Additional Information

See also:
profileNamespaceProfile

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Unknown
Variables are also saved when the game is quit.

Bottom Section