Method of compression
Moderator: Forum Moderators
Forum rules
Before reporting issues in this section, you must read the following topic:
Before reporting issues in this section, you must read the following topic:
Method of compression
I notice that save files appear to be compressed now - on the whole a good idea. However, they don't have an extension, so I can't figure out what algorithm is used. Is it .zip?
For I am Turin Turambar - Master of Doom, by doom mastered. On permanent Wesbreak. Will not respond to private messages. Sorry!
And I hate stupid people.
The World of Orbivm
And I hate stupid people.
The World of Orbivm
Heh heh... not quite.dms wrote:I have no idea, but the 'file' command should be able to tell you.
~$ file .wesnoth/saves/Traitors_replay
.wesnoth/saves/Traitors_replay: data
~$
For I am Turin Turambar - Master of Doom, by doom mastered. On permanent Wesbreak. Will not respond to private messages. Sorry!
And I hate stupid people.
The World of Orbivm
And I hate stupid people.
The World of Orbivm
Well, they're only kinda 'compressed': They use binary WML, instead of text WML.
To decompress, invoke Wesnoth like this:
To turn save compression off, add the following to your preferences file:
David
To decompress, invoke Wesnoth like this:
Code: Select all
wesnoth --decompress infile outfile
Code: Select all
compress_saves=no
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming