Forage Wagon Hay Lock

  • Forage Wagon Hay Lock
Boy Meets Farming
13 subscribers
BETA 3
4 347

PURPOSE
Prevents hay already collected in a forage wagon from being overwritten by grass or by another hay type.

BEHAVIOUR
- More of the SAME hay type collects normally.
- Normal grass is ignored while hay is loaded.
- Fresh Clover and fresh Alfalfa are ignored while hay is loaded when those fill types exist.
- A DIFFERENT hay type is ignored while hay is loaded.
- Empty wagons and wagons containing non-hay material retain normal game behaviour.

SUPPORTED HAY TYPES
- Hay: DRYGRASS_WINDROW
- Clover Hay: DRYCLOVER_WINDROW
- Alfalfa Hay: DRYALFALFA_WINDROW

Server
Consoles
Changelog
3
  • Fixed
    - Fixed hay being replaced by grass when collecting mixed windrows.
    - Replaced the previous pickup-area check with protection applied directly to actual material pickup.
    - Added a safeguard against queued material changing the wagon’s locked fill type.
    - Protected small loads below the game’s normal fill-type change threshold.
    Behaviour
    - The first supported grass or hay type collected stays locked until the wagon is emptied.
    - Matching material can still be collected; incompatible grass/hay remains on the ground.
    - Supports grass, hay, and registered clover/alfalfa windrow variants.
    Tested
    - Confirmed working on Castlereagh with the Pöttinger 8450 Windrower and Fliegl Cargos 9500 mod wagons.
    Diagnostics
    - Added limited log messages showing when protection activates and blocks incompatible pickup.

  • Version 0.1.0.5

    * Fixed registration for standard and custom forage-wagon vehicle types.
    * Grass already loaded can no longer be overwritten by Hay.
    * Hay already loaded can no longer be overwritten by Grass.
    * More of the same fill type continues to collect normally.
    * Supported Clover and Alfalfa variants are also kept separate.
    * Tested successfully with the 8450 Windrower forage wagon on the Kinlaig map.

Credits
Comments
2