Kingdom Hearts: Final Mix Translation Patch (In progress)

Discussion in 'Code Vault' started by Trilix, Feb 20, 2012.

  1. crazycatz00 Twilight Town Denizen

    Joined:
    Apr 12, 2013
    40
    236
    That's it failing to find the IDX... always something.
    Added back in "KINGDOM.IDX" as a fallback if the internal one fails, so try this.
    Also, if you don't mind, can you check to see if your ISO contains the byte array "1D 17 00 00 01 00 00 00 DD A6 03 00" and at which offset? That should be the start of the IDX.

    Heads up, the replacer uses the same code to find the IDX; it will more then likely fail for you too. And since it patches the IDX directly, a fallback external file is harder to do (you would have to re-insert the file yourself).
     

    Attached Files:

  2. root670 Destiny Islands Resident

    Joined:
    Feb 28, 2013
    5
    52
    Alright, looks like I was trying this with other versions of KH before and never actually used Final Mix lol. It does work with Final Mix, and "1D 17 00 00 01 00 00 00 DD A6 03 00" can be found at 0x0049c000. Compatibility with other versions of the game can wait I guess, since that's beyond the scope and purpose of this project.

    The next step would be to make a tool to extract (or at least find the location of) the text portion of EVM files so we can start editing them. A tool would also be needed to replace the text in these files (and any other file that contains text) with text from the US release. This shouldn't be super hard, since the assets from Final Mix seem more similar to that of the US release than the original JP release.

    Edit: Just tried out the file replacer to replace a file from Final Mix with with it's US counterpart. I copied the file into the export directory and ran IMGreplace.exe. When I type "dh01.ard", which is the file I intended to replace, it says this:

    COMPRESSOR: Compressed from 347392 to 209309 (0.6025153141120118%)!
    New filesize is more then original, even with buffer!
    Can't replace this file!

    Oddly, it's a smaller file to begin with before compression. If the compressed file is larger than the original, can't we just move all the files in the image that come after this one by how ever many sectors larger the file will be after compression? Then you would increase the sector offsets in KINGDOM.IDX by the amount of additional sectors we needed.
     
  3. crazycatz00 Twilight Town Denizen

    Joined:
    Apr 12, 2013
    40
    236
    Text is in EVM files? K.
    Original size is only one part, repetition is another. A larger file that's highly repetitive will compress better via this method.
    As for moving stuff, I probably could, but I'm not sure how ISOs work internally; I'm not sure if it will create a problem. I'll look into that sometime.

    Also, it seems kingdom.img has more files in it somehow. (I can't imagine that 1.1GB file isn't an archive)

    Also, just to throw this out there, if anyone compresses a file original to FM and it is "larger" (whether it replaces or not), please tell me the filename.
     
  4. Hidden Smithery King's Apprentice

    Joined:
    Feb 2, 2010
    81
    452
  5. crazycatz00 Twilight Town Denizen

    Joined:
    Apr 12, 2013
    40
    236
    So I was looking for a way to allow changing the IMG file without size limits, similar to the KH2 extractors. Doesn't look like it's going to happen.
    The biggest problem is that some offsets seem to be hard-coded in the game (for files not even in the IDX file); these files also happen to be after the IMG, so I can't touch its size.
    I might be able to make it append to the end of the whole ISO, then just point the IDX there. This will definitely make the ISO bigger, and create unused parts in it (where the file used to be). I'll see if I can get this working, where the program asks you before it does this.
    ---
    What do ARD files do? Do we know? Trying to get a feel for what does what.
     
  6. root670 Destiny Islands Resident

    Joined:
    Feb 28, 2013
    5
    52
    ARD files seem to contain 3D models (same format as MDLS models which can be viewed with Noesis), text, and maybe some other assets. At 0x100, there is a byte that represents the amount of models contained in the file. Immediately following the byte are the offsets for each model.The offsets use 0x100 as a starting point, so if you see "80 06 02" (which converts from little-endian to 0x020680), the real offset (starting from the beginning of the file) is 0x020780. I'm not sure what the stuff is at the top of ARD files, but they seem to be in a similar format of a length byte followed by offsets.

    I was able to manually copy the bytes of the first model in di01.ard and found that it was the cloth from the tree house in Destiny Island!
    [​IMG]
     
  7. Hidden Smithery King's Apprentice

    Joined:
    Feb 2, 2010
    81
    452
    I wonder where the HUD images are contained (Sora, Donald, Goofy, etc's face sprites). Perhaps the beta sprites are still there.

    [​IMG]

    Now that's nostalgia.

    EDIT:
    Out of curiosity I decided to try to recreate this by replacing the normal models of Kh1 with these two models above; still in the game when used in the ending cinematic. The results were horrifying, and can be seen in the attached image.

    This is what happens when the different models only have SOME bones named the same.
     

    Attached Files:

  8. sora6645 Kingdom Keeper

    Joined:
    Feb 17, 2011
    51
    909
    That looks like the beta trailer for kingdom hearts . Lol
     
  9. Hidden Smithery King's Apprentice

    Joined:
    Feb 2, 2010
    81
    452
  10. Hidden Smithery King's Apprentice

    Joined:
    Feb 2, 2010
    81
    452
    Well it doesn't seem like much else is happening right now. Aside from me messing around with models or trying to fix grammar in KH2:FM.
     
  11. root670 Destiny Islands Resident

    Joined:
    Feb 28, 2013
    5
    52
    Pretty much all findings/research related to the patch is being discussed publicly in this thread, so unless something is posted here, there's probably no new news to report.
     
  12. Disgustor Traverse Town Homebody

    Joined:
    Jan 23, 2012
    Gender:
    Is this a joke?
    Location:
    Δ Hidden Forbidden Holy Ground
    69
    191
    R U helping now ? Because it seems like you're just annoying everyone. <.<
    These guys are doing this in their free time. FOR FREE. They don't have to do that you know.
    Patience is a virtue. Calm down, and quit bothering them.
     
  13. Hidden Smithery King's Apprentice

    Joined:
    Feb 2, 2010
    81
    452
    The only thing I don't like about it is that he's been bossy and a bit rude.
     
  14. sora6645 Kingdom Keeper

    Joined:
    Feb 17, 2011
    51
    909
    I
    I have not been bossy or rude . I just wanted to see how the project is going alone[DOUBLEPOST=1366415987][/DOUBLEPOST]
    And I would love to help . But idk how to do this
     
  15. KHOmega Destiny Islands Resident

    Joined:
    Apr 20, 2008
    Gender:
    Male
    16
    80
    Listen, bro. I have been waiting patiently for these wonderful people who put their FREE TIME into doing this patch. You NAGGING them WILL NOT SPEED UP THEIR PROCESS. You need to understand not to nag and whine about people not translating what YOU want. You need to actually, for once, PLEASE, shut the H-E-double hockey sticks up. You sound like a kid, wanting what you want. Stop saying that you want to help, when you don't know what to do. You're just spamming on this thread. Maybe if you waited, and stopped whining, maybe, just maybe, you will get a patch. Right now, you don't even deserve it.
     
  16. gledson999 Destiny Islands Resident

    Joined:
    Mar 15, 2013
    Gender:
    Male
    Location:
    Brazil
    28
    96
    thanks for effort of the Crazycatz00 for you tool, congratulation, later i will test that wonderful tool
     
  17. Hidden Smithery King's Apprentice

    Joined:
    Feb 2, 2010
    81
    452
  18. sora6645 Kingdom Keeper

    Joined:
    Feb 17, 2011
    51
    909
    Dude . U don't need to yell at me . I have a disability . This is one of them . So.calm down . I told them I was sorry so relax[DOUBLEPOST=1366516809][/DOUBLEPOST]
    Hey Hidden Smithey . When u got time . Can u make a YouTube video ? I would love to help with this project . And sorry for everything again. I have dissabitys and such like that .. Thanks for your time .
     
  19. Hidden Smithery King's Apprentice

    Joined:
    Feb 2, 2010
    81
    452
  20. the blue keyblade Moogle Assistant

    Joined:
    Apr 8, 2013
    Gender:
    Male
    0
    5
    is the platinium editon of kingdom hearts , just the same as the original one ?