Jump to content

SavePOIState: Difference between revisions

From CMM Wiki
SavePOIState – created via PowerShell script (2025-11-11T21:12:29Z)
Tag: Recreated
 
m SavePOIState – created via PowerShell script (2026-06-24T22:27:03Z)
 
Line 1: Line 1:
{{Template:FunctionInfo|fName=          SavePOIState|fDescription=  Saves the current state of CMM.ACTIVEPOI and CMM.ACTIVEPOINAMES to persistent JSON files, using provided file paths or default locations. If default paths are detected, a warning is issued and no saving occurs.|parentFile=    cmm.persistence.lua|syntax=        CMM.SavePOIState(ACTIVEPOI <string|nil>, ACTIVEPOINAMES <string|nil>)|return=        nil|returnDesc=    Returns nothing after saving both persistence files or issuing a warning if default paths are used.|example=        CMM.SavePOIState("CMM.TEMP\PERSISTENCE\CUSTOM.ACTIVEPOI.json", "CMM.TEMP\PERSISTENCE\CUSTOM.ACTIVEPOINAMES.json")|exampleDesc=    Saves CMM.ACTIVEPOI and CMM.ACTIVEPOINAMES to custom persistence files, logging success messages and avoiding default path warnings.|related=        |note=          |envType= CMM|par1=        string or nil ACTIVEPOI|optType1=    string or nil|optName1=    ACTIVEPOI|desc1=      Path to the ACTIVEPOI persistence file, or nil to use default location.|par2=        string or nil ACTIVEPOINAMES|optType2=    string or nil|optName2=    ACTIVEPOINAMES|desc2=      Path to the ACTIVEPOINAMES persistence file, or nil to use default location.}}
{{Template:FunctionInfo|fName=          SavePOIState|fDescription=  Saves the current state of CMM.ACTIVEPOI and CMM.ACTIVEPOINAMES to persistent JSON files, using provided file paths or default locations. If default paths are detected, a warning is issued and no saving occurs.|parentFile=    cmm.persistence.lua|syntax=        CMM.SavePOIState(ACTIVEPOI <string|nil>, ACTIVEPOINAMES <string|nil>)|return=        nil|returnDesc=    Returns nothing after saving both persistence files or issuing a warning if default paths are used.|example=        CMM.SavePOIState("CMM.TEMP\PERSISTENCE\CUSTOM.ACTIVEPOI.json", "CMM.TEMP\PERSISTENCE\CUSTOM.ACTIVEPOINAMES.json")|exampleDesc=    Saves CMM.ACTIVEPOI and CMM.ACTIVEPOINAMES to custom persistence files, logging success messages and avoiding default path warnings.|related=        |note=          |envType= CMM}}

Latest revision as of 12:27, 24 June 2026

Return to CMM Command Reference
Environment: Mission Scripting
Function: SavePOIState
Function Description: Saves the current state of CMM.ACTIVEPOI and CMM.ACTIVEPOINAMES to persistent JSON files, using provided file paths or default locations. If default paths are detected, a warning is issued and no saving occurs.
File Location: cmm.persistence.lua
Syntax: CMM.SavePOIState( )
Return Value: nil
Parameters: Name Description
Example: CMM.SavePOIState("CMM.TEMP\PERSISTENCE\CUSTOM.ACTIVEPOI.json", "CMM.TEMP\PERSISTENCE\CUSTOM.ACTIVEPOINAMES.json")
Example Description: Saves CMM.ACTIVEPOI and CMM.ACTIVEPOINAMES to custom persistence files, logging success messages and avoiding default path warnings.
Related Functions:
Notes: