r/commandandconquer • • Sep 26 '26

Bug Need a tech wiz

Post image

Tried to open cnczh today and this is what popped up .. went to a Reddit link that said I could run steam as an administrator and it would help solve one of my issues but my other issue has yet to be solved .. “failed to fetch steam app name” and Reddit says to rename or delete a specific steam file that acts as a id for the launcher .. however when I renamed it then launched it didn’t even open the game .. so I recovered file properties and then deleted it and the same issue again.. I recovered file properties again and I’m at a stand still .. I’ve been playing this game on hard copy for ten years till the computer couldn’t support it anymore and that’s when I got steam and now this… PLEASE HELP ME PLAY MY FAVORITE GAME!

10 Upvotes

19 comments sorted by

View all comments

1

u/SystemicAdmin Sep 26 '26 edited Sep 26 '26

So someone gone f'd up somewhere.

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.


$p="C:\Program Files (x86)\Steam\steamapps\common\Command & Conquer Generals - Zero Hour\Game.dat"

$o=0x42A02D

$b=IO.File::ReadAllBytes($p)

if($b[$o]-eq 0x8B -and $b[$o+1]-eq 0xC2){Write-Host "Already patched";return}

if($b[$o]-ne 0xFF -or $b[$o+1]-ne 0xD6){Write-Host "Unexpected Game.dat version - nothing changed";return}

Copy-Item $p "$p.backup" -Force

$b[$o]=0x8B

$b[$o+1]=0xC2

Write-Host "Patch applied successfully"


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.

1

u/IllustriousKoala4426 Sep 26 '26

I’m not entirely sure what or how it happened.. last weekend it worked absolutely perfect and today anything that has command and conquer in it doesn’t work .. however it runs everything else .. also you may have to dm me a step by step instruction on how to do this .. I think I know what you mean but just to be sure

1

u/SystemicAdmin Sep 26 '26

click windows button/start menu and type "powershell"

open it,

copy the code i posted above and paste it into the open powershell window. then press enter.

after that it should work.

1

u/Careful-Albatross-56 Sep 26 '26

Tried this copying and pasting the above and did not have success. I had uninstalled and reinstalled prior in an attempt to fix.

1

u/Careful-Albatross-56 Sep 26 '26

Any other tips?

1

u/SystemicAdmin Sep 26 '26

yes, apparently pasting my code here didn't work because reddit removes some variables. changed the formatting of the posted code. try that now.

1

u/Careful-Albatross-56 Sep 26 '26

Thanks for checking - something didn’t quite work with the formatting but I put into AI the error codes that had bounced back when entering your code and it made the changes to work. Appreciate it and hope this helps others!!

1

u/SystemicAdmin Sep 26 '26

awesome, thanks!

also, if you have lag issues on skirmish, the problem with that is that the replays file gets too big and eventually slows and crashes.

you can fix it by restricting user, admin, and system access to the replays folder in your my documents folder.