Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hertzdevil/feh-bin

Conversion routines for Fire Emblem Heroes asset files
https://github.com/hertzdevil/feh-bin

feh fire-emblem-heroes

Last synced: 19 days ago
JSON representation

Conversion routines for Fire Emblem Heroes asset files

Awesome Lists containing this 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

```ruby
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 `:8: warning: unknown pack directive '<' in '