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: 10 months ago
JSON representation
Conversion routines for Fire Emblem Heroes asset files
- Host: GitHub
- URL: https://github.com/hertzdevil/feh-bin
- Owner: HertzDevil
- License: mit
- Created: 2018-09-29T12:18:39.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-31T13:02:25.000Z (over 3 years ago)
- Last Synced: 2025-08-18T14:17:45.284Z (11 months ago)
- Topics: feh, fire-emblem-heroes
- Language: Ruby
- Size: 13.7 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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 '