MIST dump G
From DCS World Wiki - Hoggitworld.com
mist.debug.dump_G
| Added with: Mist 1.0 |
| Description |
| Dumps the global environment (using mist.utils.tableShow) to Saved Games/DCS/Logs/fileName. The optional value removes entries for mist, slmod, env.mission, env.warehouses, country.by_idx, and country.by_country. These are entries I commonly remove to simplify the file as they can add quite a lot of extra data to the file. |
| Syntax |
| nothing mist.debug.dump_G(string fileName , boolean simple ) |
| Valid Input Values: |
| fileName: "whatever.lua"
simple: true |
| Return value: |
| nothing |
| Return example: |
| nothing |
| Usage Examples: |
|
| Notes: |
| For functions mist.debug.dump_G, mist.debug.writeData, and mist.debug.dumpDBs, you must (temporarily!) unprotect the Lua environment and enable the io and lfs libraries. You do this by commenting out the sanitizeModule calls in <DCS main directory>/Scripts/MissionScripting.lua. Just be sure to re-protect yourself later when you run missions from untrusted sources. |
| Related Functions |
| writeData, dumpDBs, dump_G, writeGroup, writeTypes, changeSetting |
