r/commandandconquer • u/Ciphobe1 • 7d ago
RA3 Decomp
Hello all, I know Red Alert 3 isn’t one of the more popular C&C games, but it’s the one I grew up with, and it means a lot to me. For a while now, I’ve been working on a matching decompilation of it.
Red Alert 3 was built with Visual C++ 2005 SP1. Everything is byte-matched. So far about 52% of the code is matching, roughly 28,000 of 42,700 functions. That includes the bundled libraries I could identify, such as Lua, Speex, GameSpy and EA’s own support libraries, plus some of the Westwood code carried over from Generals/Zero Hour.
What’s left is mostly the game’s own logic. The small functions are going well, but the mid-sized and large ones are slow going. A lot of the time is spent working out VC2005’s habits, like when it stops inlining, how it lays out stack frames, and when it unrolls loops, and working out where EA changed code that came from the Zero Hour source.
Most of it is being done by hand, with some of the volume handed to AI.
3
u/haydar_ai 7d ago
Genuine question, isn’t RA3 available on Steam? Why would you need to decomp it?
7
u/MisterHole123 6d ago
Redalert 3 is my favorite cc game. I don't see how people could dislike it its pretty epic
5
u/DaLexy 7d ago
You got any discord ? I’m looking myself into similar things and would like to have a chat.
3
u/babyybackkribbs 7d ago
Awesome stuff
4
u/MargeLenders 7d ago
Well done! Let me know when you are done, so si can adapt it to iOS, as I did with RA1 and RA2
2
u/cpressland 7d ago
Happy to take a crack at it, I’ve just finished Theme Park World, Star Trek Legacy, and the Mac port for Red Alert 2
2
u/Mental_Emotion_7589 6d ago
I work on mod tools for these games and I would love to get a look at some of this as it would help a lot with the tools I make (e.g. VP6, audio, APT, stuff like that)
2
u/Outrageous-Lab-2138 1d ago
that game had babes
2
u/kodyjacobs 6d ago
If you've got a github set up with some structured commands and a plan / readme etc, I'm happy to donate my Claude Pro weekly allowance towards it? Have built most of the apps I want and nothing planned for this week atm
2
u/[deleted] 6d ago
kudos to you for doing this. is this something you're looking to complete by yourself or are you thinking of doing this as an open source project so people can help?
2
u/nomorejervis0 5d ago
Wish you luck! I'm decompiling RA3 uprising the same way
1
u/Great_Cow6624 7d ago
Will it work on android just like general ?
1
u/SSJ3Metaridley 5d ago
i wish we would got decomps in RA3 and uprising and then import the RA3 online & lan mode into Uprising so we would have finally multiplayer (alsoi including the mammoth tank april fools sdk as a bonus)
1
u/REI0NE 20h ago
One of my favorite RTS games, and it really hurts to see how EA buried the franchise—no remasters, no reboots. When playing multiplayer with friends via LAN emulators or C&C Online, we constantly suffer from sync errors and lag due to the game's netcode. I’d really love to just enjoy matches without these issues :c
1
u/Sure_Biscotti_2083 7d ago
I think the most important mod would be an FPS unlock
Beautiful game but 30 fps is unplayable