Skip to content

Instantly share code, notes, and snippets.

@paulus-allods
Created May 27, 2020 22:54
Show Gist options
  • Select an option

  • Save paulus-allods/7965c25b26c4e2c1acf419b861ac9ed3 to your computer and use it in GitHub Desktop.

Select an option

Save paulus-allods/7965c25b26c4e2c1acf419b861ac9ed3 to your computer and use it in GitHub Desktop.
Uncompress Allods bin files
import argparse
from zlib import compress, decompress
parser = argparse.ArgumentParser()
parser.add_argument('file', type=argparse.FileType('rb'))
args = parser.parse_args()
dec = decompress(args.file.read())
args.file.close()
f = open('out.bin', 'wb')
f.write(dec)
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment