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.
Zero Tolerance for Disrespect

[PS2] Sengoku Basara 2

Featured Replies

  • Localization

Does anyone know what compression algorithm is used in this file?

Screenshot2024-03-29210729.png.b391ee0c398199a4a3744d4ebe329e19.png

0x00 Compress Size

0x05 Size After Decompression

Any help, no matter how small, would be greatly appreciated by me.
EDIT:The compression algorithm of this file is the same as the .das file in Resident Evil 4 GameCube version.

Sengoku Basara 2.zip

Edited by Sadamekaze

Solved by Gil_Unx

  • 1 month later...
  • Localization
  • Solution
On 3/29/2024 at 8:11 PM, Sadamekaze said:

Does anyone know what compression algorithm is used in this file?

Screenshot2024-03-29210729.png.b391ee0c398199a4a3744d4ebe329e19.png

0x00 Compress Size

0x05 Size After Decompression

Any help, no matter how small, would be greatly appreciated by me.
EDIT:The compression algorithm of this file is the same as the .das file in Resident Evil 4 GameCube version.

Sengoku Basara 2.zip 280.28 kB · 8 downloads

I don't know exactly what the compression method is. but last week I made a tool to decompress it. but to compress it back is a bit difficult. The solution is to replace the compression method with a more frequently used one, like the lz family maybe, I use lz01x to compress back in my edited sb2h, it works well.

sb2.png

SB2H_DEC.zip

  • Author
  • Localization
On 5/5/2024 at 12:05 PM, Gil_Unx said:

I don't know exactly what the compression method is. but last week I made a tool to decompress it. but to compress it back is a bit difficult. The solution is to replace the compression method with a more frequently used one, like the lz family maybe, I use lz01x to compress back in my edited sb2h, it works well.

sb2.png

SB2H_DEC.zip 17.5 kB · 6 downloads

Thank you very much for the tools and solutions.

  • Author
  • Localization
On 5/5/2024 at 12:05 PM, Gil_Unx said:

I don't know exactly what the compression method is. but last week I made a tool to decompress it. but to compress it back is a bit difficult. The solution is to replace the compression method with a more frequently used one, like the lz family maybe, I use lz01x to compress back in my edited sb2h, it works well.

sb2.png

SB2H_DEC.zip 17.5 kB · 6 downloads

Sorry to bother you. Could you please send me the file that has been compressed using lz01x, for example?

  • Localization
2 hours ago, Sadamekaze said:

Sorry to bother you. Could you please send me the file that has been compressed using lz01x, for example?

What do you mean? It depends on what game you are editing, I edited Sengoku Basara 2 Heroes, SLPM_668.48, you need to change the decompression routines in that file (I took the LZ01X decompressor from the Havest Moon STH game), and change all the compressed files to LZ01X, if you like. If you're interested in  modified this game  continue this chat in PM.

Edited by Gil_Unx

  • Author
  • Localization
11 minutes ago, Gil_Unx said:

What do you mean? It depends on what game you are editing, I edited Sengoku Basara 2 Heroes, SLPM_668.48, you need to change the decompression routines in that file (I took the LZ01X decompressor from the Havest Moon STH game), and change all the compressed files to LZ01X, if you like. If you're interested, I can send you the application and the files I edited.

Can you send it and how to change the decompression routine of SLPM_668.48? I'm really confused about this game compression issue. Thank you so much for helping me.

  • 2 years later...
On 5/5/2024 at 11:05 AM, Gil_Unx said:

I don't know exactly what the compression method is. but last week I made a tool to decompress it. but to compress it back is a bit difficult. The solution is to replace the compression method with a more frequently used one, like the lz family maybe, I use lz01x to compress back in my edited sb2h, it works well.

sb2.png

SB2H_DEC.zip

Sorry, but this tool cannot be used to unpack the "msg.pack" file. I not sure if this script is useful, but when I tested it, it worked to unpack the "msg.pack" file and generate .dat files. msg pack Unpacker.py

sub_file_000.rar

Edited by Jinxmargo

  • Localization

This looks like Capcom's YZ2 compressor. Kind of like LZ compression, but it uses Capcom's own dictionary and range coding system.

