rofl0r / agsutils

contains utils for AGS: game extractor, repacker, disassembler and assembler
44 stars 14 forks source link

agsprite Sprite file version 12 support #25

Closed jaykup1 closed 2 years ago

jaykup1 commented 2 years ago

agsprite is giving "unsupported sprite file version 12" with 3.6 builds of AGS. Any possible fix?

rofl0r commented 2 years ago

that format is very different and i didnt have opportunity yet to implement it, lacking a testgame using the format. if you can point me to one (preferably a small, free one) i can give it a shot.

jaykup1 commented 2 years ago

Sure. Thank you for keeping this project up and running.

Tumbleweed 3.6 version Windows 3.6 Project

rofl0r commented 2 years ago

implemented basic support that seems to work with v12 spritecache (at least uncompressed version). i expect that RLE-compressed spritecache may be broken, lzw (de)compression isn't implemented for the time being. in case you know how to tweak those settings, i'd appreciate if you could test with RLE enabled, using both 16 and 32 bit images with less than 256 colors.

jaykup1 commented 2 years ago

With RLE enabled project it doesn't work at all, uncompressed 16 and 32 bit seems to work with less than 256 colors. Test files with AGS 3.6 General Settings screenshots

rofl0r commented 2 years ago

fixed rle eba6ce2...6209c2e - thanks for the testcases. it'd be interesting to see what AGS does for images > 256 colors when RLE is selected. as for LZW, this remains unimplemented for now. let me know whether you come across any published games making use of it.

rofl0r commented 2 years ago

pushed lzw support: e72e23e