|
Post by DarkKobold on Feb 5, 2024 23:48:46 GMT
With huge thanks to turboxray and elmer, we now have ZX0 decompression available in HuC! Source code and examples are provided in the repo below: github.com/Turboxray/zx0_huc_pce/You'll need Python installed to convert PNG graphics to TG16 format. Further, you'll need to compress your graphics using salvador, an open source ZX0 compressor, available here: github.com/emmanuel-marty/salvador/releases/tag/1.4.2The basic workflow goes as follows: 1. Create your sprite/tileset in indexed PNG format 2. Convert the PNG to TG16 planar format using the convert_planar Python script 3. Use salvador to create a compressed binary file 4. include the compressed file in your HuC project using "#incbin" 5. decompress it using the library from above. We've saved around 1/10th the size of the ROM for Catastrophy, and we still have a few tilesets left to compress. Also, this decompression is fast. I'm including a gif which shows how fast it can go, and how unnoticeable it will be to the player. Also, if you're using HuTrack for music, it won't disrupt the music playback, as that is interrupt driven.
|
|
|
Post by turboxray on Feb 6, 2024 0:58:44 GMT
I really have to give Elmer props on this. I was pretty adamant in using PuCrunch because that's what I already had for PCE, but this gets you the same compression levels at a WAY faster decompression time. I'm impressed. Elmer had mentioned some possible improvements to the decompression time too.
|
|
|
Post by _jash on Feb 6, 2024 12:46:35 GMT
This is so rad!! Saving rom space is huge!!
|
|
|
Post by hyperfighting on Feb 8, 2024 12:13:59 GMT
This is a game changer guys! Thanks so much for putting in the hard work and for releasing this tool!!!
|
|
dogen
Deep Blooper
Posts: 30
|
Post by dogen on Feb 23, 2024 15:00:53 GMT
nice
|
|