CrashReport beta
Interface of @v12-engine/client
export interface CrashReportWhat is known of a game that stopped, as plain data: for the error screen, and for a crash report the game sends where it likes (onCrash). The library sends it nowhere by itself
Members
error
error?: {
name: string;
message: string;
stack?: string;
};The error itself, where there was one: a lost device has none
game
game: {
id?: string;
name: string;
version?: string;
hash?: string;
};The game: its id, what it is called, its version (Rules.version) and the exact one (Registry.hash)
kind
kind: CrashKind;What kind of stop it was, such as a lost device or an error in the rules
logs
logs: readonly LogEntry[];The last things the client and the game said (client.logs), the oldest first
message
message: string;What the player is told, in a sentence
replay
replay?: Replay;The game from its start as it was recorded (recordGame), for a game played in the page that was: to play back up to the stop
save
save?: WorldSave;The game as it stood when it stopped, for a game played in the page whose world could still be saved (after an error in its rules too, where it can): to load and look at, or to go on from
tick
tick?: number;The tick the game was at, once it was on
time
time: number;When, in milliseconds of the clock (Date.now)
where
where?: string;The part it came from, in words: the system "waves", the frame