Skip to content

Kiln API / kiln / ReplayResult

Interface: ReplayResult ​

What a replay found.

Properties ​

PropertyTypeDescription
framesnumberFrames played so far, and in the recording.
totalnumber-
checkednumberCheckpoints compared so far.
divergedAtnumber | nullThe first checkpoint frame whose state hash differs from the session, or null if all matched. Expected after the game's code changes (a fix changes the state); before a change it means the headless run drifted from the browser (physics, Math.* differences between engines, wall-clock reads), and frames after it may not reproduce what the player saw.
notesstring[]The recording's notes plus anything the replay noticed.
recordedError?objectThe error the session ended with, if any; a faithful replay throws it at the same frame.
recordedError.framenumber-
recordedError.messagestring-
recordedError.code?string-