GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
We should replace the use of Crusher for compression in bgfs with something like zlib. This would also require a tool to convert all of the existing bgfs. This would get us a big step closer to not needing Crusher at all.
Have a look at this commit on my fork:
It's just a few lines, but it basically adds zlib compressed BGF support to dibutil.c, introducing a new BGF version of 10. I implemented it so the versions (< 10 for crush and > = 10 for zlib) can coexist for a few release builds before crush32 might be finally dropped...
It uses the zlib version that is already part of Meridian 59 project.
I also added a zlib compressed testbgf (ivy circlet), see comment on the commit for link.
It works for me so far..
I also already updated my BgfEditor tool, so it can save BGF as version 10 now, if you want more examples...
First commit above was for decompressing only (i.e. in client).
This commit is for writebgf.c to (write them as version 10 and zlib compressed):
But I wasn't able to test this yet, except for successful compilation.
See my comments--you have a start, but all readers must be updated first.
roomedit is particularly a problem. It might be a lot of work to get it to link with zlib.
Merge pull request #32 from M59Gar/ImpCap
Oriumpor's Imp Cap Removal
bgfs were converted a long time ago