Hey, had this sitting around for a while and completely forgot to post it but in case anyone wants to mod Yoshi's Wooly World *crickets chirp* then here you go. (Note: this is untested for Kirby's epic yarn but should work for it as well as I think it uses GFA also (tell me if you can confirm this))
How to use:
Known issues:
If you'd like to contribute the best way would be to write a string compressor for BPE in python and on replace lines 38 to 44 with "compressed = your_compression_function(uncompressedString)" then submit a pull request on github with these changes. If you'd like an example implementation of BPE compression look no further than Phillip Gage's implementation in C. This would definitely be helpful as it would make it cross platform as well as potentially remove the 1 MB data section limit.
Thanks to:
How to use:
- Install or have installed Python 2
- Extract GFA using QuickBMS and the GFA BMS script
- Edit files to your heart's content
- Repack using the command "gfa-packer.py [name of folder to repack] [original gfa]"
Known issues:
- Compression fails on data sections larger than 1 MB, I don't have enough interest to solve this, sorry! (AKA if the total combined size of all the files is > 1MB)
If you'd like to contribute the best way would be to write a string compressor for BPE in python and on replace lines 38 to 44 with "compressed = your_compression_function(uncompressedString)" then submit a pull request on github with these changes. If you'd like an example implementation of BPE compression look no further than Phillip Gage's implementation in C. This would definitely be helpful as it would make it cross platform as well as potentially remove the 1 MB data section limit.
Thanks to:
- @MasterF0x for helping me out some (especially with testing)
- Luigi Auriemma for QuickBMS and the unpacker
- Phillip Gage for his BPE compressor I used out of laziness (partially because it would be slower to do a python rewrite)
Last edited by jam1garner,