Project

feh-bin

0.0
Low commit activity in last 3 years
No release in over a year
Functions to compress and decompress binary asset files from Fire Emblem Heroes
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 13
 Project Readme

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

If it takes too long to compress a file, try adding -s anywhere:

$ feh_bin_lz -s very_large_file.bin

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.2.0

  • Fix <internal:pack>:8: warning: unknown pack directive '<' in '<l' message
  • Allow use of Bundler 2.x

V0.1.4

  • Added command line option -s to feh_bin_lz which skips LZ11 compression

V0.1.3

  • Added read support for non-LZ11-compressed .bin.lz files

V0.1.2

  • Fixed double encryption issue in Feh::Bin.compress

V0.1.0

  • Initial release

License

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