Steam app id detection disagrees with what Steam writes #39

Closed
opened 2026-10-23 22:12:50 -05:00 by ethan-hann · 0 comments
Owner

An audit of the installed Steam games on one PC (174 installed, 25 with steam_appid.txt in the install folder) found:

  • 13 of the 25 files end in a newline and a NUL byte. Trim() keeps the NUL, so the detector rejects them and falls back to the manifest (SteamAppIdDetector.cs:57). A game copied outside a Steam library then gets no id.
  • 12 more games keep the file only in a subfolder (for example Binaries/Win64), which is never checked.
  • 2 of the 12 clean files name an id with no store page: Mafia III says 398870 (its manifest says 360430), House Flipper says 1471280 (manifest 613100). Because the file is read before the manifest (SteamAppIdDetector.cs:28), both get no artwork.

Wanted: inside a Steam library, the manifest's id wins and the file is the fallback; the file parser accepts trailing NUL bytes and whitespace (digits only, nothing else); the usual binary subfolders are checked. The image servers may also answer with image/png (2 of 58 sampled cached tall images are PNG data); accept PNG and WebP content types and let the image check judge the bytes.

An audit of the installed Steam games on one PC (174 installed, 25 with `steam_appid.txt` in the install folder) found: - 13 of the 25 files end in a newline and a NUL byte. `Trim()` keeps the NUL, so the detector rejects them and falls back to the manifest (`SteamAppIdDetector.cs:57`). A game copied outside a Steam library then gets no id. - 12 more games keep the file only in a subfolder (for example `Binaries/Win64`), which is never checked. - 2 of the 12 clean files name an id with no store page: Mafia III says 398870 (its manifest says 360430), House Flipper says 1471280 (manifest 613100). Because the file is read before the manifest (`SteamAppIdDetector.cs:28`), both get no artwork. Wanted: inside a Steam library, the manifest's id wins and the file is the fallback; the file parser accepts trailing NUL bytes and whitespace (digits only, nothing else); the usual binary subfolders are checked. The image servers may also answer with `image/png` (2 of 58 sampled cached tall images are PNG data); accept PNG and WebP content types and let the image check judge the bytes.
ethan-hann added this to the 0.9.1 milestone 2026-10-23 22:12:50 -05:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ethan-hann/SavePoint#39
No description provided.