Skip to content

AutoStory: story engine for a zone game (PLZA slice 1, C) - #574

Closed
dayfine wants to merge 11 commits into
plza/slice1/bfrom
plza/slice1/c
Closed

dayfine wants to merge 11 commits into
plza/slice1/bfrom
plza/slice1/c

Conversation

@dayfine

@dayfine dayfine commented Nov 15, 2026

Copy link
Copy Markdown
Owner

Depends on #573

The second piece of PLZA slice 1 is the shared engine a zone game needs to play its checkpoints: the backend interface and a scripted FakeStoryBackend, the game's action table with its lint and dispatch, a step runner, a straight-line event runner, the checkpoint retry loop, and run_segment with saves and reloads. CommonTools gains the shared screen events, fades, same_screen and the ScreenObservation look. Copied from the PLZA AutoStory branch and trimmed: no built-in tile actions, grid poses, skip_if, recoveries, interrupts or postconditions yet. Unit tests run the engine on the scripted backend (passes, failures, retries after reloads, no reload without a save, lint, console_only, a walk waiting for a scripted white fade) and cover the event runner, the retry loop, the backend pieces and the screen events; no console run.

The shared engine one zone game (PLZA) needs to run checkpoints: the
backend interface and a scripted FakeStoryBackend, the game's action
table with its lint and dispatch, a step runner, a straight-line event
runner, the checkpoint retry loop, and the engine's run_segment with
saves and reloads. CommonTools gains the shared screen events, fades,
same_screen and the ScreenObservation look.
dayfine and others added 10 commits November 15, 2026 15:32
# Conflicts:
#	SerialPrograms/Source/ComputerPrograms/ComputerPrograms_UnitTestRunner.cpp
#	SerialPrograms/Source/Pokemon/AutoStory/Pokemon_AutoStory_Tests.h
#	SerialPrograms/cmake/SourceFiles.cmake
…ests that restate name tables

The direction degrees, backend kind names and zone pose text cases only repeated the tables they
read.
…t need

log_detail() writes the file log only; by default it is log(). The fake
backend records it in lines() but not overlay_lines(), so tests can check
which lines reach the stream's overlay.

Ported from plza/slice5b b533878 (its engine part), where PLZA's scene
machine first used it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
@dayfine

dayfine commented Nov 17, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #644 (one lean branch; split for review later)

@dayfine dayfine closed this Nov 17, 2026
@dayfine
dayfine deleted the plza/slice1/c branch November 17, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant