A lightweight Farming Simulator 25 script mod that disables selected crops for AI use globally — without editing the base game or map XMLs. Configuration is externalised to modSettings, with per-save files supported.
✨ Features
-Disable crops for AI: prevents them from being used in field jobs (useForFieldJob = false).
-Template + per-save configs
-Template: modSettings/FS25_CropControlOverride/config.xml
-Per-save: modSettings/FS25_CropControlOverride/saves/<saveId>.xml
-Automatic config creation on first run (seeded from the map’s currently registered fruit types).
-Safe XML I/O via GIANTS XMLFile API (no io.open for config).
Console helpers:
-ccoReload — re-read and apply the current save’s config.
-ccoWhichConfig — show which XML file is being used right now.
-ccoListAI — list all fruit types with their current useForFieldJob flag.
🧠 How it works
Hooks into FSBaseMission:loadMapFinished and applies AI toggles once all fruit types are registered.
Ensures a template exists at (a template is available for download from this repository, but is not included within the mod ZIP):
Documents/My Games/FarmingSimulator2025/modSettings/FS25_CropControlOverride/config.xml
Ensures a per-save config exists at:
Documents/My Games/FarmingSimulator2025/modSettings/FS25_CropControlOverride/saves/.xml
The per-save file (if present) is always used. The template is only a fallback/seed.