Klonoa 2 Texture and Music Hacks

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
NertAlert
Posts: 6
Joined: Sun Feb 07, 2016 2:39 pm

Klonoa 2 Texture and Music Hacks

Post by NertAlert »

Using Winrar, I was able to extract plenty of .BIN files and .ac3 files. The main ones I'm looking at are "kldata" and "bgmpack." Kldata contains the textures, however as of now, the only way for me to view them is via a tile viewer. I'd like a way to extract the textures and replace them with new textures.

In addition, I'd like to find a surefire way to replace the in-game music.

Lastly, the credits are actually a pre-rendered .SMV file. It could be replaceable, but I have to find the right converter and the right resolution.

If you want a download link to KLdata and BGMpack:
http://www.mediafire.com/download/70q93 ... kldata.zip

I hope to find a way to extract these as soon as possible.
Last edited by NertAlert on Thu Feb 11, 2016 1:52 am, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Klonoa 2 Texture and Music Hacks

Post by aluigi »

The link you posted has an incomplete URL.
NertAlert
Posts: 6
Joined: Sun Feb 07, 2016 2:39 pm

Re: Klonoa 2 Texture and Music Hacks

Post by NertAlert »

aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Klonoa 2 Texture and Music Hacks

Post by aluigi »

The bin files contain the raw data without information about the archived files.

Check if there are some index files in the game folder.
NertAlert
Posts: 6
Joined: Sun Feb 07, 2016 2:39 pm

Re: Klonoa 2 Texture and Music Hacks

Post by NertAlert »

aluigi wrote:The bin files contain the raw data without information about the archived files.

Check if there are some index files in the game folder.


Unfortunately, I was unable to any index files, unless the file name is called something else. I'm new to PS2 hacking, so yeah.
http://i.imgur.com/X7JrEon.png
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Klonoa 2 Texture and Music Hacks

Post by aluigi »

aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Klonoa 2 Texture and Music Hacks

Post by aluigi »

I have updated the script to version 0.1.1.
Now it makes the files in the bgm and ppt folders playable in winamp with vgmstream, and automatically splits the files of kldata (so should be easier to understand what that data mean).
NertAlert
Posts: 6
Joined: Sun Feb 07, 2016 2:39 pm

Re: Klonoa 2 Texture and Music Hacks

Post by NertAlert »

aluigi wrote:I have updated the script to version 0.1.1.
Now it makes the files in the bgm and ppt folders playable in winamp with vgmstream, and automatically splits the files of kldata (so should be easier to understand what that data mean).


Sweet! Now there are a gazillion folders sorted with 3 folders called "pptpack" "kldata" and "bgmpack." And they each have numbered folders with either SS2 files in the pptpack and bgmpack. In KLdata, there are tons of folders with .DAT, NFC and DC% files inside. How do I open those?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Klonoa 2 Texture and Music Hacks

Post by aluigi »

That's your job now :D
NertAlert
Posts: 6
Joined: Sun Feb 07, 2016 2:39 pm

Re: Klonoa 2 Texture and Music Hacks

Post by NertAlert »

aluigi wrote:That's your job now :D


I figured out how to open the music files. I guess the main thing I wanna know is how to place the files back into the .bin file. Basically do the reverse of what I just did, only with the edited files included.

I know using the reimport.bat in involved, but I need clearer instructions on how to use it. A video tutorial, maybe?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Klonoa 2 Texture and Music Hacks

Post by aluigi »

The audio files (the "ss2" extension) cannot be reimported because they have a header generated by the script.
Dumping them without header "as-is" makes them unplayable and difficult to use so the only choice was to generate it and make them not reimportable.

No reimporting problems for the other files (kldata)
NertAlert
Posts: 6
Joined: Sun Feb 07, 2016 2:39 pm

Re: Klonoa 2 Texture and Music Hacks

Post by NertAlert »

aluigi wrote:The audio files (the "ss2" extension) cannot be reimported because they have a header generated by the script.
Dumping them without header "as-is" makes them unplayable and difficult to use so the only choice was to generate it and make them not reimportable.

No reimporting problems for the other files (kldata)


Um...is there any other way to reimport them?

The main things I'm trying to figure out is how to edit and re-import the music, the dialogue script, the textures and the voice-overs. Should I just wait till someone else cracks it?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Klonoa 2 Texture and Music Hacks

Post by aluigi »

Exists a way to do the reimporting in multiple steps.

1) you have to copy the script to a new one, called reimport.bms

2) open reimport.bms and replace all the content of the DUMP_VAG function with: log NAME OFFSET SIZE 1

3) create a new script containing the following text:

Code: Select all

math OFFSET = 40
get SIZE asize
math SIZE - OFFSET
get NAME basename
string NAME + ".dat"
log NAME OFFSET SIZE


4) use the new script to remove the headers from the files you edited, it will create a new file with dat extension

5) then user reimport.bat by selecting reimport.bms, the original archive and the folder where are located the files to reimport