From 2a750d25f35fabcfbe4f0be6dffa2e2ff5ce9e6d Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 17 May 2026 17:09:17 -0700 Subject: [PATCH] Update handoff for resource node persistence --- dev/HANDOFF.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/dev/HANDOFF.md b/dev/HANDOFF.md index f4fe130d..dfe3831f 100644 --- a/dev/HANDOFF.md +++ b/dev/HANDOFF.md @@ -4042,3 +4042,44 @@ Roadmap state: - Current version section: `0.1.F Gathering And Resources` - Items remaining in `0.1.F`: `1` - Immediate next roadmap item: `Add resource node persistence`. + +## Agrarian 0.1.F Resource Node Persistence - 2026-05-17 + +Current repo: + +- `/mnt/projects/AgrarianGameBulid` +- GitHub remote: `pacificao/AgrarianGameBuild` +- Current branch: `main` +- Latest pushed game commit: `5da545e Add resource node persistence` + +Completed roadmap item: + +- `Add resource node persistence` + - Added `FAgrarianSavedResourceNode` to `UAgrarianSaveGame`. + - Added `AAgrarianResourceNode::PersistenceNodeId`, capture, and restore + methods so resource depletion persists by stable map/tile node id. + - Added persistence subsystem capture/restore paths for resource nodes. + - The subsystem only captures nodes that exist in the loaded world and + restores matching existing nodes by id; it does not spawn resource nodes + from saves. + - Updated Ground Zero placement to assign `PersistenceNodeId` values matching + actor labels. + - Extended the Ground Zero resource verifier to require stable persistence + ids. + - Updated persistence/resource documentation and closed the roadmap item. + - Added `Scripts/verify_resource_node_persistence.py`. + +Verification: + +- `python3 -m py_compile Scripts/setup_ground_zero_demo_map.py Scripts/verify_ground_zero_resources.py Scripts/verify_resource_node_persistence.py` passed. +- `python3 Scripts/verify_resource_node_persistence.py` passed. +- `git diff --check` passed. +- Windows editor build passed through direct `Scripts\BuildEditor-Windows.bat`. +- Windows Unreal Python `setup_ground_zero_demo_map.py` passed. +- Windows Unreal Python `verify_ground_zero_resources.py` passed. + +Roadmap state: + +- Current version section: `0.1.F Gathering And Resources` +- Items remaining in `0.1.F`: `0` +- Next required action: build the Windows investor demo and stop.