I only downloaded the ISO (SLPM_66447) as I needed to figure out how the compressor worked. I have no idea if the recompressed file will actually work in the game. I will leave that for you to figure out.

# Decompress
python .\YZ2.py .\msg.pack .\msg.fpk

# Compress
python .\YZ2.py --compress .\msg.fpk .\msg.pack

There also seems to be a #fpk archive in the decompressed output, but that is beyond the scope of this script. I could take a look at that, if needed.

YZ2.py

Edited by Falkrian
Spelling

8 hours ago, Falkrian said:

This looks like Capcom's YZ2 compressor. Kind of like LZ compression, but it uses Capcom's own dictionary and range coding system.

I only downloaded the ISO (SLPM_66447) as I needed to figure out how the compressor worked. I have no idea if the recompressed file will actually work in the game. I will leave that for you to figure out.

# Decompress
python .\YZ2.py .\msg.pack .\msg.fpk

# Compress
python .\YZ2.py --compress .\msg.fpk .\msg.pack

There also seems to be a #fpk archive in the decompressed output, but that is beyond the scope of this script. I could take a look at that, if needed.

YZ2.py

I using the ISO (SLPM668.48).

21.png

  • Localization
2 minutes ago, Jinxmargo said:

~ Snip ~

Hey,

Have you tried to decompress and/or recompress to see if it works or not?

I went with SLPM_66447 because I assumed that is what the topic author is using judging by the screenshot. Could I ask you to share a *.pack file from SLPM_66848 or at least some file that has the compression? I will try to get my hands on SLPM_66848 myself and see if there is any difference.


UPDATE #1

I have managed to get my hands on SLPM_66848 and can confirm that there was only one minor change to Capcom's YZ2 compressor. I have managed to extract msg.pack from LINKDATA.AFS and decompressed/recompressed the file with the slightly modified script. The original file and recompressed file are identical.

image.png

YZ2.py

Edited by Falkrian

18 hours ago, Falkrian said:

Hey,

Have you tried to decompress and/or recompress to see if it works or not?

I went with SLPM_66447 because I assumed that is what the topic author is using judging by the screenshot. Could I ask you to share a *.pack file from SLPM_66848 or at least some file that has the compression? I will try to get my hands on SLPM_66848 myself and see if there is any difference.


UPDATE #1

I have managed to get my hands on SLPM_66848 and can confirm that there was only one minor change to Capcom's YZ2 compressor. I have managed to extract msg.pack from LINKDATA.AFS and decompressed/recompressed the file with the slightly modified script. The original file and recompressed file are identical.

image.png

YZ2.py

Where you can get the file "msg.fpk" I can't find it

Edited by Jinxmargo

  • Localization

You need to extract msg.pack from LINKDATA.AFS and then decompress with the attached python script to get msg.fpk.

python .\YZ2.py .\msg.pack .\msg.fpk

image.png

Edited by Falkrian
Grammar

30 minutes ago, Falkrian said:

You need to extract msg.pack from LINKDATA.AFS and then decompress with the attached python script to get msg.fpk.

python .\YZ2.py .\msg.pack .\msg.fpk

image.png

I managed to decompress it. Can you check this file?msg.rar

Edited by Jinxmargo

  • Localization

I have checked the files you've uploaded. Our files are pretty much identical. I also extracted the files after figuring out the FPK archive format. 👍

image.png

I have completed what I set out to do here. The OP wanted to know the compression used and two years later he/she finally received the answer, heh.

I have no idea what your goals are but I sincerely hope you will achieve them. Good luck!

MSG_FPK_Extracted.7z

Edited by Falkrian
Attached extracted files

1 hour ago, Falkrian said:

I have checked the files you've uploaded. Our files are pretty much identical. I also extracted the files after figuring out the FPK archive format. 👍

image.png

I have completed what I set out to do here. The OP wanted to know the compression used and two years later he/she finally received the answer, heh.

I have no idea what your goals are but I sincerely hope you will achieve them. Good luck!

MSG_FPK_Extracted.7z

I want to translate this game. Thanks for your help.

Create an account or sign in to comment

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.