#combinator #factorio #blueprint #input-file #bitpacker

bin+lib factorio-bitpacker

A crate to pack binary blobs into a blueprint string containing factorio combinators

3 releases

0.1.2 Dec 17, 2021
0.1.1 Dec 3, 2021
0.1.0 Dec 3, 2021

#16 in #factorio

GPL-3.0 license

21KB
393 lines

factorio-bitpacker

Factorio bitpacker is a crate that packs any arbitrary binary blob into a blueprint string containing factorio combinators. It uses a signal format to densely pack values into as little combinators as possible.

Install with cargo install factorio-bitpacker, or you can install from source by cloning and running cargo run.

usage

factorio-bitpacker 0.1.2
Packs any arbitrary binary blob into a blueprint containing factorio
combinators. Uses a dictionary of 256 signals to densely many values into a
small space. For inputs which exceed 1KB, a separate set of combinators is
created and should be wired separately to avoid interference.

USAGE:
    factorio-bitpacker [ARGS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

ARGS:
    <input>     Binary input file, defaults to stdin if not present
    <output>    Blueprint string output file, defaults to stdout if not present

Copyright © 2021 "micycle".
Licensed GPLv3: GPL version 3 <https://gnu.org/licenses/gpl.html>.
This program is free software: you are free to change and redistribute it under
the terms of the License. There is NO WARRANTY, to the extent permitted by law.

Dependencies

~5.5MB
~87K SLoC