Data Dump - Thumbnail 1
1 / 3
Virus checked
v1.0.0.0 latest
Free Mod

Data Dump

Rating
0 Ratings
397
Downloads
8.0K
Views
0
Thanks

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:

  1. Open the developer console in FS.
  2. Type ddDump and press [ENTER].
  3. Review the files in the ..\Documents\My Games\FarmingSimulator2022\modSettings\FS25_000_DataDump folder.
  4. (Optional) Execute ddSaveGlobalTables {maxDepth} {forceDeep} to automatically export all global "g_*" tables, including "g_currentMission" and "g_localPlayer", in deeper table structures (the ddDump command exports a shallow structure for performance reasons).
  5. (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.

Comments

You must be logged in to comment.

Log in

No comments yet.