Realistic Farming - Dairy Core is a per-barn dairy management layer for the Realistic Farming mod ecosystem. It reads the ecosystem (SoilFertilizer, MarketDynamics, RandomWorldEvents, WorkerCosts, FuelCosts, NPCFavor, TaxMod, ProStaff, and Ritter's Realistic Livestock) and rides the shared Time Guard economic clock. Every cross-mod edge is handle-gated and pcall-wrapped, so it degrades gracefully when a companion mod is absent.
Version: 1.0.0.0
- Herd health, two modes decided once at mission load:
- Standard: the base-game
getGlobalProductionFactor()plus SoilFertilizer feed-field modifiers (organic matter, N/P/K balance, weed/pest pressure, legume rotation). - Ritter: a per-animal genetics + health composite via
RLBridgewhen Realistic Livestock is present. Any read failure trips cleanly back to Standard (F13: DairyCore never writes into Ritter).
- Standard: the base-game
- Milk quality tiers (Premium / Standard / Reduced / Poor) from the herd health score.
- Time-based spoilage (Fresh / Ageing / At Risk / Condemned) on the Time Guard day tick; a missed collection window advances it one stage.
- Administrative collection scheduling with a WorkerCosts skill read (no AI pathing).
- Feed-source fields: player-designated per barn, with the SF
diseaseDiscoveredreveal gate (a free flag names which field is at risk; the disease name surfaces only after a scout or the paid report). - Read-only mycotoxin penalty to herd health (both modes), received from the disease broadcast.
- Dairy contracts (4 types) that settle on the Time Guard clock via
registerAccrual: server-only, idempotent across save/reload. Base-gameaddMoneypays the income; TaxModrecordExpenseis audit-only.
g_currentMission.dairyCoreManager -- cross-mod handle, set in Mission00.load, nil on delete
g_dairyCoreManager -- getfenv(0) same-mod fallback
- Time Guard — day/hour ticks + the contract accrue-and-settle scheduler.
- StateLedger — barn + contract state (own-XML fallback
FS25_DairyCore.xmlwhen absent). - NetworkSync — barn state sync to clients.
- SettingsHub — four admin settings (enable, default collection interval, spoilage, contracts).
- Zero Precision Farming: if
FS25_precisionFarmingis present, DairyCore stands down. - Contract volume figures are tunable placeholders gated on the SDK per-cow yield curve (F12).
- 26 languages ship from day one. Console command:
dairyStatus.