diff --git a/README.md b/README.md index 15f3be7..a90026f 100644 --- a/README.md +++ b/README.md @@ -94,8 +94,8 @@ run `start-windowed.bat` — the game boots into the setup menu, where the SCENARIO group picks Death Race or Football (Football swaps in the team/position columns and its own track list). Steam multiplayer: see [docs/STEAM-3-MACHINE-TEST.md](docs/STEAM-3-MACHINE-TEST.md). It runs -under Red Planet's own AppID, 5108000, so the Steam client reports the -game by name instead of as Spacewar. +under Spacewar (480) for now; Red Planet's own AppID, 5108000, is parked +until its Steam permissions are sorted. The config files beside the exe are self-documenting and none of them ship: the game writes each one the first time it needs it and then leaves diff --git a/RP_L4/RPL4ENVIRON.cpp b/RP_L4/RPL4ENVIRON.cpp index de7ad3f..256d682 100644 --- a/RP_L4/RPL4ENVIRON.cpp +++ b/RP_L4/RPL4ENVIRON.cpp @@ -312,10 +312,10 @@ namespace "# stop the game starting, and steam_api.dll being absent altogether is\n" "# fine. 0 = TCP only.\n" "#\n" -"# steam_appid.txt holds 5108000, Red Planet's own AppID, so the Steam\n" -"# client reports you as playing Red Planet rather than Spacewar. It has\n" -"# to be there for a copy started from its own folder; the number itself\n" -"# changes nothing else.\n" +"# steam_appid.txt has to be there for a copy started from its own\n" +"# folder. It currently holds 480 - Valve's public Spacewar - so that is\n" +"# the name Steam shows you as playing. Red Planet's own AppID is on the\n" +"# way once its permissions are settled.\n" "RP412STEAM=1\n" "\n" "# Line up each remote player's clock with ours, so their vehicle is\n" diff --git a/docs/STEAM-3-MACHINE-TEST.md b/docs/STEAM-3-MACHINE-TEST.md index 937414c..78ba714 100644 --- a/docs/STEAM-3-MACHINE-TEST.md +++ b/docs/STEAM-3-MACHINE-TEST.md @@ -11,17 +11,16 @@ the first live test. 2. Copy the `dist\` folder onto the machine. 3. Start with `start-windowed.bat` as usual. -The packed dist already contains `steam_appid.txt` (5108000 — Red -Planet's own AppID; builds before that ran under Spacewar, 480) and ships -`RP412STEAM=1` in `environ.ini`. If a machine has an older dist, check -both before blaming the network: a missing appid file makes -SteamAPI_Init fail and the game quietly falls back to TCP. +The packed dist already contains `steam_appid.txt` (480 — Valve's public +Spacewar) and ships `RP412STEAM=1` in `environ.ini`. If a machine has an +older dist, check both before blaming the network: a missing appid file +makes SteamAPI_Init fail and the game quietly falls back to TCP. -The switch off Spacewar changes what Steam thinks you are playing and -nothing else: the client now names Red Planet on the friends list. -`SteamAPI_Init` does not check entitlement, so a machine behaves exactly -as it did under 480 — confirmed by dropping the new number into an older -dist, which ran unchanged. +Red Planet's own AppID, 5108000, is parked until its Steam permissions +are sorted out. It does work — dropped into a dist it runs exactly as 480 +does, the client simply names Red Planet on the friends list instead of +Spacewar — so the switch, when it comes, changes nothing a tester has to +do. `pack-dist.ps1` carries the number in one variable. Sanity check per machine: `rpl4.log` should show `SteamNetTransport: up as 169.254.x.y (fake ports N console, M game)`. @@ -53,11 +52,11 @@ appid file is missing. Steam Input intercepts Xbox controllers the moment the game initializes SteamAPI, hiding them from XInput entirely - the pad works everywhere -else and is invisible only in-game (reproduced A/B on the dev box, under -Spacewar; nothing about it was specific to that AppID). Fix, either -scope: +else and is invisible only in-game (reproduced A/B on the dev box). +Nothing about it is specific to the AppID, but the entry to click is +named after it. Fix, either scope: -- Per game: Steam Library -> Red Planet -> Properties -> Controller -> +- Per game: Steam Library -> Spacewar -> Properties -> Controller -> Override: **Disable Steam Input**. - Global: Steam -> Settings -> Controller -> uncheck **Enable Steam Input for Xbox controllers**. diff --git a/docs/rp412-handbook.html b/docs/rp412-handbook.html index e967c06..b9a8595 100644 --- a/docs/rp412-handbook.html +++ b/docs/rp412-handbook.html @@ -1543,7 +1543,7 @@ JOYSTICK.INIThe 1995 single-stick calibration, for the legacy L4CONTROLS=DIJOYSTICK path only. Modern sticks are configured in bindings.txt — see above. *.CFG in AUDIO\Pod audio-hardware mixer tables. Dead weight on a desktop; kept because the arcade path still reads them. RPL4.RESResource blob, not text. - steam_appid.txtRed Planet’s Steam AppID, 5108000. It tells the Steam client which game this is when you start it straight from the folder, so your friends list shows Red Planet rather than Spacewar. Delete it and Steam networking cannot start — the game falls back to plain TCP without saying much about it. + steam_appid.txtTells the Steam client which game this is when you start it straight from the folder. It holds 480 — Valve’s public Spacewar — so that is the name your friends list will show for now; Red Planet’s own AppID follows once its permissions are settled. Delete the file and Steam networking cannot start — the game falls back to plain TCP without saying much about it. diff --git a/pack-dist.ps1 b/pack-dist.ps1 index 9e4212e..e4abd88 100644 --- a/pack-dist.ps1 +++ b/pack-dist.ps1 @@ -95,22 +95,24 @@ if (Test-Path $pdb) { Copy-Item $pdb $dist } # activates with RP412STEAM=1; plain desktop runs never touch it. Copy-Item (Join-Path $root 'extern\steamworks_sdk_165\sdk\redistributable_bin\steam_api.dll') $dist -# steam_appid.txt: Red Planet's own AppID, 5108000. It is what lets a -# build started straight from the folder - which is how every tester runs -# it - tell the Steam client which app it is. Without the file -# SteamAPI_Init fails and the game drops to plain TCP, which is exactly -# the confusing symptom testers hit when it goes missing. +# steam_appid.txt: which app the Steam client thinks this is. It is what +# lets a build started straight from the folder - which is how every +# tester runs it - identify itself. Without the file SteamAPI_Init fails +# and the game drops to plain TCP, which is exactly the confusing symptom +# testers hit when it goes missing. # -# What changes against the old Spacewar (480) number is what Steam thinks -# you are playing: the client now says Red Planet. SteamAPI_Init itself -# does not check entitlement, so a build carrying this file behaves the -# same as it did under 480 - verified by dropping the new number into an -# older dist. +# Red Planet's own AppID is 5108000 and it works: dropped into a dist it +# runs exactly as 480 does, the client simply names Red Planet instead of +# Spacewar. It is parked until the permissions on it are sorted out with +# Steam. Until then we stay on Valve's public 480 (Spacewar). +# +# Flipping back is this one line - no code anywhere knows the number. +$steamAppId = '480' # '5108000' once the Steam permissions are sorted # # Retail builds launched BY the Steam client do not need this file at all # - the client supplies the AppID - and Valve would rather it were not in # the shipped depot. -Set-Content -Path "$dist\steam_appid.txt" -Encoding ascii -Value '5108000' +Set-Content -Path "$dist\steam_appid.txt" -Encoding ascii -Value $steamAppId # --- game data ------------------------------------------------------------- foreach ($dir in 'AUDIO', 'GAUGE', 'VIDEO') {