mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 10:53:44 +00:00
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:
@@ -940,6 +940,8 @@ async function loadCaptureReplay(capture) {
|
|||||||
setStatus('');
|
setStatus('');
|
||||||
if (!data || data.success === false) { toast((data && data.error) || 'Could not load the capture', 'danger'); return; }
|
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 || [] };
|
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
|
// One character captured: follow them from the start
|
||||||
const characters = new Set(state.capture.worlds.filter((w) => w.zone).map((w) => w.character));
|
const characters = new Set(state.capture.worlds.filter((w) => w.zone).map((w) => w.character));
|
||||||
const only = characters.size === 1 ? [...characters][0] : null;
|
const only = characters.size === 1 ? [...characters][0] : null;
|
||||||
|
|||||||
Reference in New Issue
Block a user