Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Unpack KH 1.5 2.5 HD PC release

Featured Replies

  • Author
  • Localization

Dark_Ansem, posted Mon Apr 12, 2021 7:53 pm (63344)


Hello
I was wondering if a quickbms script which works for the 1.5/2.5 games part of the PC KH collection, in order to extract files such as models, voices etc.
  • Author
  • Localization

aluigi, posted Mon Apr 12, 2021 11:02 pm (63350)


Does "KH" refer to Kingdom Hearts?
In that case there is already a topic open about that game.
  • Author
  • Localization

Dark_Ansem, posted Tue Apr 13, 2021 9:55 am (63352)


Kingdom hearts yes

I noticed that but it doesn't work. What am I doing wrong?
  • Author
  • Localization

GrzybDev, posted Tue Apr 13, 2021 12:07 pm (63353)


First, that's not the reason for creating new thread
Second, I already posted tool which does exactly what you want
Third, be more professional "What am I doing wrong?" is not valid question (or is but for magicians who can guess what you meant)
  • Author
  • Localization

Dark_Ansem, posted Tue Apr 13, 2021 2:05 pm (63355)


GrzybDev wrote:
First, that's not the reason for creating new thread
Second, I already posted tool which does exactly what you want
Third, be more professional "What am I doing wrong?" is not valid question (or is but for magicians who can guess what you meant)


I'm not gonna give you the answer you deserve but rest assured that I did think about it. "Be more professional", that's rich.
  • Author
  • Localization

tbmq008, posted Wed Apr 14, 2021 11:15 pm (63376)


Dark_Ansem wrote:
I noticed that but it doesn't work. What am I doing wrong?
i don't know. may i have an idea of what didn't work on your end?
also, i won't bite you off. promise.
  • Author
  • Localization

Dark_Ansem, posted Thu Apr 15, 2021 7:00 am (63379)


tbmq008 wrote:
Dark_Ansem wrote:
I noticed that but it doesn't work. What am I doing wrong?
i don't know. may i have an idea of what didn't work on your end?
also, i won't bite you off. promise.


The script didn't execute at all. I might have just used it improperly?

See, this was a nice way to ask.
  • Author
  • Localization

aluigi, posted Thu Apr 15, 2021 12:46 pm (63383)


@Dark_Ansem
I guess he would like to know the details like an error message, how are you exactly using it, or, even better, a screenshot.
  • Author
  • Localization

tbmq008, posted Thu Apr 15, 2021 8:13 pm (63394)


Dark_Ansem wrote:
The script didn't execute at all. I might have just used it improperly?
i don't know. for all i care, i only had to have my command-line prompt (i'm using Windows 10 btw) at all times in order for the script to even execute properly.
are you using normal quickbms.exe? or quickbms_4gb_files.exe?

either way, here is the script available for download as an attachment. i know full well no one asked for this, but i'd much rather if it ended up on one's internal/external storage drive sooner rather than later.

khhd_hed_pkg.bms

  • Author
  • Localization

Dark_Ansem, posted Fri Apr 16, 2021 9:21 am (63396)


tbmq008 wrote:
Dark_Ansem wrote:
The script didn't execute at all. I might have just used it improperly?
i don't know. for all i care, i only had to have my command-line prompt (i'm using Windows 10 btw) at all times in order for the script to even execute properly.
are you using normal quickbms.exe? or quickbms_4gb_files.exe?

either way, here is the script available for download as an attachment. i know full well no one asked for this, but i'd much rather if it ended up on one's internal/external storage drive sooner rather than later.


Thank you. And can I use this on all the 1.5/2.5 files, so it will spit out useful files for the main games and BBS?
  • Author
  • Localization

tbmq008, posted Fri Apr 16, 2021 1:56 pm (63399)


actually, files will extract as-is, so if you want to extract a lot of files from kh games expect some sort of garbled extraction from now on.

works for 2.8 files as well.
  • Author
  • Localization

Dark_Ansem, posted Sat Apr 17, 2021 6:26 pm (63415)


tbmq008 wrote:
actually, files will extract as-is, so if you want to extract a lot of files from kh games expect some sort of garbled extraction from now on.

works for 2.8 files as well.


Oh I see. So no SCD / MDLS files?
  • Author
  • Localization

tbmq008, posted Sat Apr 17, 2021 8:58 pm (63418)


nope.
although there are two archives that do have such files (but not all of them) that are not encrypted in some way (Mare and SettingsMenu, respectively), you'd have to make do with useless stuff for now.

yes, i mentioned encryption. as in "i just figured out the decryption algorithm for the files but don't necessarily know how to implement it into the script without quickbms taking a performance hit with the script because of said implementation". i figured out the algorithm literally days ago though, but the exact number of those days is something i can't easily track down.
  • Author
  • Localization

