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

Danball Senki W (PSP) — SLZ type 2 decompression help

Featured Replies

Hi, sorry if my English isn't great.

I'm trying to get textures from Danball Senki W (PSP) and I'm stuck on a compressed file. I'm not a programmer, just doing this as a hobby, so please bear with me.

what I already did:
-extracted the game's CPK with VGMToolbox
-found MRON3.00 containers inside
-wrote a QuickBMS script that extracts entries from MRON (32-byte entries, 6-byte tag, 2-byte ID, 4-byte offset, 4-byte size). It works.
-inside MRON I found PSMF videos, nested MRON, and SLZ compressed data

Now I'm stuck on SLZ.(( The block I'm looking at is split between two MRON files (0002 and 0003), so I merged them and cut out the SLZ stream into one file.

The header starts like this:

53 4C 5A 02 00 01 24 00 38 28 00 00 30 86 00 00
00 00 00 00 20 00 00 00 01 40 10 00 00 00 00 00


what I think it means

-"SLZ" + type 2
-uncompressed size = 0x2838 (10296)
-packed size = 0x8630 (34352)
-header size = 0x20 (32 bytes)
I tried a lot of tools and scripts, none worked (slz.bms by aluigi (expects PACK, doesn't match), slz_triace.bms (reads header, fails on second block, saves nothing), slz_chunks.bms (just copies data), CUE's SLZ decompressor v1.1 (doesn't recognize signature), QuickBMS comtype slz_02 (needs 16-byte header, ours is 32), several Python LZSS attempts with different offset/length bit layouts, inverted flags, both endiannesses. Nothing valid came out.)

Someone on GBAtemp mentioned a Capcom SLZ variant with inverted flags (0x00 = literal, 0x01 = match). I tried that too, but maybe I got the offset/length formula wrong.
I think this might be a Level-5 custom version of tri-Ace SLZ type 2 (LZSS + RLE/FILL), maybe chunk-based instead of a single stream.

Here is the file! https://limewire.com/d/eV7Dt#3kshB5t6pr
(slz_one.bin, 34384 bytes = 32-byte header + 34352 packed bytes)

If anyone could take a look and tell me what the correct bit layout is, or share a working script, I'd be really grateful. I can provide more samples if needed.
Thanks a lot!

Edited by momoseiki

  • Localization

just took a look and pretty sure i have it cracked however can't fully test because i'm pretty sure your file is missing its beginning

provide more samples or take a look at how you're extracting the files to make sure it's not cutting off anything.

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.