fix(dashboard): World 3D plays a packet capture at 1x

The replay speed saved for recorded positions (60x by default) is for scrubbing through hours of movement. A capture is minutes long and played too fast at that speed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-09-30 07:41:13 -05:00
parent 3018312f29
commit f309cf0528

View File

@@ -940,6 +940,8 @@ async function loadCaptureReplay(capture) {
setStatus('');
if (!data || data.success === false) { toast((data && data.error) || 'Could not load the capture', 'danger'); return; }
state.capture = { id: String(capture), data, worlds: data.worlds || [] };
// A capture plays in real time (the saved speed is for scrubbing through hours of recorded positions)
$('replaySpeed').value = '1';
// One character captured: follow them from the start
const characters = new Set(state.capture.worlds.filter((w) => w.zone).map((w) => w.character));
const only = characters.size === 1 ? [...characters][0] : null;