Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hertzdevil/feh-bin
- Owner: HertzDevil
- License: mit
- Created: 2018-09-29T12:18:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-31T13:02:25.000Z (over 1 year ago)
- Last Synced: 2024-10-05T00:48:34.874Z (about 1 month ago)
- Topics: feh, fire-emblem-heroes
- Language: Ruby
- Size: 13.7 KB
- Stars: 3
- Watchers: 3
- 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 '