acdream/tests/AcDream.Runtime.Tests/Gameplay
Erik 536d17456d feat(journal): QJ1/QJ2 — the journal's pages and their file
The Journal tab is not a quest feature: it is a per-character notebook with no
wire, no server and no dat content. The player writes it, and it persists to a
tagged text file recovered whole from LoadPages/SavePages.

Retail refuses a journal file that does not OPEN with <NEWP>, with its own
message. That strictness is ported rather than softened — accepting such a file
would scatter the first page's text into no page at all. An ABSENT or empty
file is the opposite case and must not error: that is simply a character who
has never written a page.

Three things the format does not say out loud, each with a test:

<PNUM> is written but page order IS file order, so a reader that trusted the
number would reshuffle a hand-edited file. A recorded location of (0, 0) is a
real place, so the location tags are written on a HasLocation flag rather than
on the numbers being non-zero. And the notes box is multi-line while the file
is line-oriented — an embedded newline would read back as a tagless line and
silently truncate the notes, so they are folded to spaces at the write.

The countdown belongs to the page it was started on, and what belongs in the
file is what is LEFT rather than what it started at — saving the start value
would resurrect the full duration on every reload.

Deleting the last remaining page empties the journal instead of leaving a blank
one behind; inventing a replacement would make the journal impossible to empty.
An out-of-range page is refused rather than clamped, because clamping moves the
player somewhere they did not ask to go.

Campaign QJ slices 1 and 2 of 5.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-21 15:31:47 +02:00
..
CharacterOptionTableTests.cs fix(runtime,net): OP1 review fixes — server-seed gate, tick-wired auto-save/logout flush, fellowship mutual exclusion 2026-08-11 00:39:51 +02:00
ContractPluginProjectionTests.cs feat(quest): QT6 — plugins can read the contract tracker 2026-08-21 15:22:22 +02:00
InteractionStateTests.cs refactor(runtime): own canonical action state 2026-07-26 10:44:09 +02:00
LocalPlayerImmediatePositionTests.cs refactor(physics): delete legacy PhysicsEngine.Resolve/ResolvePlacement/HasCellSurface (C5a, AP-1/AD-1) 2026-08-05 14:11:31 +02:00
LocalPlayerOutboundCombatStyleTests.cs refactor(runtime): own local movement and outbound cadence 2026-07-26 12:33:53 +02:00
PlayerMouseLookMovementTests.cs refactor(physics): delete legacy PhysicsEngine.Resolve/ResolvePlacement/HasCellSurface (C5a, AP-1/AD-1) 2026-08-05 14:11:31 +02:00
PlayerMovementControllerTests.cs fix: airborne jump refusal fires at RELEASE, not press (user retail 2026-08-14 08:31:22 +02:00
PlayerOutboundPositionTests.cs refactor(physics): delete legacy PhysicsEngine.Resolve/ResolvePlacement/HasCellSurface (C5a, AP-1/AD-1) 2026-08-05 14:11:31 +02:00
PlayerPhysicsQuantumCaptureTests.cs fix(physics): port retail slope landing stop 2026-07-31 09:10:53 +02:00
RuntimeActionStateTests.cs refactor(runtime): own combat and magic intent 2026-07-26 11:56:40 +02:00
RuntimeActionTestFactory.cs refactor(runtime): own combat and magic intent 2026-07-26 11:56:40 +02:00
RuntimeAllegianceStateTests.cs fix(net,runtime): FA2 fix-round MUST-FIX -- allegiance clears at reset, 0x027C stops seeding 2026-08-12 02:17:04 +02:00
RuntimeCharacterStateTests.cs fix(ui): restore retail vitals and window interactions 2026-08-20 13:26:35 +02:00
RuntimeCombatAttackStateTests.cs refactor(runtime): own combat and magic intent 2026-07-26 11:56:40 +02:00
RuntimeCombatModeStateTests.cs refactor(runtime): own combat and magic intent 2026-07-26 11:56:40 +02:00
RuntimeCombatTargetStateTests.cs refactor(runtime): own combat and magic intent 2026-07-26 11:56:40 +02:00
RuntimeCommunicationStateTests.cs fix(ui,runtime): OP4 re-review residuals R1-R4 (coordinator pass) — OP4 CLOSED 2026-08-11 06:36:14 +02:00
RuntimeContractStateTests.cs feat(quest): QT3 — the contract tracker becomes state, and the events get routed 2026-08-21 14:46:53 +02:00
RuntimeFellowshipStateTests.cs feat(runtime): FA4 -- fellowship roster enumeration + Social selection source 2026-08-12 04:40:19 +02:00
RuntimeFriendlyTargetQueryTests.cs fix(headless): FA6 — name-match the Recruit bot instead of nearest-any-player 2026-08-12 09:53:46 +02:00
RuntimeGameplayOwnershipTests.cs test: replace campaign labels with behavior names 2026-08-18 12:25:00 +02:00
RuntimeHostileTargetQueryTests.cs feat(headless): complete deterministic bot command parity 2026-07-27 08:23:36 +02:00
RuntimeHouseStateTests.cs fix(ui): morning gate — House tab renders retail's TWO houseless lines, not one 2026-08-17 08:54:55 +02:00
RuntimeInteractionTransactionStateTests.cs fix(vendor): grand-gate findings — wire-truth container counts, the live split bar, arrival-gated use, prepend-order race 2026-08-08 14:03:57 +02:00
RuntimeInventoryStateTests.cs refactor(runtime): close canonical gameplay ownership 2026-07-26 09:48:51 +02:00
RuntimeJournalStateTests.cs feat(journal): QJ1/QJ2 — the journal's pages and their file 2026-08-21 15:31:47 +02:00
RuntimeLocalPlayerFirstEntryStateTests.cs test: remove known tautologies and scaffolds 2026-08-18 10:40:20 +02:00
RuntimeLocalPlayerFrameControllerTests.cs fix(headless): #365 — collision-admission-open window drove the first-entry conductor into a permanent seal refusal 2026-08-10 11:34:36 +02:00
RuntimeLocalPlayerMovementStateTests.cs feat(ui): Campaign OP slice OP4 — the Character tab 2026-08-11 04:31:34 +02:00
RuntimeLocalPlayerPhysicsPublicationStateTests.cs fix(runtime): transient collision-seal failure no longer terminal for login (#357) 2026-08-09 12:32:53 +02:00
RuntimeSpellCastStateTests.cs refactor(runtime): own combat and magic intent 2026-07-26 11:56:40 +02:00
RuntimeTradeStateTests.cs feat: secure trade with other players - wire, RuntimeTradeState, the 2026-08-14 11:49:13 +02:00
RuntimeVendorLifecycleTests.cs fix(vendor): gate-findings pass — the X button HIDES like retail, clicks return, the dropdown scrolls, pyreal suffix, staged-tab slots 2026-08-08 10:29:39 +02:00
RuntimeVendorRangeQueryTests.cs fix(runtime/core): Slice 5.3 review corrections — retirement/transit close, per-unit pricing, guarded auto-close dispatch 2026-08-07 16:15:57 +02:00
TurbineChatMembershipGateTests.cs fix(chat): CH4 review fixes — allegiance ownership guard, house-abandon confirmation 2026-08-09 21:59:35 +02:00
VendorShopItemMaterializerTests.cs fix(vendor): evidence-based pass — max-first stack ceiling; the local player resolves never-animated MoveTo targets 2026-08-08 17:17:04 +02:00