Skip to content(if available)orjump to list(if available)

EA Open Sources Command and Conquer: Red Alert

HelloUsername

lloeki

Looks like the Tiberian Dawn code is Windows too (so C&C Gold / W95)

I was kind of wishing it was the 1995 DOS version source code!

(also, no Dune 2000)

bizrod

There's Dune 2000 assets in the Red Alert repo. I'm not sure how much of it is there. https://github.com/electronicarts/CnC_Red_Alert/blob/main/CO...

evanjrowley

Emporer: Battle for Dune was their first 3D RTS and I personally loved the gameplay, story, and soundtrack. I very much hope it will eventually be open-sourced.

bayindirh

I can play it back to back for days. It's so enjoyable and unique.

zenlot

Dune 2000 - countless hours spent! Ah!

mizzao

Wow, Renegade? That's amazing. Enjoyed so many hours of flame tank / stealth tank rushes in that game.

Hope someone takes it to the next level with open source.

svieira

There is a re-implementation from scratch (I believe) here: https://totemarts.games/games/renegade-x/

adenta

praying for Red Alert 2

BuildTheRobots

Slightly odd (age wise) Generals got open sourced before RA2. I wonder why?

apetresc

It is apparently the case that the original source for Tiberian Sun and RA2 has been lost; EA doesn't have it. There's been rumours to that effect for a while.

t-writescode

Honestly, I wouldn't be too sad about them remaking RA2 and giving us easy-to-use online play. I wonder if that's why there's a delay - there's likely a *lot* of love for RA2

BuildTheRobots

Have a look at Mental Omega, a quite over the top RA2 Yuri's Revenge mod that makes it easy to play on modern windows, play online and also adds a tonne of extra content should you want it.

https://mentalomega.com/

joshuaturner

Apparently the source code for RA2 has been lost (along with Tiberian Sun)

tomkarho

If that ever happens I would be fascinated to see what the folks who made Mental Omega makes out of it.

MortyWaves

So not just one game like the title?

HelloUsername

wglb

Best to email hn@ycombinator.com; dang can't possibly read all comments.

MisterTea

Holy shit, Renegade. I had struck that from memory. God, I remember trying to play Renegade with my brother and all I can remember was a buggy nightmare. Also having flashbacks of extreme vitriol for gamespy.

paulryanrogers

It was a fun time at LAN parties. There is a fan remake: https://totemarts.games/games/renegade-x/

shpingbing

[flagged]

SXX

Whoever pushed for this at EA - my deepest respect is with you!

Original C&C was rewritten from scratch long ago, but open source version of Zero Hour is such an amazing gift.

PS: if you want to send respects to the person who did it you can do it on Linkedin:

https://www.linkedin.com/posts/jim-vessella-62726825_from-th...

pizzathyme

Agreed. Internally at companies like this, it's extremely difficult to get something like this approved. This is the result of a lot of meetings, a lot of "no"'s, a lot of legal approvals.

SXX

Let's be honest I can't view this anything other than miracle that was delivered to us by some very dedicated people who likely pushed this for years.

I hope there will be more people and companies within industry making similar moves. It's will both increase their sales as well as allow fans to keep their favorite games alive.

boomboomsubban

The complete C&C bundle with all open sourced games and several others is currently $6 on Steam, if you need the art assets https://store.steampowered.com/bundle/39394/Command__Conquer...

Hopefully this causes a sales spike and encourages other developers to do similar things.

nottorp

Hmm there's also a c&c remastered bundle.

Anyone knows if either of them includes stuff that requires an EA account?

sumtechguy

The remastered bundle does not need it.

nottorp

Well I hope you're right, I just bought both bundles.

This is the first time I give money to EA since Mass Effect 2* :)

* Technically i also paid for the Mass Effect collection for playstation, because Sony doesn't allow them to require a login on there. But it's the first time for a PC title since ME 2.

mclau156

We had to wait for a team of github users to reverse engineer Legend of Zelda Ocarina of Time before Nintendo would do anything about it

Starlevel004

    // Homework for today.  Write 2000 words reconciling "Your code must never crash" with "Intentionally putting crashes in the code".  Fucktard.
    //   DEBUG_CRASH(( "xferScienceVec - vector is not empty, but should be\n" ));
    //
