[engine] Save games backwards compatible or migrate tool

Brainstorm ideas of possible additions to the game. Read this before posting!

Moderators: Forum Moderators, Developers

Forum rules
Before posting a new idea, you must read the following:
Post Reply
WurmD
Posts: 10
Joined: July 9th, 2017, 1:12 pm

[engine] Save games backwards compatible or migrate tool

Post by WurmD » January 16th, 2018, 12:27 pm

Hey all,

Wouldn't it be nice to not lose our saved games (plus the pretty badges of "campaign complete") between versions of the game?

Were there actual format changes that made the saves from 1.12 to 1.13 not compatible?
If so, Is there a simple command, or tool to migrate from 1.12 to 1.13? (and later to 1.14 :D)

User avatar
octalot
Code Contributor
Posts: 203
Joined: July 17th, 2010, 7:40 pm

Re: [engine] Save games backwards compatible or migrate tool

Post by octalot » January 16th, 2018, 1:27 pm

If you just copy your save games from the 1.12 directory to the 1.13 directory, the game will warn but try to load it.

On Linux, the preferences settings seem to automatically be loaded from the same file for 1.12 and 1.13, and so the list of completed campaigns already migrates. Have you tested the latest 1.13 version before suggesting the idea?

WurmD
Posts: 10
Joined: July 9th, 2017, 1:12 pm

Re: [engine] Save games backwards compatible or migrate tool

Post by WurmD » January 16th, 2018, 6:24 pm

aah.. the preferences settings..
I actually changed operating systems from Ubuntu 14.04 to 16.04 and only backed up the saves folder.. :|

Oh well.

User avatar
Pentarctagon
Forum Administrator
Posts: 3517
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: [engine] Save games backwards compatible or migrate tool

Post by Pentarctagon » January 17th, 2018, 1:21 am

It would be nice, though Wesnoth does not guarantee compatibility when switching between major stable versions. So while old saves might work after upgrading from 1.12 -> 1.14, I really wouldn't count on it.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code

Post Reply