Skip to content

CrashReport beta ​

Interface of @v12-engine/client

ts
export interface CrashReport

What 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 ​

ts
error?: {
        name: string;
        message: string;
        stack?: string;
    };

The error itself, where there was one: a lost device has none

game ​

ts
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 ​

ts
kind: CrashKind;

What kind of stop it was, such as a lost device or an error in the rules

logs ​

ts
logs: readonly LogEntry[];

The last things the client and the game said (client.logs), the oldest first

message ​

ts
message: string;

What the player is told, in a sentence

replay ​

ts
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 ​

ts
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 ​

ts
tick?: number;

The tick the game was at, once it was on

time ​

ts
time: number;

When, in milliseconds of the clock (Date.now)

where ​

ts
where?: string;

The part it came from, in words: the system "waves", the frame