Members Alpha 1001 Posted June 3 Members Posted June 3 (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 June 3 by Alpha 1001
Members NeoGT404 Posted Monday at 11:22 AM Members Posted Monday at 11:22 AM from a bit of trial and error LZO1X doesn't seem too bad but I'll need the executable
Members Alpha 1001 Posted Monday at 03:57 PM Author Members Posted Monday at 03:57 PM Here the executable: https://drive.google.com/file/d/1uNtUpMyFZLqc2AnjjunMzX58fEg3mdRQ/view?usp=drivesdk 1
Members NeoGT404 Posted Monday at 08:32 PM Members Posted Monday at 08:32 PM more sample files please and also a decompressor for yz2
Members Alpha 1001 Posted Monday at 09:26 PM Author Members Posted Monday at 09:26 PM Here the samples: https://drive.google.com/file/d/1Z5yF4f7nrojuPYyZmeV1VX2ZbJ-AXNVP/view?usp=drivesdk and here an yz2 encoder/decoder: https://github.com/RayneDuarte/YZ2-Encoder-and-Decoder-ported-to-modern-Cpp-Builder-12 1
Members Alpha 1001 Posted yesterday at 02:38 PM Author Members Posted yesterday at 02:38 PM Hello, do you think you can make a decompressor from the executable?
Members NeoGT404 Posted yesterday at 03:01 PM Members Posted yesterday at 03:01 PM oh it's actually just LZO1X lol, added support: https://github.com/smiRaphi/UniPyX/commit/10b71fe85dbc064334ff472caadb6525fb1b5b85
Members Solution Alpha 1001 Posted 23 hours ago Author Members Solution Posted 23 hours ago Thanks a lot!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now