Method of compression

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
User avatar
turin
Lord of the East
Posts: 11662
Joined: January 11th, 2004, 7:17 pm
Location: Texas
Contact:

Method of compression

Post by turin »

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
dms
Posts: 56
Joined: August 11th, 2004, 9:08 pm
Location: New Zealand

Post by dms »

I have no idea, but the 'file' command should be able to tell you.
User avatar
turin
Lord of the East
Posts: 11662
Joined: January 11th, 2004, 7:17 pm
Location: Texas
Contact:

Post by turin »

dms wrote:I have no idea, but the 'file' command should be able to tell you.
Heh heh... not quite.
~$ 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
Dave
Founding Developer
Posts: 7071
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

Post by Dave »

Well, they're only kinda 'compressed': They use binary WML, instead of text WML.

To decompress, invoke Wesnoth like this:

Code: Select all

wesnoth --decompress infile outfile
To turn save compression off, add the following to your preferences file:

Code: Select all

compress_saves=no
David
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming
Post Reply