Farm Sim UK Logo
Home Mods Knowledge Base About Register
Home Mods Directory Data Dump

Data Dump

PC Only
Created by: w33zl
Report this mod
The main purpose of this mod is to save the global tables, functions, classes and variables from Farming Simulator to well-formed Lua files. Use these files to better understand the Farming Simulator object model through reverse engineering (especially useful until the official documentation is released).

With these global objects as a starting point, you can then use the console command 'dtSaveTable' from the mod 'Developer PowerTools' to save whole Lua tables (and full table hierarchies) for further analysis.

E.g. if the output of Data Dump contains a global table called 'g_gui' you can then execute the console command 'dtSaveTable g_gui g_gui.lua 10' to save the g_gui table to a file called g_gui.lua with a max dept of 10 levels.

USAGE:
1. Open the developer console in FS.
2. Type 'ddDump' and hit [ENTER]
3. Review the files in the '..\Documents\My Games\FarmingSimulator2022\modSettings\FS25_000_DataDump' folder
4. (optional) Execute 'ddSaveGlobalTables {maxDepth} {forceDeep}' - this will automatically export all global "g_*" tables as well as specifically the "g_currentMission" and "g_localPlayer" in deeper table structures (the ddDump command exports a shallow strucutre for performance reasons)
5. (optional) Run 'dtSaveTable {tableName} {luaFileName} {maxDepth}' - this will export the specified table {tableName} with {maxDepth} number of levels to the file {luaFileName}

If you have any issues check out my GitHub page.
Screenshot 1
Screenshot 2
Screenshot 3

Screenshot 1

Screenshot 2

Screenshot 3

Screenshot 1
Screenshot 2
Screenshot 3

Screenshot 1

Screenshot 2

Screenshot 3

Mod Information

Game: Farming Simulator 25
Brand: n/a
Categories:
Gameplay
Contributors:
Added: Dec 9, 2024
Last Updated: Dec 9, 2024
Latest Version: 1.0.0.0
Crossplay: No

Version History

Version 1.0.0.0

Dec 9, 2024

Initial release.

We value your privacy

We use cookies to keep you logged in, remember your preferences, and understand how people use Farm Sim UK through Google Analytics. You can accept all cookies, reject non-essential ones, or choose exactly which types to allow. Read our Cookie Policy and Privacy Policy to learn more.

Cookie preferences

Strictly necessary

Session management, security (CSRF), and your cookie preference. Cannot be disabled.

Always on

Analytics (Google Analytics)

Helps us understand which pages are popular and how visitors navigate the site. No personal data is sold.