Utility for encoding and decoding csb files
Project description
CSB Util
Utility to encode and decode .csb files.
CSB is basically a binary version of a CSV file optimized for quick parsing (it's definitely not optimized for file size as csb files are much larger than their csv counterparts)
These files are found in The Battle Cats Unite!. Although the CSB format is very similar to BNTX, which is used for images, which either means that PONOS took heavy inspiration from that format, or the CSB format is another Nintendo file format that alrady existed but isn't documented online. To get the csb files from the game you have to extract the .arc files which I won't be getting into here, I might make a tool in the future that extracts them though.
I've released this tool separately as other games might use the format too if it is a Nintendo format.
Installation
pip install csb_util
Usage
Most of what you need to know is detailed in the --help option
python3 -m csb_util --help
Decode
python3 -m csb_util decode --help
To decode csb files you can either pass in individual files with the --files option, e.g
python3 -m csb_util decode --files file1.csb file2.csb --outdir output
To decode a folder of csb files you can use the --dirs option, e.g
python3 -m csb_util decode --dirs folder1 folder2 --outdir output
If you have non-csb files in that folder that you want to ignore use the --ignore flag, e.g
python3 -m csb_util decode --dirs mixed_use_folder --outdir output --ignore
Encode
python3 -m csb_util encode --help
Encode csv files back to csb files.
Options are basically the same as decode, so just read that
Install From Source
git clone https://github.com/fieryhenry/csb_util.git
cd csb_util
pip install -e .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file csb_util-0.1.tar.gz
.
File metadata
- Download URL: csb_util-0.1.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0f506c43aca1c151a8a0fae349750f20dd39e12c56319e6b0dcf9a2ec9be484 |
|
MD5 | 27b0154174d90cfe771f9220b212cb88 |
|
BLAKE2b-256 | 275431a37994897695f78466b83d67302e7c09aab6d83e2168f9c1e894889b43 |
File details
Details for the file csb_util-0.1-py3-none-any.whl
.
File metadata
- Download URL: csb_util-0.1-py3-none-any.whl
- Upload date:
- Size: 18.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 894a59b5054972e81b1d23b9d784db48b7c9d3b99df6cfb6f5b4ad8ec02fb98a |
|
MD5 | 25080c25c7a2cdb0bfd2dde5b6341214 |
|
BLAKE2b-256 | 782a04cc759c91255b0c587aaf6f6e5644ab21ab62918ab1d69ecdf221171161 |