Skip to content

Console Commands

TisonK edited this page Jul 1, 2026 · 4 revisions

Console Commands

Open the developer console with the ~ key.

Type soilfertility for a quick list of all commands.


Status and info

Command Description
soilfertility List all available commands
soilStatus Show current mod status: enabled state, role (server/client), all settings
SoilShowSettings Print all current settings values
SoilFieldInfo <fieldId> Show full soil data for a specific field (e.g. SoilFieldInfo 3)
SoilFieldForecast <fieldId> Show urgency score and primary deficiency for a field - same ranking used by the Treatment Plan tab
SoilListFields List all tracked fields with their current N/P/K/pH/OM values
SoilPFDump Dump Precision Farming detection state to log (useful for diagnosing unexpected PF conflicts)

Enable / disable

Command Description
SoilEnable Enable the mod (equivalent to setting Enabled = On)
SoilDisable Disable the mod (simulation stops; saved data is kept)

Settings (admin only in multiplayer)

Command Values Description
SoilSetDifficulty <n> 1, 2, 3 1=Simple, 2=Realistic, 3=Hardcore
SoilSetFertility <bool> true/false Toggle fertility system
SoilSetNutrients <bool> true/false Toggle nutrient cycles (rain, seasons)
SoilSetFertilizerCosts <bool> true/false Toggle fertilizer purchase costs
SoilSetNotifications <bool> true/false Toggle in-game notifications
SoilSetSeasonalEffects <bool> true/false Toggle seasonal nitrogen effects
SoilSetRainEffects <bool> true/false Toggle rain leaching
SoilSetPlowingBonus <bool> true/false Toggle plowing OM bonus
SoilSetDiseaseDifficulty <n> 1, 2, 3 1=Easy, 2=Normal, 3=Hard
SoilResetSettings - Reset all settings to defaults

Disease and treatment

Command Description
SoilScout [fieldId] Scout a field for disease (defaults to the current field); names the active disease
SoilFungicides [diseaseId] List all fungicides, or the recommended ones for a given disease
SoilTreat <chemical> [fieldId] Apply a fungicide by name, e.g. SoilTreat AZOXYSTROBIN
SoilSetDisease <0-100> [diseaseId] Testing: force a disease and pressure onto the current field

Data management

Command Description
SoilSaveData Force save soil data to soilData.xml immediately
SoilDrainVehicle Drain all custom fertilizer fill types from the current vehicle and attached implements (50% value refunded to farm account)
soilSetState <fieldId> <N> <P> <K> <pH> <OM> Directly set a field's soil values (advanced)
SoilDebug Toggle debug mode (verbose logging in log.txt)

Field management (advanced)

These are server/single-player commands for re-rolling starting soil and for the FieldSentry eligibility system (#651). Use with care.

Command Description
SoilRerollFields Re-roll starting soil (N/P/K/pH/OM) for all fields with the regional variation (#632)
SoilRerollUnownedFields Re-roll starting soil only for fields you do not own (keeps your own farm's soil)
soilRecoverField [fieldId] Recover a field to default values
SoilFieldSentry [fieldId] Show a field's simulation status, or list all slept (inactive) fields
SoilBlacklistField <fieldId> [true|false] Sleep or wake a field's soil simulation
SoilDecoField <fieldId> [true|false] Flag or clear a field as decorative (simulation frozen)
SoilMeadowField <fieldId> [true|false] Flag or clear a field as meadow (grassland profile)

Notes

  • In multiplayer, setting commands only work if you are the server admin (master user) or running on the server console directly
  • Changes made via console in multiplayer are broadcast to all connected clients automatically
  • SoilFieldInfo and SoilFieldForecast work for any field ID - use the in-game map or soilStatus to find field IDs

Clone this wiki locally