Skip to main content

A python 3 unpacker for .bf files.

Project description

cryobf

coverage pipeline

Documentation

A python 3 unpacker for .bf files , proprietary format made by Cryo Interactive in the late 90's.

Description

Create an unpacker utility for this format as a pre step for SCUMMVM integration.

Usage

This utility copy's a shell executable to your local bin folder, so you can call it directly.

$ cryobf -h
usage: cryobf [-h] [-l] [-e] [-o OUTPUT_BASE_DIR] file

positional arguments:
  file                A .bf file or a directory with .bf files.

optional arguments:
  -h, --help          show this help message and exit
  -l                  A flag to list the contents of FILE.
  -e                  A flag to extract the contents of FILE.
  -o OUTPUT_BASE_DIR  The output base directory where to extract to, defaults
                      to current working directory.

Listing contents

$ cryobf -l Return\ to\ Mysterious\ Island/datas/cd1/loc_GE_cmn.bf 
{'BDi_01.ogg': {'offset': 32, 'rel_path': 'OGG/BDi_01.ogg', 'size': 60930},
 'BDi_02.ogg': {'offset': 60962, 'rel_path': 'OGG/BDi_02.ogg', 'size': 112499},
 'BDi_06.ogg': {'offset': 173461, 'rel_path': 'OGG/BDi_06.ogg', 'size': 57828},
 'BDi_07.ogg': {'offset': 231289, 'rel_path': 'OGG/BDi_07.ogg', 'size': 61101},
 'BDi_08.ogg': {'offset': 292390, 'rel_path': 'OGG/BDi_08.ogg', 'size': 24178},
 'BDi_09.ogg': {'offset': 316568, 'rel_path': 'OGG/BDi_09.ogg', 'size': 86662},
 'BDp_06.ogg': {'offset': 403230, 'rel_path': 'OGG/BDp_06.ogg', 'size': 83541},

Extracting contents

$ cryobf Return\ to\ Mysterious\ Island/datas/cd1/loc_GE_cmn.bf -e -o /tmp
Writing /tmp/OGG/BDi_01.ogg - Wrote 60930 bytes
Writing /tmp/OGG/BDi_02.ogg - Wrote 112499 bytes
Writing /tmp/OGG/BDi_06.ogg - Wrote 57828 bytes
Writing /tmp/OGG/BDi_07.ogg - Wrote 61101 bytes
Writing /tmp/OGG/BDi_08.ogg - Wrote 24178 bytes

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cryobf-0.1.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

cryobf-0.1.0-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file cryobf-0.1.0.tar.gz.

File metadata

  • Download URL: cryobf-0.1.0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.9

File hashes

Hashes for cryobf-0.1.0.tar.gz
Algorithm Hash digest
SHA256 67710eaf31cc926bebe93a8a8e19506a5ec6d68a054d8b1438d86b0c2a9333f6
MD5 f9707475b98296d744252ad06739775c
BLAKE2b-256 aee167aa4ac914463b4a12d740c48706fc502ea9f70c651e7daf686cd17e8447

See more details on using hashes here.

File details

Details for the file cryobf-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cryobf-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.9

File hashes

Hashes for cryobf-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f48df30c42b0768153fe50e5fc4be85460042becb86480e38db286b4aed738bb
MD5 5d7f18d881ade8b8aa922aabfdb57c74
BLAKE2b-256 dcbaf58de5ff6cb6cc76c01e81bc8fdcf3d8beede304bde6553827f995f57751

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page