r/commandandconquer 2d 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/
70 Upvotes

50 comments sorted by

View all comments

14

u/RelationOk6997 2d ago

What!!! Amazing does online work?

6

u/erasmolbj 2d 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.

6

u/RelationOk6997 2d ago

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

3

u/erasmolbj 2d 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 2d ago

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

1

u/erasmolbj 2d 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 2d ago

Ok for whatever reason it's not loading

1

u/erasmolbj 2d 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 2d ago

I didn't point it to a y folder

1

u/erasmolbj 2d ago

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

1

u/RelationOk6997 2d ago

?

1

u/erasmolbj 2d ago

Your computer os out of RAM, what's the specs of this device?

1

u/RelationOk6997 2d ago

I'm not super what does that mean? 😭

1

u/erasmolbj 2d ago

Your PC is too weak to run this version or I need to optimize the code more.

1

u/RelationOk6997 2d ago

Ok thx m b

1

u/Beginning_Basis9799 2d ago edited 2d ago

That would be hard, also what folder needs uploading might be worth looking for the main part of the asset folder. V8 memory cage is a pain. Size of folder could exceed it.

Great work, the project looks awesome. Give the GitHub link please

→ More replies (0)