The Mods tab's map reload can start a story event #3148
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot#3148
Loading…
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?
What happens
Reload the map to see the change (the Mods tab's first line after a mod's file changes while the game runs) can start a story event, and then does not put Link back.
The reload (
game/crates/api/src/services/reload.rs) re-enters the map through its destination's entrance, the way the Debug tab's teleport does, and moves Link back afterwards. Whatever the game plays on arriving there plays first.Seen
One headless run on Linux (NVIDIA RTX 3090), on a throwaway copy of the
kokiri-startrepository save, with a file mod switched on in Kokiri Forest:Arriving at the bridge started the cutscene where Link is given the Fairy Ocarina. The effect on a real save has not been checked, but a story event firing could advance it.
docs/modding/dev.mdmarks the reload as Preview, not yet tried in a game run.What would fix it
Loading the area again with Link where he stands, with no entrance or arrival event. No such map change is known yet: it needs looking into the game's own map change (
game_core::travel).A follow-up change stops offering the reload outside mod development mode (the change then shows when the area next loads). This issue is for bringing back a reload that is safe on real saves.
🤖 Generated with Claude Code
https://claude.ai/code/session_017vw8e1rSeTzGtqzZNG1YZH
Checked: this looks like a valid bug, and its cause is visible in the code.
The reload re-enters Kokiri Forest through the bridge entrance with an arrival event, then waits until Link is in play before moving him back. If he remains out of play long enough, it gives up without restoring his position. The code supports the reported failure mechanism, though I could not independently verify the specific Fairy Ocarina cutscene or whether it advances a real save.
For maintainers
Code inspected:
game/crates/api/src/services/reload.rsdocuments entering via the destination's start before moving Link back;startgets the destination and callsgame.travel(index). ItsGame::travelcontract says the map change is made through the game's travel queue. The report'sdocs/modding/dev.mdreference says the feature is Preview/not tried in a game run. No version/channel or driver version was provided.The current checkout still uses the entrance-based teleport path; the reported follow-up restricting the offer is not present in the reload service. The travel module documents the existing event-based map change at game/crates/game-core/src/travel.rs:5; I did not find an established entrance-free reload path.
Seen in the code:
d984fd704; the reload file has no later commits in this checkout.Automated triage by BeanBot (gpt-6-luna). Nothing was run; a maintainer decides.