Keep the plan on this client; the host does not need the mod.
Build / build (push) Failing after 28s
Build / build (push) Failing after 28s
Replace player attachments with client-owned files. Singleplayer writes satistaskory.dat next to the world. Remote writes satistaskory/remote/<address>.dat. displayTest IGNORE_ALL_VERSION. No packets, no server jar.
This commit is contained in:
@@ -37,7 +37,7 @@ RefreshProgress
|
||||
missing = required − available
|
||||
```
|
||||
|
||||
Persistence: the player in this world's save (ADR-017). Leave the world and the overlay unloads; come back and the goals load.
|
||||
Persistence: a file this client owns (ADR-018). Leave the world and the overlay unloads; come back and the goals load. The host does not need this mod.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ First use case: [[▶️ Create Goal]]. In code this slice is one `Planner` faca
|
||||
|
||||
Mark Goal Complete is named. It is not in the first slice.
|
||||
|
||||
The application layer calls infrastructure through ports (`RecipeProvider`, inventory snapshot, `GoalStore`). It does not contain domain rules. It loads what the use case needs, asks the domain to decide, and presents the result. Persistence is the player in this world's save (ADR-017).
|
||||
The application layer calls infrastructure through ports (`RecipeProvider`, inventory snapshot, `GoalStore`). It does not contain domain rules. It loads what the use case needs, asks the domain to decide, and presents the result. Persistence is a client-owned file (ADR-018).
|
||||
|
||||
Packages: [[📦 Packages]].
|
||||
|
||||
@@ -119,7 +119,7 @@ Examples:
|
||||
- Save data storage
|
||||
- Inventory scanning
|
||||
|
||||
Shipped this slice: `VanillaRecipeProvider` (`RecipeManager`, all types, one level), player-inventory snapshot, HUD overlay, tooltip+key capture, player world save. `StubRecipeProvider` is unit tests only. EMI/JEI/REI are not dependencies.
|
||||
Shipped this slice: `VanillaRecipeProvider` (`RecipeManager`, all types, one level), player-inventory snapshot, HUD overlay, tooltip+key capture, client-owned plan files. `StubRecipeProvider` is unit tests only. EMI/JEI/REI are not dependencies. The host does not need this mod.
|
||||
|
||||
Infrastructure is never the source of domain truth.
|
||||
|
||||
@@ -147,7 +147,7 @@ Possible implementations:
|
||||
- Server Save
|
||||
- Future Cloud Sync
|
||||
|
||||
Shipped: player attachment in this world's save. Survives quit and death. Remote multiplayer stays RAM-only until a server adapter exists. See [[💾 Persistence]] and ADR-017.
|
||||
Shipped: client-owned files. Singleplayer lives next to the world; remote lives under the game directory keyed by address. See [[💾 Persistence]] and ADR-018. The host does not need this mod.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -21,18 +21,21 @@ Play uses `PersistingGoalStore`: RAM plus a write after each change.
|
||||
|
||||
## Shipped implementation
|
||||
|
||||
Player attachment in **this world's save** (ADR-017).
|
||||
Client-owned files (ADR-018). The host does not need this mod.
|
||||
|
||||
| Where | File |
|
||||
|-------|------|
|
||||
| Singleplayer | `<world>/satistaskory.dat` |
|
||||
| Remote / LAN guest | `satistaskory/remote/<address>.dat` in the game directory |
|
||||
|
||||
| Event | Result |
|
||||
|-------|--------|
|
||||
| Join world | Load this player's goals |
|
||||
| Create / + / − / Clear | Write the attachment |
|
||||
| Join world | Load this client's file for that world or address |
|
||||
| Create / + / − / Clear | Write that file |
|
||||
| Leave world | Unload RAM. Do not write empty (that would wipe the save) |
|
||||
| Death | Plan is copied. It is not loot |
|
||||
| Death | Irrelevant. The plan is not on the player entity |
|
||||
|
||||
Singleplayer and LAN host. Remote dedicated server: RAM-only this slice.
|
||||
|
||||
Server save and cloud remain possible later. They do not change `GoalStore`.
|
||||
A later server or cloud adapter is still allowed. It does not change `GoalStore`. It is not required for the prosthetic to function.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -297,12 +297,37 @@ The port remains. The **order** was wrong.
|
||||
|
||||
The first slice is a prosthetic the player can quit and resume. ADR-004 named world save, server save, and cloud. World save is the one they play.
|
||||
|
||||
**Status:** ✅ Accepted
|
||||
**Status:** ⚠️ Superseded by ADR-018
|
||||
|
||||
**Refines:** ADR-004. **Supersedes** ADR-013’s “Persistence: in-memory” freeze for this slice.
|
||||
|
||||
---
|
||||
|
||||
### ADR-018 — Client-only; the host does not need this mod
|
||||
|
||||
**Date:** 2026-09-08
|
||||
|
||||
**Decision:** Satistaskory is a **client** mod. A dedicated server, LAN host, or singleplayer integrated server does not need it installed for the prosthetic to work.
|
||||
|
||||
Persistence is a file this client owns:
|
||||
|
||||
- Singleplayer: `<world>/satistaskory.dat` (travels with the world backup)
|
||||
- Remote / LAN guest: `satistaskory/remote/<address>.dat` under the game directory
|
||||
|
||||
`displayTest="IGNORE_ALL_VERSION"`. No player attachment. No server packet. No server jar.
|
||||
|
||||
The overlay, capture, inventory snapshot, and `RecipeManager` lookup already run on the client. ADR-017’s player attachment was the only thing that required the mod on the host. That was the wrong persistence for this product.
|
||||
|
||||
**Reason:**
|
||||
|
||||
The player carries the plan. The server is not a Satistaskory collaborator. Requiring the jar on a friend’s server, a modpack host, or a dedicated box would make the prosthetic a pack dependency instead of a personal tool.
|
||||
|
||||
**Status:** ✅ Accepted
|
||||
|
||||
**Supersedes:** ADR-017 (player attachment in the world save)
|
||||
|
||||
---
|
||||
|
||||
## Related Documents
|
||||
|
||||
[[🏛️ Architecture]]
|
||||
|
||||
@@ -37,7 +37,8 @@ com.sufficient.satistaskory
|
||||
persistence/
|
||||
GoalPlan # NBT codec
|
||||
PersistingGoalStore
|
||||
PlayerGoalPersistence # player attachment in this world
|
||||
ClientGoalPersistence # client files; host does not need this mod
|
||||
ClientSaveKeys
|
||||
client/
|
||||
PlayOverlay # Screen 2 HUD (not a Screen)
|
||||
CaptureHook # tooltip + KeyMapping ADD_GOAL
|
||||
|
||||
@@ -6,13 +6,13 @@ What exists, and what is next. Implementation detail will live in an Implementat
|
||||
|
||||
## ✅ Now (docs)
|
||||
|
||||
- Philosophy Rules #1–#10; ADRs **001–017**
|
||||
- Philosophy Rules #1–#10; ADRs **001–018**
|
||||
- Vision, ubiquitous language, bounded context (one: Goal Planning)
|
||||
- Goal invariants: one per ItemId, quantity ≥ 1, create at 1 / +1, `[-]` at 1 removes
|
||||
- Packages named; [[🔌 Recipe Provider]] sketched; [[▶️ Create Goal]] written
|
||||
- Experience: capture in place; overlay on the right (goals + aggregated needed counts)
|
||||
|
||||
First slice **code exists** and has been played: domain, `VanillaRecipeProvider` (`RecipeManager`, all types, one level), player world save, player inventory, play overlay, hover + Add key.
|
||||
First slice **code exists** and has been played: domain, `VanillaRecipeProvider` (`RecipeManager`, all types, one level), client-owned plan files, player inventory, play overlay, hover + Add key. Host does not need this mod.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -381,6 +381,20 @@ Do not open Project because that feels like "what's next." Listen.
|
||||
|
||||
---
|
||||
|
||||
## 📜 2026-09-08 (client-only)
|
||||
|
||||
Greetings, Wayfinder.
|
||||
|
||||
The player attachment was the wrong save. It made Satistaskory a host mod.
|
||||
|
||||
ADR-018: client-only. Overlay, capture, recipes, inventory were already client. Persistence is a file this client owns. Singleplayer writes `satistaskory.dat` next to the world. Remote writes `satistaskory/remote/<address>.dat`. `displayTest=IGNORE_ALL_VERSION`. No packet. No server jar.
|
||||
|
||||
If they playtested the attachment build, those goals will not come back. Re-add once.
|
||||
|
||||
The prosthetic travels with the player, not with the pack.
|
||||
|
||||
---
|
||||
|
||||
## Related Documents
|
||||
|
||||
[[🌟 Project Vision]]
|
||||
|
||||
Reference in New Issue
Block a user