feh-bin

Conversion routines for Fire Emblem Heroes asset files.

Installation

$ gem install feh-bin

Command line usage

To convert a.bin to a.bin.lz, and b.bin.lz to b.bin:

$ feh_bin_lz a.bin b.bin.lz

Library example

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

Changelog

V0.1.3

V0.1.2

V0.1.0

License

The gem is available as open source under the terms of the MIT License.