The original Kingdom Hearts Chain of Memories game on GBA has been fully decompiled
So? I can just emulate it.
>>747670103 if (gUnk_02034954 > 0 || gUnk_0203495A != 0 || gUnk_0203495C > 0 || gUnk_02034960 != 0) { *(vu16*)0x04000000 |= 0x1000; *(vu16*)0x04000050 = 0xF10; if (gUnk_0203495A < 16) { if (gUnk_0203495A == 0) { attr0 = 0x200; } else { *(vu16*)0x04000052 = ((16 - gUnk_0203495A) << 8) | gUnk_0203495A; attr0 = 0x400; } } else { attr0 = 0; } if (gUnk_02034960 < 16) { if (gUnk_02034960 == 0) { attr1 = 0x200; } else { *(vu16*)0x04000052 = ((16 - gUnk_02034960) << 8) | gUnk_02034960; attr1 = 0x400; } } else { attr1 = 0; }Yeah, "decompiled".
>>747670556Could you explain this? I don't know what's bad about this.
>>747670556Lmao. Can literally so that with IDA in 10 seconds
Oh fuck yes thank you for another decompilation claude
>>747671134You can't do anything with source code, because functions and variable aren't named.
>>747670556just have claude figure out what everything does and name it.
>>747670103cool i guess for people who like that gamemight give a shit if it was 1 or 2
>>747670103In what way is this useful if we can already emulate it?
>>747670103Its mid game anyway. KH as a whole is mid.
>>747671134all of the "gUnk_" stuff should have proper namese.g. "playerHp", "selectedCard", etcAnd all of the addresses starting with 0x04 are IO registers of the GBA, they all have been figured out decades ago already. "*(vu16*)0x04000052" should just be "REG_BLDALPHA". No idea why the decomp didn't even name those, there's a list.
>>747670556geeeeeeg
>>747674220I like the game and don't give a shit. Ok cool, what's the fucking point? Its not the kind of game that'll make anyone stop and want a decompile version.
>>747670103>kingdom fags
>>747677695if you are a programmer and/or modder it gives you insight into how the game works under the hood that is interesting to people along with the ability to (mod)ify it to change existing behavior more easily compared to asm hacks or to add in completely new content such as a brand new world on the world map, new allies, keyblades, enemies, etc.of course that is assuming the decomp is annotated unlike what this com decomp currently is, if you are looking at variables named gUnk_0203495A and so on that isn't really helpful. a matching decomp you know will compile back into the same game you can already play but if it's not annotated it's not that interesting ( yet )
>>747678672I know what decomps are. I just don't see the point in decompiling a game like Chain of Memories. I liked the game but that game doesn't leave you wanting more.
>>747678945did you read what I wrote at all?I also agree i dont give a shit about com and am much more interested in 1 or 2
>>747671134Just because it’s C code doesn’t make it “source” code in any way, it’s just a shitty translation from the console’s ISA back to C that doesn’t undo any compiler optimizations or make it understandable. Ghidra and IDA could already show you this. This has been the trend with 99% of these “decomp” slop projects being shat out recently. They are not actually understandable to a human and piggyback off of emulators
>>747670103Is there literally any benefit to that? Its a GBA game that emulates perfectly fine
>>747671134if it were an actual decomp you would be able to read it instead of it just having unidentified numbers everywhere
Are these decompiles a 1 for 1 for what the developers were working in?
Kingdom who?
Brb, just decompiling my gender.
I kinda don't understand the point of decompiling games that are easy to emulate
>>747670556mustard gas
>>747681904Maybe they can get it running closer to hardware natively?
we used to be a society and boot up virtual boy advance with roms instead of using ai homunculus decomps just to play some shitty kingdom hearts gba game
>>747682069no, names used in code (symbols) are not preservedwe can give them new names which make sense but they aren't necessarily the ones the developers usednonetheless, a decomp will compile again into 1:1 the original game which ensures the meaning is unchanged >>747682343it's easy for vibe coders (the new script kiddies) to do for internet cred
>I'M DECOMPILING
>>747682343It's mostly for autists and modders
I'm a little bit confused. How are these happening so fast? Are they just wrapped around something or are people managing to reverse engineer the software?
>>747682671AI got good at coding last year. You can basically just give it a ROM and $200 and it'll do it for you.
>>747670556>>747671134All you idiots replying to this should learn what byte matching and execution parity are
>>747682103Cringe Hearts
>>747682671AI can brute force it cause it's mostly just turning assembly back into """readable""" code
>>747682671AI tools have been the pinacle of tedious programming tasks for years now, regardless of people bitching about them
>>747682487> a decomp will compile again into 1:1 the original game which ensures the meaning is unchangedThis is something I have seen a lot but I don’t understand, is this right?I understand keeping it semantically 1:1, but whatever compiler you use on your host machine is going to have lots of degrees of freedom to generate code differently even if you are compiling for a matching cpu arch to the console.I don’t see how you could generate a 1:1 matching binary or why you’d even want to especially if you’re changing the decompiled C code to be more mod friendly and interface with modern graphics APIs and all that
>>747682343Supposedly its makes modding better and easier to do but i have yet to see someone fixing Twilight princess's pacing or making new levels for SF64.The pokemon hacks did get pretty cool
>>74767010316:9 support?maybe they can mod the card system and beef up the AI so it plays like a normal KH game
>>747671134don't worry they'll just run it through a better ai in a couple of years and polish the code
>>747683001For handheld and console games it makes modding easier cause you have the bare code of the game and you can add or rewrite shit instead of only being able to crowbar things into the already compiled rom and potentially break shit left and right.
>>747682961A disciplined decomp project will ensure that it recreates the original ROM 1:1>https://github.com/n64decomp/sm64>It builds the following ROMs:> sm64.us.z64 sha1: 9bef1128717f958171a4afac3ed78ee2bb4e86ceThis is byte for byte identical with the original ROMOnce you start porting and modding things then yeah you get differences, but this is the proof that you've done it right
>>747681639Those are recomps you're thinking of, not decompilations
>>747670556That's a lot of gunk
>>747682343Mods, PC native rendering stuff
>>747683352Thanks I will have to read more but it seems like getting 1:1 binary match for reference is impossible unless you have access to the exact same sdk/compiler version that the game devs used
>>747682671Seems AI sloppa was used for this one since commits don't go back farther than a few months.I'm not sure what the actual point of AI slopping a decomp is, because there's no point whatsoever to decomping any video game unless you're trying to see what makes the game tick, or have a deeper interest in using it as a modding platform or development platform for stuff like ROM hacks and fangames. If you're an AI bro you'd probably be doing it just for the clout, but if you were a ROM hacker or a fangame developer wanting a more official or close-to-source platform... why would you need or want the AI to do it for you?
>>747670556uhis this some weird sleeper agent post to alert other bots to replywtf is this shitwtf means what the fuck you dumb fags