Live data from Hacker News

EA Open Sources Command and Conquer: Red Alert, along with other games

github.com

131–140 of 339 posts

Re: EA Open Sources Command and Conquer: Red Alert, along with other games

#131
post #81

// 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...

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 { GameLogicRandomValue(0, 1); // ignore result }

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.

Re: EA Open Sources Command and Conquer: Red Alert, along with other games

#135

I wonder if the current owners will ever consider open sourcing Supreme Commander, the spiritual successor to Total Annihilation. https://en.wikipedia.org/wiki/Supreme_Commander_(video_game)

It's Wargaming who owns the IP and assets, and I doubt they release them, if they even have them. DrDeath or Mavor might have copies, but neither of them would likely release them.

Similarly, TA's source code never got released, and while Spring is great and ArmoredFish made good progress with RWE, I wish that code hadn't gotten lost either.

Re: EA Open Sources Command and Conquer: Red Alert, along with other games

#136

Earlier quoted context omitted.

The remastered bundle does not need it.

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.

Damn looks like remastered one doesn't have the Zero Hour version in it.

Re: EA Open Sources Command and Conquer: Red Alert, along with other games

#138
post #68

// 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...

// 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...

... because they just casted lParam into a pointer to DEV_BROADCAST_HDR a few lines above, which is the common part of the different structure it could point to. That's just doing inheritance the C way. What did they expect? A C++ class from a C api?

Re: EA Open Sources Command and Conquer: Red Alert, along with other games

#139

Earlier quoted context omitted.

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.

Damn, Tiberian Sun was my favourite in that series

I was always trying to use the god mode and make a subterranean schoolbus in that game. Could never get it to work. Is it because it didn’t have sprites for it, or what?
Post reply on HN