Jump to content

Dump.LUATable

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (dump.LUATable – created via PowerShell script (2025-11-11T21:12:49Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: dump.LUATable
Function Description: Dumps a Lua table to a specified file using table.serialize, ensuring proper validation and directory creation. Handles table input and file path, logging warnings if inputs are invalid and writing the serialized content to the target location.
File Location: cmm.tools.lua
Syntax: CMM.dump.LUATable( table TBL , string FullPath )
Return Value: nil
Parameters: Name Description
TBLTable to be serialized and written to a file. Must be a valid table structure.
FullPathFull file path where the Lua table will be saved. If invalid or missing, defaults to CMM.dump.Directory.
Example: CMM.dump.LUATable(CMM, "C:\test123\file.lua")
Example Description: Demonstrates dumping the CMM table to a Lua file located at C:\test123\file.lua, ensuring proper directory creation and file writing.
Related Functions:
Notes: