12 min read

Player Platform and SDK v1.1

Capabilities, identity, profiles, runs, errors, and migration.

Capability-first integration

Request only the optional capabilities your game uses. The host returns the approved subset during SDK initialization; unavailable modules must not block gameplay.

<script src="https://cdn.games.devs3.pro/sdk/v1.1/d3-games-sdk.js"></script>

const result = await D3Games.init({
  gameId: "your-game-slug",
  gameVersion: "1.0.0",
  capabilities: ["identity", "profile", "runs"]
});
if (D3Games.capabilities.has("profile")) {
  await D3Games.profile.get();
}

Errors and retries

  1. 1.Catch D3GamesError and branch on code, not message.
  2. 2.Retry only when retryable is true.
  3. 3.The SDK applies one bounded retry to network, 429, and 5xx failures.
  4. 4.Treat AUTH_REQUIRED as a login opportunity, not a gameplay failure.

Migrating from v1

No lifecycle, ad, measure, event, or legacy D3SDK call needs to change. Pin v1.1, request optional capabilities, then adopt modules independently.