3 个版本
0.1.2 | 2021 年 12 月 17 日 |
---|---|
0.1.1 | 2021 年 12 月 3 日 |
0.1.0 | 2021 年 12 月 3 日 |
#16 in #factorio
21KB
393 行
factorio-bitpacker
Factorio bitpacker 是一个 crate,可以将任意二进制块打包成一个包含 factorio 组合器的蓝图字符串。它使用信号格式将值紧密地打包到尽可能少的组合器中。
使用 cargo install factorio-bitpacker
安装,或者您也可以通过克隆并运行 cargo run
从源代码安装。
用法
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.
依赖项
~5.5MB
~87K SLoC