Jump to content

Recommended Posts

  • Members
Posted (edited)

Hi guys, someone can create for me a decoder to decode this file or maybe a bms script?
https://drive.google.com/file/d/12SOsJxcs7536JSJ2iv_nbcAJL7SUopim/view?usp=drive_link
There is some visble strings of uncompressed content. The original algorithm is the yz2, but this game version uses a custom compression, maybe an lzss variant. I have the encoder and decoder for the yz2, but for this game the yz2 compression has been replaced with a custom compression as I said.

I can read the zsize and unpacked size fields from header with this C code:
#include <stdio.h>
#include <stdint.h>

int read_header(FILE *fp, uint32_t *packed_size, uint32_t *unpacked_size)
{
char hdr[33];

if (fread(hdr, 1, 32, fp) != 32)
return -1;

hdr[32] = '\0';

unsigned int a, b;

if (sscanf(hdr, "%x%x", &a, &b) != 2)
return -1;

*packed_size = a;
*unpacked_size = b;

return 0;
}

Edited by Alpha 1001

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...