Making a simple compression and decompression script

Programming related discussions related to game research
Garo
Posts: 20
Joined: Wed Nov 18, 2020 5:54 pm

Making a simple compression and decompression script

Post by Garo »

I'm sorry for the abruptness of this post, but like the title says, how would I be able to make a simple compression and decompression script for a game I'm making? Could I use QuickBMS to compress my game files?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Making a simple compression and decompression script

Post by aluigi »

Basic file compressor using zlib:

Code: Select all

comtype zlib_compress
get SIZE asize
get NAME filename
string NAME + ".z"
clog NAME 0 SIZE SIZE