Did you know? Xentax started the Unepic SID Channel, that brings the latest music composed for the SID chip! Support us by listening and subscribing! Over 50.000 songs already there!

No More Heroes .bin Compression

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Post Reply
User avatar
LinkOFF
beginner
Posts: 36
Joined: Mon Sep 08, 2014 12:32 am
Has thanked: 10 times
Been thanked: 7 times

No More Heroes .bin Compression

Post by LinkOFF » Wed Jun 09, 2021 9:19 pm

Can someone tell what kind of compression used in these files?

Code: Select all

0x00 - Uncompressed Size
0x04 - Compressed Size
0x08 - Compressed Data
Examples

User avatar
LinkOFF
beginner
Posts: 36
Joined: Mon Sep 08, 2014 12:32 am
Has thanked: 10 times
Been thanked: 7 times

Re: No More Heroes .bin Compression

Post by LinkOFF » Thu Jun 10, 2021 4:11 pm

Solved. WOLF algorithm.

Code: Select all

get NAME basename
get ZSIZE asize
set SIZE long 0
if SIZE <= 0
    math SIZE = ZSIZE
    math SIZE *= 20
endif
comtype WOLF
string NAME p "%s.%s" NAME RSL
clog NAME 0 ZSIZE SIZE

User avatar
ikskoks
Moderator
Posts: 891
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 499 times
Been thanked: 226 times
Contact:

Re: No More Heroes .bin Compression

Post by ikskoks » Thu Jun 10, 2021 10:03 pm

Nice. How did you solve it?

Giza
ultra-n00b
Posts: 4
Joined: Sun Jul 22, 2018 7:51 am

Re: No More Heroes .bin Compression

Post by Giza » Fri Jun 11, 2021 5:05 am

ikskoks wrote:
Thu Jun 10, 2021 10:03 pm
Nice. How did you solve it?
brute force

Post Reply