The integrated tutorial sample needs your Partner Center credentials to
work with XBOX Live services. The supported setup paths are the repo CLI script
or manually editing the local config files and Project Settings. The
godot_gdk editor plugin no longer docks a Microsoft GDK Setup panel; it keeps the
runtime autoload installed and registers the XBOX on PC export platform.
- Register your title in the Partner Center dashboard. If you don't have a publisher account yet, start with the ID@XBOX program and the Microsoft Game Stack publisher hub.
- Create test accounts in Partner Center → Account Settings → XBOX Live → Test Accounts
- Configure achievements (optional) in Partner Center → XBOX Live → Achievements, then publish to your sandbox. See Microsoft GDK — Achievements for the authoring walkthrough.
- Gather these values from Partner Center → XBOX Live → XBOX Live Setup (see Configuring XBOX services (Title ID + SCID) and Setting up sandboxes):
| Value | Where to find it | Example |
|---|---|---|
| Title ID | XBOX Live Setup | 6718942c |
| MSA App ID | XBOX Live Setup | 93900f42-4313-... |
| Store ID | Product identity page | 9XXXXXXXXX |
| SCID | XBOX Live Setup | 00000000-0000-0000-0000-000067... |
| Sandbox ID | XBOX Live Setup | XDKS.1 |
| Publisher CN | Product identity page | CN=XXXXXXXX-XXXX-... |
Keep these title-specific values in one place before wiring the sample or your own game code:
- Stats and leaderboard identifiers: the exact stat names your title writes
with
GDK.stats, plus any leaderboard/stat relationships your gameplay uses. - Rich presence values: the state/string IDs and token values your title
configured for
GDK.presenceor multiplayer activity surfaces. - Store product IDs: the product IDs you pass to
GDK.storequeries and purchase UI flows. - DLC package layout: each content package's expected
pack_relative_pathto the.pck/.zipyou load withGDK.package.load_resource_pack_async(). The runtime-discoveredpackage_identifiercomes fromenumerate_packages()/find_package_by_identifier(), but the pack-relative path is title-owned. - Sandbox + test accounts: the active sandbox ID, the test accounts provisioned into that sandbox, and the PC sandbox currently selected on the development machine.
- Peer-XUID prerequisites: additional signed-in test accounts/XUIDs for invites, recent-player updates, profile-card UI, reputation feedback, and any other peer-targeted XBOX service flow.
From the repository root, build the mirrored sample addons and run the setup script:
cmake --build build --preset debug
pwsh -NoLogo -NoProfile -ExecutionPolicy Bypass -File .\tools\setup_sample.ps1The script prompts for each Partner Center value, derives the current-title
SCID, then writes sample\tutorial_integrated\sample_config.cfg and
sample\tutorial_integrated\MicrosoftGame.config (the default target; pass
-ConfigPath to target sample\tutorial_gdk\ instead, or the PlayFab-only
sample\tutorial_playfab\ which needs only a PlayFab title id). If
export_presets.cfg already exists in that project, the script also updates
the matching export-preset fields. The script does not create the preset from
scratch; start from the sample's checked-in base preset.
The generated files are gitignored, so your credentials stay local.
- Copy
sample\tutorial_integrated\sample_config.cfg.templatetosample\tutorial_integrated\sample_config.cfgand fill in the Partner Center values used by the tutorial scripts. - Copy
sample\tutorial_integrated\MicrosoftGame.config.templatetosample\tutorial_integrated\MicrosoftGame.configand replace the Title ID, MSA App ID, Store ID, identity, publisher, and visual placeholders. - Open
sample\tutorial_integrated\project.godotin Godot. The committed project already enables thegodot_gdk,godot_playfab, andgodot_gdk_editortoolsplugins after the CMake build mirrors them intosample\tutorial_integrated\addons\. - Review Project → Project Settings for
gdk/runtime/*startup settings and any PlayFab runtime values needed by the tutorial scenes. - For editor-driven packaging, use Project → Export… → Add… →
XBOX on PC. For scripted packaging and sandbox actions, use the separategodot_gdk_editortoolsaddon (addons\godot_gdk_editortools\gdkpkg.cmdor its top-level Microsoft GDK editor menu).
Setting the PC sandbox and signing into a test account is covered in its
own document — see platform/xbox-sandbox-and-test-accounts.md.
The short version:
# Set sandbox (requires admin)
& "C:\Program Files (x86)\Microsoft GDK\bin\XblPCSandbox.exe" YOUR_SANDBOX_ID
# Verify
& "C:\Program Files (x86)\Microsoft GDK\bin\XblPCSandbox.exe"The sample uses XBOX test accounts, not personal Microsoft accounts:
- Ensure your PC sandbox matches the sandbox in Partner Center
- Launch the sample — it will attempt silent sign-in automatically
- If prompted, sign in with your test account credentials (not your personal account)
- Your test account must be provisioned in Partner Center under the same sandbox
Tip: If sign-in fails, see the troubleshooting table in
platform/xbox-sandbox-and-test-accounts.md.
project.godot
└─► addons/godot_gdk/runtime/gdk_bootstrap.gd
reads gdk/runtime/* startup flags → initializes GDK / silent sign-in
sample_config.cfg (local tutorial values)
└─► tutorial scenes read achievement and sandbox-related sample settings
MicrosoftGame.config
└─► packaging/export flows read title identity and shell visuals
The CLI script writes both generated files from the same prompts. When you edit
manually, keep sample_config.cfg, MicrosoftGame.config, and any export
preset values aligned yourself; there is no docked GDK Setup panel in the
current runtime addon.
Achievements must be configured in Partner Center and published to your development sandbox before they can be unlocked. See Microsoft GDK — Achievements for the authoring walkthrough.
To reset achievements for re-testing, use the included helper script:
.\tools\reset_player_data.ps1This signs into Partner Center via XblDevAccount.exe, then calls
XblPlayerDataReset.exe to wipe achievements, stats, and leaderboards for
the specified test account. You'll need:
- Service Config ID (SCID) — from Partner Center → XBOX Live → XBOX Live Setup
- Sandbox ID — the development sandbox your test account is signed into
- XUID — the XBOX User ID of the test account to reset
Note: Resets only work on XBOX test accounts in a development sandbox, not retail accounts. Restart the game after resetting for changes to take effect.