SDK errors and diagnostics
Find the cause from the error code and details.
EngineError includes a code, a subsystem, details, and the original cause. This helps distinguish a missing asset from an invalid token or bad input.
If the SDK cannot find an asset bundle, AssetMissingRequired identifies it by name. DiProviderNotFound means the token has no registration.
Scene did not openscenes.map → SceneDiDefinition → layout ID
Component missingJSON type → registration in ComponentsGroup
Command did not runCurrent state → event in on → CommandsGroup
Configuration could not be readManifest → loading → bootstrap → decoder
Screen did not updateEvent → active subscription → correct node
Observing the engine
engine.diagnostics.subscribe reports errors and system timings. It returns an unsubscribe function:
const off = engine.diagnostics.subscribe((record) => {
if (record.kind === 'timing') {
console.log(record.source, record.durationMs);
}
});
Call off() when observation ends. These are CPU timings, not measurements of completed GPU frames. The SDK does not retain a measurement history.
Debugging Block Puzzle
Block Puzzle has a debug service that sends ResultReady with a chosen score. This opens the results window without playing a full session. GameDevtoolsApiService.ts