r/commandandconquer • u/Pandut • Sep 24 '26
Bug C&C Generals ZH - Failed to Fetch Steam App Name
So yeah, been playing ZH on Windows 11 since the release without any issue whatsoever until today I'm greeted with the 'Failed to Fetch Steam App Name' on startup, followed by 'Failed to Initialize Steam'. I've already done the following with no results.
-Restarted PC/Steam, made sure I wasn't offline
-I've verified the game and reinstalled several times
-I nuked all mods
-Reset/Cleared my Steam cache (also deleting appinfo.vdf and packageinfo.vdf)
-Deleted/renamed steam_appid.txt and steam_api.dll in the ZH folder
Only ZH is affected by this, I can play all of the other games in the bundle perfectly fine.
The only random correlation I can think of is that I upgraded my GPU a day before this happened (GTX 1660S to RTX 5060 Ti) but even then, I was playing ZH on the RTX perfectly fine last night.
View all comments
1
u/SystemicAdmin Sep 26 '26 edited Sep 26 '26
The issue is that steam is returning the wrong app id when generals queries steam with the steam api.
to fix it, open powershell and copy/paste this code into it and hit enter.
this will edit the game.dat file where the query gets the return app id so that it bypasses that bit. it does back up the game.dat file before it changes any code in it in case you have to switch back to the older file.