[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/v/ - Video Games


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: KH GBA.jpg (357 KB, 1160x775)
357 KB JPG
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".
>>
>>747670556
Could you explain this? I don't know what's bad about this.
>>
>>747670556
Lmao. Can literally so that with IDA in 10 seconds
>>
Oh fuck yes thank you for another decompilation claude
>>
>>747671134
You can't do anything with source code, because functions and variable aren't named.
>>
>>747670556
just have claude figure out what everything does and name it.
>>
>>747670103
cool i guess for people who like that game
might give a shit if it was 1 or 2
>>
>>747670103
In what way is this useful if we can already emulate it?
>>
File: 1788723626088921.jpg (288 KB, 2000x1889)
288 KB JPG
>>747670103
Its mid game anyway. KH as a whole is mid.
>>
>>747671134
all of the "gUnk_" stuff should have proper names
e.g. "playerHp", "selectedCard", etc
And 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.
>>
>>747670556
geeeeeeg
>>
>>747674220
I 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.
>>
File: 1701525586830735.jpg (160 KB, 676x698)
160 KB JPG
>>747670103
>kingdom fags
>>
>>747677695
if 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 )
>>
>>747678672
I 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.
>>
>>747678945
did 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
>>
>>747671134
Just 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
>>
>>747670103
Is there literally any benefit to that? Its a GBA game that emulates perfectly fine
>>
>>747671134
if 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
>>
>>747670556
mustard gas
>>
>>747681904
Maybe 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
>>
>>747682069
no, names used in code (symbols) are not preserved
we can give them new names which make sense but they aren't necessarily the ones the developers used
nonetheless, a decomp will compile again into 1:1 the original game which ensures the meaning is unchanged

>>747682343
it's easy for vibe coders (the new script kiddies) to do for internet cred
>>
File: 1723023770230491.gif (1.31 MB, 400x222)
1.31 MB GIF
>I'M DECOMPILING
>>
>>747682343
It'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?
>>
>>747682671
AI got good at coding last year. You can basically just give it a ROM and $200 and it'll do it for you.
>>
>>747670556
>>747671134
All you idiots replying to this should learn what byte matching and execution parity are
>>
>>747682103
Cringe Hearts
>>
>>747682671
AI can brute force it cause it's mostly just turning assembly back into """readable""" code
>>
>>747682671
AI 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 unchanged

This 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
>>
>>747682343
Supposedly 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
>>
>>747670103
16:9 support?
maybe they can mod the card system and beef up the AI so it plays like a normal KH game
>>
>>747671134
don't worry they'll just run it through a better ai in a couple of years and polish the code
>>
>>747683001
For 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.
>>
>>747682961
A 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: 9bef1128717f958171a4afac3ed78ee2bb4e86ce
This is byte for byte identical with the original ROM

Once you start porting and modding things then yeah you get differences, but this is the proof that you've done it right
>>
>>747681639
Those are recomps you're thinking of, not decompilations
>>
>>747670556
That's a lot of gunk
>>
>>747682343
Mods, PC native rendering stuff
>>
>>747683352
Thanks 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
>>
>>747682671
Seems 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?
>>
>>747670556
uh
is this some weird sleeper agent post to alert other bots to reply
wtf is this shit
wtf means what the fuck you dumb fags



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.