An open API service indexing awesome lists of open source software.

https://github.com/thecodingdad-tisonk/fs25_soilfertilizer

Realistic soil nutrient management for Farming Simulator 25. Track N/P/K, pH, and organic matter per field โ€” with crop-specific depletion, fertilizer replenishment, weather effects, and seasonal cycles.
https://github.com/thecodingdad-tisonk/fs25_soilfertilizer

agriculture farming-simulator farming-simulator-25 fertilizer fs25 fs25-mod game-mod giants-engine lua modding nutrients simulation soil

Last synced: about 1 hour ago
JSON representation

Realistic soil nutrient management for Farming Simulator 25. Track N/P/K, pH, and organic matter per field โ€” with crop-specific depletion, fertilizer replenishment, weather effects, and seasonal cycles.

Awesome Lists containing this project

README

          

# ๐ŸŒพ FS25 Soil & Fertilizer
### *Realistic Nutrient Management*

[![Downloads](https://img.shields.io/github/downloads/TheCodingDad-TisonK/FS25_SoilFertilizer/total?style=for-the-badge&logo=github&color=4caf50&logoColor=white)](https://github.com/TheCodingDad-TisonK/FS25_SoilFertilizer/releases)
[![Release](https://img.shields.io/github/v/release/TheCodingDad-TisonK/FS25_SoilFertilizer?style=for-the-badge&logo=tag&color=76c442&logoColor=white)](https://github.com/TheCodingDad-TisonK/FS25_SoilFertilizer/releases/latest)
[![License](https://img.shields.io/badge/license-CC%20BY--NC--ND%204.0-lightgrey?style=for-the-badge&logo=creativecommons&logoColor=white)](https://creativecommons.org/licenses/by-nc-nd/4.0/)

Donate via PayPal


> *"Applied liquid fertilizer three seasons straight because the yield looked fine. Then I checked the pH โ€” it was sitting at 5.4. The nutrients I'd been pouring in couldn't even be absorbed. One application of lime later and the next harvest told the whole story."*


**In base FS25, every field is born equal and stays that way forever. This mod remembers.**

Each field builds its own history. Nitrogen drops after a heavy wheat crop. Rain washes potassium out of sandy ground. Fallow fields slowly breathe back to life. The numbers you see in the HUD aren't arbitrary โ€” they're the consequence of every harvest, every storm, and every bag of fertilizer you did or didn't apply.

`Singleplayer` โ€ข `Multiplayer (server-authoritative)` โ€ข `Persistent saves` โ€ข `26 languages`

> [!TIP]
> Want to be part of our community? Share tips, report issues, and chat with other farmers on the **[FS25 Modding Community Discord](https://discord.gg/Th2pnq36)**!

---

## โœจ Features

### ๐Ÿงช Per-Field Soil Chemistry

Five values tracked independently for every field on the map:

| | Nutrient | Role | Depleted By |
|---|---|---|---|
| ๐ŸŸข | **Nitrogen (N)** | Growth and leaf mass | Harvest, rain leaching, fall season |
| ๐Ÿ”ต | **Phosphorus (P)** | Root development and energy | Harvest |
| ๐ŸŸก | **Potassium (K)** | Water regulation and yield quality | Harvest, rain leaching |
| ๐ŸŸค | **Organic Matter (OM)** | Soil structure and nutrient buffering | Builds slowly via manure and plowing |
| โš—๏ธ | **pH** | Unlocks nutrient availability | Rain acidification โ€” raised by lime and plowing |

All five values persist in your save. A field that's been growing canola for three seasons without lime will feel different from one you've been managing carefully.

### ๐ŸŒพ Crop-Specific Extraction

Different crops take different amounts from your soil. Push the same field too hard and it shows.

| Crop | N drain | P drain | K drain | Notes |
|---|---|---|---|---|
| ๐Ÿฅ” Potato | โ—โ—โ—โ—โ— | โ—โ—โ—โ— | โ—โ—โ—โ—โ— | Extreme K demand โ€” must rotate |
| ๐ŸŸฃ Sugar Beet | โ—โ—โ—โ—โ—‹ | โ—โ—โ—โ—‹โ—‹ | โ—โ—โ—โ—โ— | Heaviest K of any crop |
| ๐ŸŒป Sunflower | โ—โ—โ—โ—โ—‹ | โ—โ—โ—โ—‹โ—‹ | โ—โ—โ—โ—โ—‹ | Moderate-high all round |
| ๐ŸŒผ Canola | โ—โ—โ—โ—โ—‹ | โ—โ—โ—โ—‹โ—‹ | โ—โ—โ—โ—โ—‹ | High N demand, oilseed crop |
| ๐Ÿซ˜ Soybean | โ—โ—โ—โ—โ— | โ—โ—โ—โ—‹โ—‹ | โ—โ—โ—โ—‹โ—‹ | Highest N โ€” partial fixation assumed |
| ๐ŸŒฝ Maize | โ—โ—โ—โ—โ—‹ | โ—โ—โ—โ—‹โ—‹ | โ—โ—โ—โ—โ—‹ | Large biomass, needs N and K |
| ๐ŸŒพ Wheat | โ—โ—โ—โ—‹โ—‹ | โ—โ—โ—‹โ—‹โ—‹ | โ—โ—โ—โ—‹โ—‹ | Moderate โ€” manageable with rotation |
| ๐ŸŒพ Barley / Oats / Rye | โ—โ—โ—โ—‹โ—‹ | โ—โ—โ—‹โ—‹โ—‹ | โ—โ—โ—โ—‹โ—‹ | Light feeders, good rotation crops |
| ๐Ÿซ› Peas / Beans | โ—โ—โ—โ—โ—‹ | โ—โ—โ—โ—‹โ—‹ | โ—โ—โ—โ—โ—‹ | Legumes โ€” still need balanced soil |

### ๐Ÿ› Field Health System

Three pressure scores (0โ€“100) track threats to each field independently. Left unchecked they reduce your yield at harvest. Treat them with the right product and the pressure drops within a few days.

| Pressure | Source | Treatment | Resets naturally | Max penalty |
|----------|--------|-----------|-----------------|-------------|
| ๐ŸŒฟ **Weed** | Grows daily โ€” peaks without tillage | `HERBICIDE` spray | Any tillage / plowing | โˆ’30% |
| ๐Ÿž **Pest** | Insects โ€” peaks in summer | `INSECTICIDE` spray | Harvest disperses population | โˆ’20% |
| ๐Ÿ„ **Disease** | Fungal โ€” driven by rain | `FUNGICIDE` spray | 3+ dry days cause natural decay | โˆ’25% |

All three are visible in the HUD and the full Soil Report. Each can be toggled off in settings.

### ๐Ÿ’Š Fertilizer Types

Six nutrient products, each with a different job:

| Fertilizer | N | P | K | Organic Matter | Notes |
|---|---|---|---|---|---|
| **Liquid Fertilizer** | โ—โ—โ—โ—‹โ—‹ | โ—โ—โ—‹โ—‹โ—‹ | โ—โ—โ—โ—‹โ—‹ | โ€” | Fast-acting, balanced NPK |
| **Solid Fertilizer** | โ—โ—โ—โ—โ—‹ | โ—โ—โ—โ—‹โ—‹ | โ—โ—โ—โ—‹โ—‹ | โ€” | Higher N/P, granular |
| **Manure** | โ—โ—โ—‹โ—‹โ—‹ | โ—โ—โ—‹โ—‹โ—‹ | โ—โ—โ—โ—‹โ—‹ | โœ“ builds | Slow-release, builds OM over time |
| **Slurry** | โ—โ—โ—โ—‹โ—‹ | โ—โ—โ—‹โ—‹โ—‹ | โ—โ—โ—โ—โ—‹ | โœ“ builds | Liquid organic, strong K |
| **Digestate** | โ—โ—โ—โ—‹โ—‹ | โ—โ—โ—‹โ—‹โ—‹ | โ—โ—โ—โ—โ—‹ | โœ“ builds | Biogas byproduct, well-rounded |
| **Lime** | โ€” | โ€” | โ€” | โ€” | Only raises pH โ€” but nothing else works properly without it |

> [!NOTE]
> Organic matter builds slowly with manure, slurry, and digestate โ€” it takes many seasons to accumulate meaningfully. Soil with high OM buffers pH swings and slows nutrient loss from rain.

### ๐ŸŒฆ๏ธ Environmental Effects

The mod isn't just about what you put in โ€” it's about what the world takes out.

| Effect | What happens |
|---|---|
| ๐ŸŒง๏ธ **Rain leaching** | Nitrogen and potassium wash out during heavy rain. Phosphorus binds tightly and barely moves. |
| ๐Ÿ‚ **Fall nitrogen loss** | Biological activity slows in autumn, pulling N levels down naturally. |
| ๐ŸŒฑ **Spring nitrogen boost** | Microbial activity picks back up in spring, recovering a small amount of N. |
| ๐ŸŒง๏ธ **pH acidification** | Rain is slightly acidic. Ignore liming long enough and your soil will show it. |
| ๐ŸŒพ **Fallow recovery** | Fields left unplanted for 7+ days slowly recover nutrients on their own. |
| ๐Ÿšœ **Plowing bonus** | Aerates soil, nudging pH toward neutral and boosting organic matter mixing. |

### ๐Ÿ“Š Soil HUD

A compact overlay shows the current field's soil status while you're working. Colour-coded indicators make problems visible at a glance:

๐ŸŸข **Green** โ€” healthy, no action needed ย |ย  ๐ŸŸก **Amber** โ€” getting low, plan ahead ย |ย  ๐Ÿ”ด **Red** โ€” depleted, yield is being affected

Fully customisable: 5 positions, 4 colour themes, 5 transparency levels, 3 font sizes, and a compact mode that shrinks to one line per nutrient.

### ๐Ÿ“‹ Full Farm Soil Report

Press **`K`** to open a full farm overview sorted by urgency โ€” the fields that need the most attention appear at the top. Each row shows N/P/K, pH, OM, weed and pest pressure, and an overall status badge. Click **โ–บ** on any row to open a field detail view with a complete breakdown, yield forecast, and specific treatment recommendations.

---

## โš™๏ธ Settings

Open via **ESC โ†’ Settings โ†’ Game Settings โ†’ Soil & Fertilizer**.

| Setting | Options | What it does |
|---|---|---|
| **Enable mod** | On / Off | Stops all simulation when off |
| **Fertility system** | On / Off | Toggles the entire nutrient and pH simulation |
| **Nutrient cycles** | On / Off | Enables crop depletion and natural recovery |
| **Fertilizer costs** | On / Off | Adds running costs to fertilizer application |
| **Notifications** | On / Off | Pop-up alerts when fields get critically low |
| **Seasonal effects** | On / Off | Spring boost and fall nitrogen loss |
| **Rain effects** | On / Off | Leaching and pH acidification from rain |
| **Plowing bonus** | On / Off | Whether plowing improves OM and pH |
| **Weed pressure** | On / Off | Track weed competition per field โ€” apply herbicide to reduce |
| **Pest pressure** | On / Off | Track insect pest populations per field โ€” apply insecticide to reduce |
| **Disease pressure** | On / Off | Track crop disease per field โ€” apply fungicide to reduce |
| **Difficulty** | Simple / Realistic / Hardcore | Scales depletion rate โ€” 0.7ร— / 1ร— / 1.5ร— |
| **HUD enabled** | On / Off | Show or hide the soil overlay |
| **HUD position** | 5 presets | Top-right, top-left, bottom-right, bottom-left, centre-right |
| **HUD colour theme** | 4 themes | Green / Blue / Amber / Mono |
| **HUD transparency** | Clear โ†’ Solid | 5 levels from 25% to 100% opacity |
| **HUD font size** | Small / Medium / Large | Scales all HUD text |
| **Compact mode** | On / Off | One line per nutrient instead of full bars |

> [!NOTE]
> In multiplayer, settings are **server-authoritative** โ€” the host's settings are pushed to all clients on join. Clients cannot override locked settings.

---

## ๐Ÿ–ฅ๏ธ Console Commands

Open the developer console with **`~`** and type `soilfertility` for the full list.

| Command | Arguments | Description |
|---|---|---|
| `SoilEnable` / `SoilDisable` | โ€” | Toggle the mod on or off |
| `SoilSetDifficulty` | `1` `2` `3` | Simple / Realistic / Hardcore |
| `SoilSetFertility` | `true` / `false` | Toggle fertility simulation |
| `SoilSetNutrients` | `true` / `false` | Toggle nutrient cycles |
| `SoilSetFertilizerCosts` | `true` / `false` | Toggle fertilizer costs |
| `SoilSetNotifications` | `true` / `false` | Toggle alert popups |
| `SoilSetSeasonalEffects` | `true` / `false` | Toggle seasonal N changes |
| `SoilSetRainEffects` | `true` / `false` | Toggle rain leaching and acidification |
| `SoilSetPlowingBonus` | `true` / `false` | Toggle plowing OM/pH bonus |
| `SoilFieldInfo` | `` | Detailed soil readout for one field |
| `SoilFieldForecast` | `` | Yield forecast and treatment recommendations for one field |
| `SoilListFields` | โ€” | List all tracked fields with current soil values |
| `SoilShowSettings` | โ€” | Print current settings to log |
| `SoilResetSettings` | โ€” | Reset everything to defaults |
| `SoilSaveData` | โ€” | Force-save soil state now |
| `SoilDebug` | โ€” | Toggle verbose debug logging |

---

## ๐Ÿ”Œ Mod Integrations

All integrations are detected automatically at runtime and fail gracefully if the mod isn't installed.

| Mod | Behaviour |
|---|---|
| **Precision Farming DLC** | Compatible โ€” both mods run independently. No conflicts. |
| **FS25_SeasonalCropStress** | Soil pH and organic matter influence evapotranspiration rates per field. |
| **FS25_NPCFavor** | NPC neighbour favour quests can reference your fields' soil state. |

---

## ๐Ÿ› ๏ธ Installation

**1. Download** `FS25_SoilFertilizer.zip` from the [latest release](https://github.com/TheCodingDad-TisonK/FS25_SoilFertilizer/releases/latest).

**2. Copy** the ZIP (do not extract) to your mods folder:

| Platform | Path |
|---|---|
| ๐ŸชŸ Windows | `%USERPROFILE%\Documents\My Games\FarmingSimulator2025\mods\` |
| ๐ŸŽ macOS | `~/Library/Application Support/FarmingSimulator2025/mods/` |

**3. Enable** *Realistic Soil & Fertilizer* in the in-game mod manager.

**4. Load** any career save โ€” soil data initialises automatically on first load.

---

## ๐ŸŽฎ Quick Start

```
1. Load your farm โ€” the soil HUD appears in the top-right corner
2. Drive to any field โ€” nutrient values update as you move
3. Amber or red values โ†’ that field needs fertilizer or lime
4. Apply lime first โ€” it unlocks the full value of everything else
5. Apply fertilizer โ†’ watch N/P/K climb in real time
6. Press K โ†’ open the full farm soil report sorted by urgency
7. Let a field go fallow for a season โ†’ it slowly recovers on its own
8. At harvest โ†’ healthy soil means the full yield you worked for
```

> [!TIP]
> Fields start slightly acidic and with moderate nutrients โ€” matching the base game's starting state. Lime first, then fertilize. Nutrients in acidic soil have reduced availability no matter how much product you apply.

---

## โš ๏ธ Known Limitations

| Issue | Details |
|---|---|
| ๐ŸŒฑ **Base game lime indicator** | The base game's "needs liming" flag is a separate system from our pH tracking. Both update when you apply lime through the sprayer, but the indicators can show different states until the field is treated. Workaround: disable the base game's liming requirement in **Settings โ†’ Farming โ†’ Liming** to rely solely on our HUD. |
| ๐ŸŒ **Multiplayer** | Soil simulation runs on the server only. Clients receive synced state on join and after each harvest or fertiliser event. |
| ๐Ÿ”ฌ **Precision Farming** | Compatible โ€” both mods track nutrients independently. No conflicts. |

---

## ๐Ÿค Contributing

Found a bug? [Open an issue](https://github.com/TheCodingDad-TisonK/FS25_SoilFertilizer/issues/new/choose) โ€” the template will walk you through what to include.

Want to contribute code? PRs are welcome on the `development` branch. See `CLAUDE.md` in the repo root for architecture notes and naming conventions.

---

## ๐Ÿ“ License

This mod is licensed under **[CC BY-NC-ND 4.0](https://creativecommons.org/licenses/by-nc-nd/4.0/)**.

You may share it in its original form with attribution. You may not sell it, modify and redistribute it, or reupload it under a different name or authorship. Contributions via pull request are explicitly permitted and encouraged.

**Author:** TisonK ย ยทย  **Version:** 1.5.2.0

ยฉ 2026 TisonK โ€” See [LICENSE](LICENSE) for full terms.

---

*Farming Simulator 25 is published by GIANTS Software. This is an independent fan creation, not affiliated with or endorsed by GIANTS Software.*

*Your soil remembers everything.* ๐ŸŒฑ