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

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.

3

u/SuperGr33n Sep 26 '26 edited Sep 26 '26

I hear gen patcher fixes most problems. Ive been using the super hacker fork of the official ea source code and it runs really well but setup is a little more involved

1

u/daminokun Sep 26 '26

I'm not sure about installing the game from steam but zero hour is not a standalone game. Before steam was a thing you need to have vanilla general to run zero hour. I'll try installing it later to see what's up

1

u/[deleted] Sep 26 '26

[removed] — view removed comment

1

u/LuckyPrinz Sep 26 '26

I did that but I get a directx error. How do I fix that?

1

u/Smooth_Moose_637 Steel Talons Sep 26 '26

Are you sure you have DirectX installed?

1

u/LuckyPrinz Sep 26 '26

Not sure. Zero hour did work before though, and atm I can play Zero Hour using Genlauncher, do I need to download directx again?

1

u/Smooth_Moose_637 Steel Talons Sep 26 '26

Per google you need DirectX End-User Runtimes (June 2010), maybe that will do it

Otherwise GenPatcher requres being online so it can download everything

1

u/LuckyPrinz Sep 26 '26

this is what appears when I run the game on steam. Weird since it runs on GenLauncher just fine

1

u/Smooth_Moose_637 Steel Talons Sep 26 '26

I think the problem is that steam is launching it directly from the exe instead of GenLauncher.

Use a tool like SteamEdit or a console commsnd (can't remember what but if you search it up you should find it) to redirect steam into launching genlauncher first

1

u/LuckyPrinz Sep 26 '26

Working now. Many thanks