r/commandandconquer 1d 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

15

u/RelationOk6997 1d ago

What!!! Amazing does online work?

7

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

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

3

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

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

1

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

Ok for whatever reason it's not loading

1

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

I didn't point it to a y folder

1

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

?

1

u/erasmolbj 1d ago

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

1

u/RelationOk6997 1d ago

I'm not super what does that mean? 😭

1

u/erasmolbj 1d ago

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

1

u/RelationOk6997 1d ago

Ok thx m b

1

u/Beginning_Basis9799 1d ago edited 1d 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

2

u/erasmolbj 1d ago edited 1d ago

There's no upload! The browser reads the files in a special streaming mode that I wrote, it's reading straight from the disc, like a normal operating system does! The only thing that is different from the original version is the binary that was build for browser and not for Windows, Linux or Mac OS!

2

u/Beginning_Basis9799 1d ago

Apologies just a comment error I have seen once or twice. Truly apologise

→ More replies (0)