Skip to content

HIGH: Ledger detail entries not persisted on standalone XML path #18

Description

@TheCodingDad-TisonK

Severity: HIGH

File: src/main.lua:114-121 (save), src/main.lua:154-166 (load)
Multiplayer: Yes
Fix Complexity: MODERATE
Confidence: 100% (source-verified)

Description

XML save writes only creditTotal, debitTotal, farmIdentries array (last 10 per farm) not saved. Load recreates as empty {}.

Impact

Ledger detail in HUD and console wiped every save/reload. Only running totals survive. StateLedger path preserves them, but own-file doesn't.

Fix

Serialize the entries array to XML on save, restore on load.


Source: Consolidated Bug Review 2026-07-26, TM-002

Metadata

Metadata

Labels

bugSomething isn't workingeconomyEconomy systemmpMultiplayeruser-repliedUser is awaiting response

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions