Skip to content

Conversion routines for Fire Emblem Heroes asset files

License

Notifications You must be signed in to change notification settings

HertzDevil/feh-bin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Conversion routines for Fire Emblem Heroes asset files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages