Developer PowerTools

V 1.0.0.0 mod for Farming Simulator 25

0
Downloads today
322
Downloads total
0
Comments

description

Developer PowerTools is a quality-of-life mod designed for modders, perfectly complementing tools like Power Tools, Easy Dev Controls, and Global Explorer.

Features:
- New console commands for game restarts.
- Print Lua table contents to the console, log, or a separate file.
- Clear the log file with a single command.
- Save Lua tables to well-structured Lua files for advanced debugging and understanding of the FS object model.

Console Commands:
- dtRestart or r: Performs a soft restart of the game client.
- dtRestartHard or rr: Executes a hard reset to unload everything from memory.
- dtTable: Outputs Lua table contents to the console or log.
- dtSaveTable: Saves Lua table contents to a file, optimized for speed and efficiency.
- dtVisualizeTable: A beta feature for improved visualization of Lua tables.
- dtClearLog or cls: Clears the log file for a fresh start.

Important Notes:
- Restart commands do not prompt to save your progress—use with caution to avoid losing data.
- Automatic restart of the current savegame is temporarily disabled in FS25 due to new limitations.

Saving Tables:
The dtSaveTable command allows you to export Lua tables as well-structured Lua files, which can be used for debugging or in-game scripting. You can specify the depth of the output to manage memory and performance.

Example: Use dtSaveTable g_currentMission currentMission.lua 1 to save the g_currentMission table to a file named currentMission.lua, including only its direct descendants.

Printing Tables:
The dtTable command outputs Lua tables to the log for quick inspection. However, it is recommended for small tables or shallow structures to avoid memory issues. For deeper structures, use dtSaveTable instead.

Note: Saved Lua files are stored in My Games/FarmingSimulator2025/modSettings/FS22_000_DevTools.

Credits

w33zl

  • 26 Nov 16:54
    Version 1.0.0.0



Files


26.11 2024
Modhoster user rating
no rating Votes

Empfehlungsrate

-/-      
noch nicht genug Stimmen

Do you think this mod should be featured?

V 1.0.0.0
Farming Simulator 25
FS25_000_DevTools__1_.zip
102 KB 322
26. 11 2024 322

0 Comments for Developer PowerTools

You have to log in for writing comments.
You can also sign up for free, id you don't have an account yet - it only takes 5 minutes.

No comments yet.

Write the first comment...

      }