https://github.com/electronicarts/CnC_Generals_Zero_Hour/blo...

stnmtn

This one made me laugh, mostly because the variable names are so dumb

// our RNG is basically shit -- horribly nonrandom at the start of the sequence.

// get a few values at random to get rid of the dreck.

// there's no mathematical basis for this, but empirically, it helps a lot.

UnsignedInt silly = GetGameLogicRandomSeed() % 7;

for (Int poo = 0; poo < silly; ++poo)

{

GameLogicRandomValue(0, 1); // ignore result

}

anal_reactor

I spent some time browing curiosities about old games, and what strikes me is that the code sometimes was quite personal. You could see the joy, the anger, the disappointment, the satisfaction. Nowadays it would never fly to name a variable "poo", you need to stay professional at all times.

jsheard

  // Lets discuss how Windows is a flaming pile of poo. I'm now casting the header
  // directly into the structure, because its the one I want, and this is just how
  // its done. I hate Windows. - jkmcd
https://github.com/electronicarts/CnC_Generals_Zero_Hour/blo...

moffkalast

Game code comments are always the most entertaining :D

https://en.wikipedia.org/wiki/Fast_inverse_square_root#Overv...

inetknght

EA game devs cursing each other out? Internal company drama being aired out years later? Oh boy!

cluckindan

*Westwood

modeless

The complete game was released as freeware by EA over 15 years ago. It was freely available for download from EA's servers for many years and has been redistributed by many third party sites as well. So getting the art and other assets to use with this code should be no problem.

https://web.archive.org/web/20100214144634/http://www.comman...

grayhatter

OpenRA did it better :D

If you haven't seen it yet https://www.openra.net/ is worth your time.

https://github.com/OpenRA/OpenRA

I have many fond memories of playing openra as "LAN" game on the gaming weekends we used to have in a few open source groups I've been in. I can't recommend "saturday gaming" enough, for anyone involved in any foss community, set up a recurring gaming weekend! You get bonus points if you make it mostly or exclusively foss games!

sho_hn

This is very cool. It should be done a lot more often for old games. Whoever pulled this off at EA Games, you did a great thing for art and culture, and chapeau for pulling it off at a big corp.

liamkearney

Curious. Can anyone tell me if it’s windows thing, specific filesystem thing, source control system thing or just a style thing, naming all files and directories in caps?

anotherhue

EA, I've cursed your name since you smothered Westwood. But thank you for this.

keyringlight

Louis Castle, co-founder of Westwood tells it a bit differently [0]. From memory after the EA acquisition they stopped doing their edutainment/casual games, which is where they used to nurture their junior developers along with taking on too many major projects because EA gave them the resources to do that. That led to less quality and later Westwood releases (Renegade, Emperor Battle for Dune) suffered.

The podcast also includes details of Westwood's filming setup, which seemed to include motion tracking which would have been interesting in the context of performance capture, but before its time.

[0] - https://www.idlethumbs.net/designernotes/episodes/louis-cast...

ageitgey

Who's going to be the hero that builds a modern update of C&C Generals/Zero Hour with 4k rendering, raytracing, etc?

rco8786

You might check out https://www.openra.net/

cogman10

That's RA. Generals was a different game engine.

theandrewbailey

I'd settle for a native Linux build.

gatane

There was a reverse engineering one, and openRA.

https://github.com/TheAssemblyArmada/Vanilla-Conquer

tete

Would be nice. But they all work just fine with wine and/or proton.

insane_dreamer

I haven't tried wine in ~15 years, but it was pretty useless for gaming back then. Has it much improved?

harshreality

Converting the assets to use the Spring engine (or BeyondAllReason's active fork of it) is probably easier than writing a new engine from scratch for the existing assets. And then it'll feel like BAR but with C&C's assets. The UI is what gives the game most of its feel.

SXX

C&C Generals plays completely different compared to Total Annihilation like games with streaming economy that Spring was built for. I like both subgenres of RTS, but they are very different.

blashyrk

Even more importantly, running at 60+fps while not breaking gameplay, physics, shaders, cutscenes...

joquarky

I wish they would release all the code and assets used to make Earth & Beyond.