LoadSupportTable: Difference between revisions
Appearance
Ozdeadmeat (talk | contribs) LoadSupportTable – created via PowerShell script (2025-11-11T21:12:30Z) Tag: Recreated |
Ozdeadmeat (talk | contribs) m LoadSupportTable – created via PowerShell script (2026-06-24T22:27:04Z) |
||
| Line 1: | Line 1: | ||
{{Template:FunctionInfo|fName= LoadSupportTable|fDescription= Loads an air support configuration table from a JSON file in the mission directory, clears specific marker fields to prevent conflicts, and falls back to default values if the file is missing or invalid.|parentFile= cmm.persistence.lua|syntax= CMM.LoadSupportTable(FilePath <string>)|return= nil|returnDesc= Returns nothing.|example= CMM.LoadSupportTable("Custom/ | {{Template:FunctionInfo|fName= LoadSupportTable|fDescription= Loads an air support configuration table from a JSON file in the mission directory, clears specific marker fields to prevent conflicts, and falls back to default values if the file is missing or invalid.|parentFile= cmm.persistence.lua|syntax= CMM.LoadSupportTable(FilePath <string>)|return= nil|returnDesc= Returns nothing.|example= CMM.LoadSupportTable("Custom/CMM.PERSISTENCE_SUPPORTAIRCRAFT.json")|exampleDesc= Loads a custom air support table from a specified JSON file, clears MarkerIdName and MarkerIdOrbit fields to avoid data corruption, and uses defaults if the file is missing.|related= |note= |envType= CMM|par1= string FilePath|reqType1= string|reqName1= FilePath|desc1= Optional path to the CMM.PERSISTENCE_SUPPORTAIRCRAFT.json file; if not provided, defaults to CMM.MISSION.PDir .. "CMM.PERSISTENCE_SUPPORTAIRCRAFT.json".}} | ||
Latest revision as of 12:27, 24 June 2026
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | LoadSupportTable | |
| Function Description: | Loads an air support configuration table from a JSON file in the mission directory, clears specific marker fields to prevent conflicts, and falls back to default values if the file is missing or invalid. | |
| File Location: | cmm.persistence.lua | |
| Syntax: | CMM.LoadSupportTable( string FilePath ) | |
| Return Value: | nil | |
| Parameters: | Name | Description |
| FilePath | Optional path to the CMM.PERSISTENCE_SUPPORTAIRCRAFT.json file; if not provided, defaults to CMM.MISSION.PDir .. "CMM.PERSISTENCE_SUPPORTAIRCRAFT.json". | |
| Example: | CMM.LoadSupportTable("Custom/CMM.PERSISTENCE_SUPPORTAIRCRAFT.json") | |
| Example Description: | Loads a custom air support table from a specified JSON file, clears MarkerIdName and MarkerIdOrbit fields to avoid data corruption, and uses defaults if the file is missing. | |
| Related Functions: | ||
| Notes: | ||