Making a simple compression and decompression script
-
- Posts: 20
- Joined: Wed Nov 18, 2020 5:54 pm
Making a simple compression and decompression script
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?
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Making a simple compression and decompression script
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