Developer PowerTools v1.0


Developer PowerTools v1.0


Developer PowerTools is a quality-of-life mod for modders that works well alongside Power Tools, Easy Dev Controls, Global Explorer and similar mods.
An improved style of visualizing in-game tables, together with the posibility to save tables to well-formed Lua files, opens up a new way of understanding the FS object model!

FEATURES:
– New console commands to restart the game (see below for details)
– Console command to print Lua table contents to either the console/log or a separate file
– Console command to clear the log file

CONSOLE COMMANDS:
– [NOTE*] dtRestart (or ‘r’): Restarts the game client using a soft restart (slightly faster than a hard reset)
– [NOTE*] dtRestartHard (or ‘rr’): Performs a hard reset (this will ensure everyhing is unloaded from memory)
– dtTable: Prints the contents of a Lua table to the console/log
– dtSaveTable: Save the contents of a Lua table to a file (3-4x times faster than printing a table to the log)
– dtVisualizeTable [beta]: An improved way of printing tables to the log, both faster, more memory efficient and visually improved.
– dtClearLog (or ‘cls’): Clears the log.txt file to get a fresh log (especially useful when using the restart command)

NOTE: Due to new limitations in FS25 automatic restart of current savegame is disabled until Giants re-enables this feature.

CAUTION!
The console commands to restart the game will do this -without- asking you to save your progress first. I.e. you risk loosing progress if you are not cautious!

SAVING TABLES
The ‘dtSaveTable’ allows you to quickly dump a Lua table to disk in a well formatted Lua file, meaning you can load this file as a source file in the Lua interpeter or in-game. This has several uses cases, especially to understand the FS object model.

Optionally you can choose the depth of the output, especially important when saving top level tables (e.g. g_currentMission) that may contain many child tabled and/or large tables. Thanks to a well optimized code it is still possible to save g_currentMission with some 5-6 levels of depth before the Lua engine starts to leak memory and becomes unstable (the default depth is set to 2).

Example:
To dump the g_currentMission table to a file you could use the command ‘dtSaveTable g_currentMission currentMission.lua 1’. This would export the g_currentMission table to a file named ‘currentMission.lua’ and only including the direct descendants of g_currentMission.

Note: due to security restrictions, the generated .lua file will be stored in your ‘My Games/FarmingSimulator2025/modSettings/FS22_000_DevTools’ folder.

PRINTING TABLES
Similar to ‘dtSaveTable’, the command ‘dtTable’ can be used to output a table to the log. It takes the table name as mandatory parameter and the maxDepth as an optional parameter (with a default value of 2).

Important! Due to the nature how FS prints to the log it is only recommended to fairly small tables and/or shallow structures (depth should not exceed 2-3). E.g. printing g_currentMission to the console with a depth of 4 will make FS consume some 10-15GB of system ram and then crash in a out-of-memory error.

If you need to print a deeper structure it is recommended to use ‘dtSaveTable’.


Author: w33zl


Report bugs in the comments and help modders improve this mod. Always check the comments, you can find a solution.


Helpful Information: How to install FS25 mods | FS25 System Requiremnts | FS25 Modding Tutorial | Giants Editor for FS25 | How to Convert mods | FS25 Cheats

More Misc mods


About Farming Simulator 25 mods
Farming Simulator 25 supports game modding for PC, Xbox, or PS5. FS25 Mod may change your game from small to complete changes. You can create a Farming Simulator 25 mod file and share it with our community. When is a good time to try Farming Simulator 25 mods? We recommend playing a game with these FS25 mods after you finish the Farming Simulator 25 starting pack and are bored with the game basics. So it's time to try new machines, such as harvesters or tractors, which are not included in the basic game version.
As you already know, Farming Simulator 25 developers support mods installation, which will add more vehicles or lands to your game. Check our Best FS25 mods lists for PC, Mac, PS5 or Xbox Series. Just follow these simple steps: choose the LS25 mods category, download the mod for the Farming Simulator 2025 version, and install it into the mod folder. Remember, all Farming Simulator 25 Mods are free, and download as many as you want with no limits. We want to create one of the biggest Farming Simulator 25 Community and invite you to share FS25 mods with everyone.

1 Response

  1. Kyle Shadduck says:

    What does this mod do does it work like easy dev tools were I can set my crop growth in a field

Leave a Reply

Do you need help or to say thanks to the mod author? Just leave a comment below!