GrzybDev, posted Sun Apr 18, 2021 2:35 pm (63425)


As i said, if you want to unpack all files (even from encrypted archives), my tool (available at https://github.com/GrzybDev/KingdomHeartsTool) are able to decompress and decrypt all files, additionally it allows also to repack these archives :)

As of encryption, it is simple XOR for each byte, you can find my implementation of decryptor/encryptor in src/encryption.py
  • Author
  • Localization

Dark_Ansem, posted Sun Apr 18, 2021 6:05 pm (63427)


GrzybDev wrote:
As i said, if you want to unpack all files (even from encrypted archives), my tool (available at https://github.com/GrzybDev/KingdomHeartsTool) are able to decompress and decrypt all files, additionally it allows also to repack these archives :)

As of encryption, it is simple XOR for each byte, you can find my implementation of decryptor/encryptor in src/encryption.py


Thank you. When you wrote your first message the tool wasn't available. I can't wait to try it!

EDIT: I am extracting all the files, fine and dandy. However, most DDS textures appear to be broken, and I cannot find any mdl/mset file for KH1, nor any audio file for any game. In the ps4 versions, those files were SCD. Could you help concerning the PC release?

Namely, looking for cutscene voices, battle voices and BGM.
  • Author
  • Localization

tbmq008, posted Sun Apr 18, 2021 6:42 pm (63428)


i don't want to interrupt here, but after some thought i decided to work into making an updated version of my script that's available in this thread.
it'll contain an pure implementation of the decryption algorithm the game uses for most of its files.

i'll assist with finding the files you need later, but for now if you want more details into how the hed and pkg files work, just ask and i'll do my best to answer right away.
  • Author
  • Localization

GrzybDev, posted Sun Apr 18, 2021 6:49 pm (63429)


Dark_Ansem wrote:
GrzybDev wrote:
As i said, if you want to unpack all files (even from encrypted archives), my tool (available at https://github.com/GrzybDev/KingdomHeartsTool) are able to decompress and decrypt all files, additionally it allows also to repack these archives :)

As of encryption, it is simple XOR for each byte, you can find my implementation of decryptor/encryptor in src/encryption.py


Thank you. When you wrote your first message the tool wasn't available. I can't wait to try it!

EDIT: I am extracting all the files, fine and dandy. However, most DDS textures appear to be broken, and I cannot find any mdl/mset file for KH1, nor any audio file for any game. In the ps4 versions, those files were SCD. Could you help concerning the PC release?

Namely, looking for cutscene voices, battle voices and BGM.


Strange, all DDS files extracted by my tool are readable by GIMP (only some of them are readable by Windows Explorer).
As of mdl/mset question, my tool "guesses" extension by first 4 bytes, if these files exists somewhere it may be under ".dat" extension (if there's no clear header)

If these files exists, they're maybe in seperate archive like .arc or these "big" .evm files (it seems that they're the ones containing "Disney" stuff)

Sound files are saved under ".sed" extension

Edit: Proof
Image
  • Author
  • Localization

Dark_Ansem, posted Sun Apr 18, 2021 6:57 pm (63431)


Sed? So theu changed compared from SCD? interesting.
  • Author
  • Localization

GrzybDev, posted Sun Apr 18, 2021 7:01 pm (63432)


These maybe ".scd" files for real, as i stated my tool reads first 4 bytes, if the file starts with for example "SEDBSS", then file will be saved as .sed. And so on, mostly works without a problem so that's why i designed it that way
  • Author
  • Localization

Dark_Ansem, posted Sun Apr 18, 2021 7:03 pm (63433)


I'll look for it once it ends, thank you. Would you know if this is true also for the 2.8 game compilation?
  • Author
  • Localization

GrzybDev, posted Sun Apr 18, 2021 7:05 pm (63434)


Since 2.8 uses similar or the same game archives, I'm assuming that my tool will also work on these archives (but i haven't checked it). If it doesn't work, please report issue in github or here
  • Author
  • Localization

Dark_Ansem, posted Sun Apr 18, 2021 7:14 pm (63435)


Yes, all games until 2.8 feature in the compilation use that structure, to an extent. But maybe encryption keys could be different.
  • Author
  • Localization

GrzybDev, posted Sun Apr 18, 2021 7:17 pm (63436)


Just quick checked, and yes my tool works even on 2.8.
They're using the same encryption keys :)
  • Author
  • Localization

tbmq008, posted Sun Apr 18, 2021 7:46 pm (63437)


GrzybDev i don't understand all of the python code.
i'm talking about parts like these:
Code:
span = array[num:num   length]
how is this even readable?
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.