Skip to content

v2.0.0.4 — Fix MoneyType crash (income never paid)

Choose a tag to compare

@TheCodingDad-TisonK TheCodingDad-TisonK released this 01 Mar 14:46
· 43 commits to main since this release
7eb9050

Bug Fix — Income Was Never Being Paid

Root Cause

MoneyType.INCOME does not exist in FS25. It resolves to nil, causing the game engine to throw attempt to index nil with 'id' inside addMoney on every payment attempt. This means:

  • Hourly/daily income: silently crashed every tick — $0 distributed
  • IncomeTestPayment: always failed

Fix

Replaced MoneyType.INCOME with MoneyType.OTHER in IncomeSystem.lua (both the farm loop and the SP fallback path). MoneyType.OTHER is a valid FS25 financial category used by other mods for mod-originated transactions.

Upgrade Notes

No save migration needed. Settings and timer state carry over from 2.0.0.3.