Well phil 7zip uses lzma and lzma 2 and yeah the files are good.
it does take a lot of cpu to handle extraction and compression of large
files but its worth it.
Another compression type that may be worth looking at is bzip2 which is
what linux uses.
innosetup can also use lzma and its setups are fast loading.
On 25/09/2015 12:05 p.m., Philip Bennefall wrote:
Hi John,
Just a quick heads up to let you know that compression is coming; I have
done some tinkering with both Zlib and LZMA. For data with high
redundancy such as text, both of these work very well - LZMA scores
higher when it comes to compression ratio but is also significantly
slower than Zlib in my tests. Of course the compression level will be
configurable, which should give you the ability to find a reasonable
balance between compression ratio/speed. I can't say when the next
official release will be out, but I can certainly give you some test
binaries to play around with if you need this feature quickly since it's
almost done anyway.
Kind regards,
Philip Bennefall
On 9/25/2015 1:55 AM, john wrote:
This is actually on the subject of gaming, or at least game development.
To anybody who has experience with such things, do you know of any way
I can get usable compression of some sort running under bgt?
The specter of saving/loading games is moving closer and closer, and
its starting to look like my save games may have to be rather large
(we're talking several if not tens of megabytes). On the plus side
they're probably also going to be easily compressible text (or
something close to it, anyway), which leads to my posting this question.
I could probably write something to work with the command-line version
of 7-zip, but then I'd have to distribute that along with the game,
which is something I really don't want to do. There's also the issue
of several cmd windows popping up every time the user tries to save or
load games (I'm not hacking, I swear. Those batch files really do have
a reason to be running in the middle of your game).
I've gone looking for the docs for 7z.dll, but they seem to be
nonexistent to anybody who doesn't know c/c++. This is very much a
category that includes me.
I'd really love to use the 7-zip interface (specifically its included
ppmd algorithm), as I suspect it'd be able to compress the
aforementioned save file down to a couple hundred kb, which would be
at least a bit more manageable.
In addition, there are also some potential bgt limitations coming into
play here - specifically a really limited ability to work with binary
files and a UTF-8 only string setup.
If anybody could pull me out of the fire on this one it'd be really
appreciated - I'm just not creative enough to find a way to shrink
saved games while maintaining all the needed information, so
compression is looking like the best/only option currently available.
Thanks,
John
---
Gamers mailing list __ [email protected]
If you want to leave the list, send E-mail to
[email protected].
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[email protected].
If you have any questions or concerns regarding the management of the
list,
please send E-mail to [email protected].
.
---
Gamers mailing list __ [email protected]
If you want to leave the list, send E-mail to
[email protected].
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[email protected].
If you have any questions or concerns regarding the management of the list,
please send E-mail to [email protected].
.
---
Gamers mailing list __ [email protected]
If you want to leave the list, send E-mail to [email protected].
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[email protected].
If you have any questions or concerns regarding the management of the list,
please send E-mail to [email protected].