description
The purpose of this mod is to save global tables, functions, classes, and variables from Farming Simulator into well-structured Lua files. These files can help you better understand the Farming Simulator object model through reverse engineering, especially useful until the official documentation becomes available.
Using these global objects as a starting point, you can utilize the console command 'dtSaveTable' from the 'Developer PowerTools' mod to save entire Lua tables (and their full hierarchies) for further analysis.
Example: If the Data Dump output contains a global table named 'g_gui', you can execute the console command: dtSaveTable g_gui g_gui.lua 10
to save the 'g_gui' table to a file named g_gui.lua
with a maximum depth of 10 levels.
Usage Instructions:
- Open the developer console in FS.
- Type
ddDump
and press [ENTER]. - Review the files in the
..\Documents\My Games\FarmingSimulator2022\modSettings\FS25_000_DataDump
folder. - (Optional) Execute
ddSaveGlobalTables {maxDepth} {forceDeep}
to automatically export all global "g_*" tables, including "g_currentMission" and "g_localPlayer", in deeper table structures (theddDump
command exports a shallow structure for performance reasons). - (Optional) Run
dtSaveTable {tableName} {luaFileName} {maxDepth}
to export the specified table{tableName}
with{maxDepth}
levels to the file{luaFileName}
.
If you encounter any issues, visit my GitHub page.
Credits
w33zl-
09 Dec 17:37Version 1.0.0.0
0 Comments for Data Dump