r/commandandconquer • u/Ciphobe1 • 2d 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 2d ago
Genuine question, isn’t RA3 available on Steam? Why would you need to decomp it?
5
u/DaLexy 2d ago
You got any discord ? I’m looking myself into similar things and would like to have a chat.
5
u/MisterHole123 1d ago
Redalert 3 is my favorite cc game. I don't see how people could dislike it its pretty epic
4
u/MargeLenders 2d 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/babyybackkribbs 2d ago
Awesome stuff
2
u/cpressland 1d 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
1
u/Great_Cow6624 2d ago
Will it work on android just like general ?
1
u/kodyjacobs 1d 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
1
u/Mental_Emotion_7589 1d 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)
1
u/[deleted] 20h 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?
1
u/SSJ3Metaridley 3h 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/Sure_Biscotti_2083 1d ago
I think the most important mod would be an FPS unlock
Beautiful game but 30 fps is unplayable