Centralized Database Manager v 1.0
Centralized Database Manager v 1.0
Centralized Storage & VS Code Tooling for Modders
FS25_DBAPI is a streamlined persistence layer for Farming Simulator 25 mods. It replaces fragmented data handling with a centralized, JSON-backed FlatDB and provides a simple global API (g_globalMods[“FS25_DBAPI”].DBAPI) for namespaced key/value storage.
To supercharge your workflow, it comes with a dedicated VS Code extension featuring IntelliSense, snippets, and a live tree view to inspect your database files directly in the editor.
Why use FS25_DBAPI?
– Zero Overhead: A minimal, savegame-safe persistence layer that requires no external database engines.
– Intuitive API: Clean methods for getValue, setValue, listKeys, and deleteValue.
– Developer Velocity: Drastically speed up coding with autocomplete, snippets, and workspace visualization.
– Cross-Mod Compatibility: Simplify data sharing between mods and streamline migrations between savegames.
– Scalable: Lightweight enough for tiny utility mods, yet robust enough for complex modpacks.
Quick Start for Developers
Install the Mod
Drop the release ZIP into your mods/ folder and load your savegame to initialize the API.
Setup the VS Code Extension
Navigate to the vscode-extension directory and run:
Bash
npm run compile
npm run package
Install the resulting .vsix via VS Code (Extensions → Install from VSIX…).
Code Examples
Set a configuration value:
Lua
local DBAPI = g_globalMods[“FS25_DBAPI”] DBAPI.setValue(“MyMod”, “config.playerSpeed”, 12.5)
Read with a fallback default:
Lua
local DBAPI = g_globalMods[“FS25_DBAPI”] local speed = DBAPI.getValue(“MyMod”, “config.playerSpeed”, 10)
LeGrizzly
How do I install Farming Simulator mods?
Find a mod that you like and want to download first. Then, on your PC, download a mod. Mods are typically in.zip format. However, it is sometimes in.rar format. If the mod file is in.zip format, no additional actions are required. If a file is in.rar format, you must unarchive it using software such as WinRar or Zip7. Windows 10 users do not need to use archive software; Win10 includes an unarchive feature.
The next step is to locate the mods folder on your computer. It is typically found in Documents/My Games/Farming Simulator [Your FS game version, e.g. 2022]. Open the "mods" folder and place the downloaded.zip archive or unarchived.rar file there.
The final step. Have fun with Farming Simulator mods!






