Conversion routines for Fire Emblem Heroes asset files.
$ gem install feh-bin
To convert a.bin
to a.bin.lz
, and b.bin.lz
to b.bin
:
$ feh_bin_lz a.bin b.bin.lz
If it takes too long to compress a file, try adding -s
anywhere:
$ feh_bin_lz -s very_large_file.bin
require 'feh/bin'
Dir.glob('assets/Common/SRPGMap/*.bin.lz').each do |fname|
IO.binwrite(fname.sub(/.lz$/, ''), Feh::Bin.decompress(IO.binread(fname)).pack('c*'))
end
- Fix
<internal:pack>:8: warning: unknown pack directive '<' in '<l'
message - Allow use of Bundler 2.x
- Added command line option
-s
tofeh_bin_lz
which skips LZ11 compression
- Added read support for non-LZ11-compressed .bin.lz files
- Fixed double encryption issue in
Feh::Bin.compress
- Initial release
The gem is available as open source under the terms of the MIT License.