Two commands once it's set up:
scripts/build-deck-bundle.sh # produces out/keeperfx-deck/
scripts/deploy-to-deck.sh --assets "<your game dir>" --runOn the Deck (Desktop Mode, Konsole):
-
Set a
deckpassword if needed:passwd. -
Enable SSH:
sudo systemctl enable --now sshd. -
From your PC, install a key so logins are password-less:
ssh-copy-id deck@<deck-ip>. -
Add an SSH alias so everything can say
steamdeck. In~/.ssh/config(Windows:%USERPROFILE%\.ssh\config):Host steamdeck HostName 192.168.1.xx # your Deck's LAN IP User deck
Test: ssh steamdeck echo ok.
scripts/build-deck-bundle.shassets is where the full data of keeperfx is on your machine.
scripts/deploy-to-deck.sh --assets "C:/path/to/keeperfx game dir" --runThe first deploy will push everything, the rest just what changes
scripts/deploy-to-deck.sh --gdb deploys and starts gdbserver :2345 on the Deck
(SteamOS ships gdbserver; it also falls back to a kfx distrobox if present).
scripts/deploy-to-deck.sh --gdb.- Run the "Attach to Steam Deck (gdbserver)" config (from
.vscode/launch.json); it attaches tosteamdeck:2345, reading symbols from your local build. - Or use the "Deploy + Debug on Steam Deck" task to do the deploy + server launch first.
Point program at your local out/keeperfx-deck/keeperfx (same binary, with
symbols); sourceFileMap binds breakpoints to your working copy.
Install Remote - SSH (recommended in
.vscode/extensions.json), connect to steamdeck,
and work deck-side with a plain local gdb. Tightest inner loop; the Deck compiles.
Tools → Options → Cross Platform → Connection Manager→ add the Deck.scripts/deploy-to-deck.sh --gdb.- Pick the "keeperfx on Steam Deck (gdbserver)" profile in
launch.vs.json; adjustmiDebuggerServerAddress/miDebuggerPathto your setup.