r/commandandconquer • u/Ciphobe1 • 6d 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.
7
u/MisterHole123 5d ago
Redalert 3 is my favorite cc game. I don't see how people could dislike it its pretty epic
4
1
u/LordToastALot 4d ago
I don't really like it. A lot of the things I liked in RA2 were outright removed, and it has a much closer camera/vantage point that I never really jived with.
4
4
u/MargeLenders 6d 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/JamesAdsy 5d ago
Also interested for this (plus the browser work)
Do you know if anyone is doing this for Tiberium wars / Kanes Wrath?
Also, for RA2 did you have / manage to fix the audio issues when you increase the game speed and the cameo videos appear?
2
2
u/cpressland 5d 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
1
u/kodyjacobs 5d 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 5d 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
4d 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 4d 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/nomorejervis0 3d ago
We will have a mod for RA3 that will be 1:1 Uprising, check out Revival
1
u/SSJ3Metaridley 3d ago
revival is not 1:1, i was never a fan of the extra fancy stuff got added in, i prefered upheavel for being a Uprising MP replacement but it wasnt perfect because of the limited RA3 codebase and the extra code that was in uprising.
1
1
1
u/Sure_Biscotti_2083 5d ago
I think the most important mod would be an FPS unlock
Beautiful game but 30 fps is unplayable
3
u/Sauvent 5d ago
There's a frame unlocker that came out a few months ago, for those unaware: https://github.com/TheeHorse/SAGE-Unlocked
3
u/haydar_ai 6d ago
Genuine question, isn’t RA3 available on Steam? Why would you need to decomp it?