Let a syncing spectator look around

Review asked for the spectator to move freely while it waits. Only a jump
of more than 16 tiles from where it was last seen, or to another surface,
counts as a teleport and moves the restore location. The body place names
from #1156 become restore_location, keep_restore_location and
controller_taken.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
bbassieandClaude Opus 5.5 committed 2026-11-03 07:36:20 +00:00
1 parent 2fcf3f10c7
commit 1c804b05b7
3 files changed
+59 -50

No files matched your search

+2 -2
View File
@@ -77,8 +77,8 @@ The greatly simplified data flow is as follows:
7. Scenario displays and updates a progress bar as each chunk is received.
8. Once all chunks have loaded the player's synced inventory is recreated from the data and the player can start playing.
While the player is a spectator waiting for the data they can't walk away, and their controller comes back where it was.
A mod that teleports the spectator more than 4 tiles, or to another surface, moves where the controller comes back to.
While the player is a spectator waiting for the data they can look around, and their controller comes back where it was.
A mod that teleports the spectator more than 16 tiles, or to another surface, moves where the controller comes back to.
When the player leaves the inventory is uploaded if it's a synced inventory and the exclusive access the scenario script holds is released.
Should an error occur during this process the player is given the option to use a temporary inventory instead, which will be merged back into the synced inventory the next time the sync succeeds on that instance.