[engine] Save games backwards compatible or migrate tool

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

Moderator: Forum Moderators

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 »

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
General Code Maintainer
Posts: 783
Joined: July 17th, 2010, 7:40 pm
Location: Austria

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

Post by octalot »

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 »

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
Project Manager
Posts: 5526
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

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

Post by Pentarctagon »

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