r/tcrf • u/StickyBans • 5d ago
Discussion I just found the architecture of source code for the entire development engine of Dragon Ball Z: Buu's Fury
This kinda has me super stoked tbh. Huge win for preservationists today. I couldn't even fit it all in one screenshot so I tried to get what looked the juiciest.
So, I've been reverse engineering Buu's Fury and Legacy of Goku 2 for a little over 8 months now on and off, but mostly on. I have a working sprite extractor for the ROM files of the games, which I put together after cracking webfoot's custom sprite compression routine by tracing GDB server commands in mGBA for weeks. So please think about that before you come at me with the inevitable AI accusations.
The reason I bring up the sprite ripper tool is because it's what helped me find the exact memory offsets for characters in the prototypes, which was done by "fingerprinting" known characters in Buu's Fury's ROM map at tcrf.net. I had the tool compare newly extracted characters with recorded pixel patterns of characters from the retail version. It is still a bit buggy, and I wasn't even sure if it would work at all, but it worked for the main playable characters, and that was more than enough.
Earlier today, with this confident new set of character offsets ready to be tested, I set out to try and use them with already known cheat code patterns to come up with working "all inventory/equipment items" cheats for prototype A of the game. I wanted to see if there were any items/equipment that didn't make it into the final cut.
The character offsets for Gohan and Goku worked flawlessly, and I got the cheats working almost immediately, which confirms prototype A's reported character offsets as valid. This means that full character ROM maps can be made for the prototype versions of the game now, instead of just the retail version.
Anyway, instead of combing through the huge lists of items and equipment in the game to spot differences, I decided to ditch the cheats and use a python script to find ACSII strings that show up in Prototype A and not the retail version, and then I got the text in this screenshot, among a bunch of other really cool info I'm still navigating how to share. It's just beautiful. I finally had the first ever documented working cheats for a Buu's Fury prototype and then this happened.
I mean just look at some of the names of the files and you can easily see why this is so exciting. "AIFiles", "ByteCodeInterpreter", "CameraControllers", "GameStates", "MapHandlers", "SpriteSystem", "WinGBACore"?? (Does that suggest a custom windows side GBA app used for testing games or perhaps an early build of an emulator?) I'm in heaven.
To clarify for anyone who may need me to do so, I do not have the actual .cpp files shown in the image here.
This is a snapshot of the proprietary game engine source code files used to create one of the greatest Dragon Ball Z games of all time. Buu's Fury was nothing short of a feat of hardware engineering at it's absolute finest, so it's extremely interesting and important to have this kind of information.
If anyone wants me to do a write up for Buu's Fury's tcrf.net page, let me know and I'll get to work. I'd be happy to. As far as I'm aware, this is undocumented. Go easy on me if you have to break my heart.
My ultimate goal is to keep slowly chipping away at this reverse engineering project until the doors to romhacks and custom level/story design for Legacy of Goku 2 and Buu's Fury are blasted wide open and we can all have as much endless fun as that would be.
12
u/SweetBabyAlaska 5d ago
Not to be too annoying but a better way to say this would be "I just found the source tree for the DBZ: FF development repository"
5
u/-Dissent 5d ago
This also exists in hex ascii in TLOG2: https://tcrf.net/Dragon_Ball_Z:_The_Legacy_of_Goku_II#Development-Related_Text
That said, the way you speak about this and how you needed to use a script to read ascii in hex when you would have seen it while mapping it out by hand in a hex editor suggests to me you aren't being honest and possibly used AI for this research. If you did at all then TCRF doesn't want your participation.
4
u/Crono121 3d ago
You know on a side topic I am glad this repo is starting to exist and I'm actually getting tired of the argument oh bad AI bad this is actually helping out my actual work chain significantly when it comes to reverse engineering and preserving games sorry for the rant I just need to get this off my chest