mercoledì 20 aprile 2011

Why the translation of KH2 Final Mix sometimes freeze? There is a solution?

As a lot of people knows, the game freeze sometimes when you open a big chest, own a new keyblade or get void gold crowns for the puzzle. In this post I'll describe the cause of the problem.

Every OS, software or game, handle a lot of data that are managed by some functions like malloc, realloc and free (C/C++ is our best friend :P); this management is called DMA (Dynamic Memory Allocation). When you load a file with DMA, the system allocate spaces on RAM to hold the file that may be of any size and refresh a table that says to the system that at this address is loaded the file and tell the size of it. Kingdom Hearts game have DMA too and it handle a simple table but seems that the game have a bug; the game has some files compressed and the text files aren't an exception and currently there isn't a way to re-compress the files extracted, so I inserted the files unpacked on the translation Beta1, exceeding in size from the original ISO (but this isn't a problem). When the game load some texts uncompressed, they are placed over the table, so the game didn't find DMA anymore and it crashes. However when it load the text files compressed, the game insert them far away from the table, and decompress the content in a different location preserving the table. I can say this for sure because I tried to load the original Japanese text compressed, uncompressed and in different locations on ISO file, watch the table and the texts loaded in a RAM Viewer. So, currently the only way is to crack the decompression system to make an KH1/2 file compressor. It isn't impossible to do and today I'll focus on it :).

19 commenti:

@xeeynamoWell I´m not a programer, so I havent understood a lot of what you said. But good luck finding the fix for it ;)BTW, is because of that that the game wont work on a ps2? do you know why it is? is there already a fix for that? (Im using the english one)

one question Xeeynamo can you make one last update for the patch just one i have the latest update and there are a few bugs ..one is the game gets slow when changing rooms ..the other is when FMVs end they start normally as fast as they should but take a long time to end .balck screen for ten -15 seconds...

OK. I´ve already seen Ophelia´s post about swap magic.I´ve allways burned dvd +R at max and never happened that.But maybe that´s because of that (I dont think that run in PAL mode changes something, it only lowers the screen size and display color on tv´s that dont support NTCS). For the [] I always use that one .So as I lack dvds (I want to spend one on a better version) do you know when the next beta will be released? Will the next be the final one?

@b: Don't ruin more DVDs. It's strange that your PS2 won't accept the game... Do you use the swapmagic or modchip? What PS2 model is it? The original version of KH2FM works? However I don't recommend to anyone to burn this beta version, better if you play it with PCSX2

@Dennis: Thank you too for the interest :). However it isn't a wrong configuration of PCSX2 but a bug of the translation (exactly a bug of the game that I'm not able to avoid already. If you want to start the game for the first time I recommend you to wait another release of translation :) just be patient.

I´m using swap magic 3.6 on a PAL slim PS2.and yeah, the original KH2FM works with no prob (BTW I even use a beta patch for Tales of Destiny 2 and it works).I´ve already tryed to use pcsx2 but I dont seem to get the emu started (and I can play Wii on dolphin, so ps2 wouldn´t be a problem)(and I´ve tryed with Tales of Ayss too so the problem is not from KH2FM, its just me it seems :( )