mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4618] [Issue]: Make queued navigation explicit: step-by-step and fast travel modes #2523
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2523
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @thetopham on GitHub (Aug 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4618
Originally assigned to: @thetopham on GitHub.
Summary
Game Mode and Roleplay need one simple, shared navigation contract. The original behavior was step-by-step travel through attached or adjacent nodes. Newer queued and instant-travel behavior was layered on top, and the two semantics now conflict across map clicks, CYOA choices, typed actions, and other submit paths.
Users may want both traversal styles, so travel mode should be explicit instead of inferred from whichever movement path handled the action.
Proposed behavior
1. Select a travel mode
Selecting a destination only creates or updates a pending route. It must not silently generate a turn or mutate the narrative location.
2. Inject one canonical movement event
When the next accepted narrative action is submitted, the server adds a movement event that both Game Mode and Roleplay can understand:
<movement_this_turn>
From: Spiral Forecourt
To: Floor 1 - Verdant Foundations
Route target: Floor 5 - Horned Warden's Court
This movement is canonical. Narrate the travel and arrival, then resolve the
selected or typed action. Do not produce another location change.
</movement_this_turn>
In step-by-step mode, To is the next attached node and Route target remains the selected destination. In fast-travel mode, To is the selected destination.
3. Consume movement consistently
4. Preserve directed links
The current spatial state resolver can call
addAvailableLink(...)withbidirectional: truewhen an assistant move or exact location guidance targets a known but unreachable location. The unified movement contract must remove that fallback from ordinary movement and keep discovery as a separate, explicit map mutation.Current problem
Scope
Preserve map generation, hierarchical World Maps, attached-node validation, and lorebook attachments. Simplify the navigation orchestration and make the movement event the single contract shared by Game Mode and Roleplay.
Acceptance criteria
The UI exposes an explicit travel mode for a queued destination, defaulting to step-by-step.
Both modes produce the same movement_this_turn contract with different validated From and To values.
CYOA, typed Game Mode input, and typed Roleplay input behave identically when a route is queued.
The server owns route validation, one-step or fast resolution, atomic state commit, and route advancement.
Directed links are enforced in both travel modes, and an unreachable assistant move cannot mutate link direction or availability.
Tests cover adjacent step travel, multi-node step travel, fast travel, one-way route acceptance and rejection, unreachable assistant movement, explicit hidden-path discovery, CYOA submission, typed submission, failed-turn retry, and duplicate movement suppression.
I DID NOT read this template and provide the requested details.