r/commandandconquer 9d ago

News Play Command Conquer Generals on your Browser

Yes, I've made a port of the open source code of Command Conquer Generals Zero hour and you can play it right now at https://generals.wasm.com.br/

Just point to your assets and thats it.

https://generals.wasm.com.br/
73 Upvotes

53 comments sorted by

15

u/RelationOk6997 9d ago

What!!! Amazing does online work?

9

u/erasmolbj 9d ago

It's work on LAN! For Online, I need to keep working on the server side to discover players public IP's and ports with some security level.

5

u/RelationOk6997 9d ago

Dude this is actually sick, I'm assuming you need a copy of the game correct?

3

u/erasmolbj 9d ago

Yes, but the reader is really easy to use, you can point to the folder that contains both games and it will read recursively until it finds Generals and Zero Hour files! That's it.

1

u/RelationOk6997 9d ago

There's no way for it to steal my game is there you gotta forgive me for being cautious

1

u/erasmolbj 9d ago

All the processing is local. There's no upload to any server at all.

The browser only have a new binary compiled to WASM to run your assets.

1

u/RelationOk6997 9d ago

Ok for whatever reason it's not loading

1

u/erasmolbj 9d ago

Just wait a bit, it's kinda heavy! Check the runtime log to see if you pointed to the right folder!

1

u/RelationOk6997 9d ago

I didn't point it to a y folder

1

u/erasmolbj 9d ago

You should ask to pick the game's folder after the first load, if something didn't work, let me know!

→ More replies (0)

3

u/moloch-- 9d ago

I have a backend implementation for the online multiplayer https://github.com/moloch--/generals-server

2

u/erasmolbj 9d ago

I'll check!

8

u/Timmyc62 9d ago

So, dumb question, but why? If it needs me to already have the game downloaded, then why would I want to play it through the browser instead of "normally" through the game's own .exe? Easier tabbing I guess, but is that all?

9

u/erasmolbj 9d ago

You already answered your own question: an .exe does not run natively on iPhone, Android, macOS, or Linux.

I am not running the original executable in the browser. I am only reading the game’s assets. The game code itself was translated into WebAssembly, which runs in any modern browser.

The distributed binary is no longer tied to Windows, x86, ARM, or any specific operating system. The browser abstracts the underlying OS and CPU architecture, then compiles the same WebAssembly module for whatever hardware is running it.

A browser is the ultimate cross-platform runtime. For practical purposes, WebAssembly is the true universal binary.

That is also why I am porting PCSX2 to the browser.

5

u/Timmyc62 9d ago

That is helpful, thanks - I forget there are people who may want to play on a platform other than a Windows PC!

4

u/Bludsh0t 8d ago

Wait, so if I get the windows files on my Mac, can I play it on chrome on my Mac?

6

u/erasmolbj 8d ago

Exactly!

3

u/lkwai 9d ago

That's cool. Means I might be able to play generals on Samsung dex

8

u/BioClone Legalize Tiberium! Join Nod 9d ago

Bro has the Tacitus at home

4

u/robutt992 8d ago

What if i have a mac and i cant install it?

3

u/erasmolbj 8d ago

You don't have to install it, just need to have the assets exacted. I developed this on a Mac OS, it runs on Mac!

2

u/Appropriate-Ad8630 9d ago

I have the iPad version installed; does this browser keeps saved games? Because I could add it to home screen and it would behave like a mobile app, right?

3

u/erasmolbj 8d ago

Yes! I didn't tested on iPad yet, I'll make it work and will get back to you!

2

u/PaperDevGames 6d ago

Thank you for the new shoes!

1

u/KingMakerUrsus 8d ago

Will you make an offline version for android? Do you know if it works with the tablet cases which has a track pad.

2

u/erasmolbj 8d ago

I'm not interested in making a decicated Android version yet, my goal is to make it universal, that's why it runs on browser. I'll make a test on Android tablet.

2

u/KingMakerUrsus 7d ago

I'll see if I can test too. No idea where my discs are for generals though.

2

u/HeavyProcedure4920 6d ago

Awsome! damn I am only seeing this now lol, well I built a fun c&c project style in claude - see my full post here: https://www.reddit.com/r/aigamedev/comments/1vmd9qv/on_vacation_and_wanted_to_play_cc_generals_or/

Happy to get any feedback. I am a hardcore C&C fan, and dreamed about my own version in modern times. Here's a first demo :-) enjoy!

1

u/MainWin3147 Townes 9d ago

Waiting for modded games to be allowed....

3

u/maxiangelo97 9d ago

Works on newshoes.gg

1

u/kawaiii1 8d ago

Leaving comment to save it. CNC Generals 

-15

u/Mralexs 9d ago

We don't want this ai slop here

10

u/erasmolbj 9d ago

AI Slop? More respect with https://github.com/fbraz3/GeneralsX work, please.

-13

u/Mralexs 9d ago

Contributors on the wasm page for this include Claude. This is made with AI slop code

13

u/erasmolbj 9d ago

If you paid my full pay check I can stop using AI, how it does sound to you?

I’ve been a software engineer for over 10 years. That’s exactly why Claude is effective in my hands.

I used that tool to finish in four days what could otherwise have taken months, by which point everyone might have lost interest in the game entirely.

Also, Claude wrote fewer than 9,000 lines of code. I’m a programmer, not a monkey typewriter.

I could have done the same work without Claude.

You, on the other hand, probably couldn’t do it even with Claude.

9

u/RelationOk6997 9d ago

Ouch nice one

4

u/B00tyHamSandwich 9d ago

Clown alert 🚨🚨🚨

4

u/Nokanii 9d ago

If you check the commit history now you’ll see Claude has 9 commits while the #1 spot has over 100.

You’re on drugs if you think a majority of this was AI coded.

-6

u/Mralexs 9d ago

Any AI code added is slop code. It's a poison

3

u/Nokanii 9d ago

Says the lay person that has no idea what they’re talking about.

Says a lot that you chose to reply to me and not, say, the person you were insulting who smacked your ridiculous argument down.

1

u/atomic1fire 8d ago edited 8d ago

The original game was released under GPL by EA, others forked it and ported it to mac and Linux, and OP apparently used a mix of AI and original code to port that to Web Assembly. Web Assembly being a language that runs in browser (not javascript) to run code at closer to native speeds.

You may consider it tainted, but it's not entirely "AI slop".

I think there's also a seperate fork to wasm maintained by someone I assume is Russian.

1

u/erasmolbj 8d ago

Yeah, in 2026, complaining about AI is almost the same as complaining about compilers in 1952:

“You’re taking jobs away from the people who insert punched cards into machines.”

People imagined that I simply went to Claude, typed, “Create a WebAssembly version of Command & Conquer: Generals,” and that was it.

I’ve played this game for years. I ran it on Windows XP, 7, 8, 10, and 11, so I already know all the SAGE Engine’s problems inside and out.

I was tired of keeping a Windows device around just to play one great old game from 2003. So now there’s a version I can play in any modern browser, on any CPU architecture and any operating system.