Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#2361 closed enhancement (fixed)

[PATCH] Check, if save game has the correct version.

Reported by: Michael Owned by: Michael
Priority: Nice to Have Milestone: Alpha 16
Component: Core engine Keywords: check savegame patch
Cc: Patch:

Description

Before loading a savegame, the game should check, if the savegame has the correct major version.

Attachments (2)

save_check.patch (12.4 KB ) - added by Michael 10 years ago.
Checks the major version of the save game.
savegame-0010.0adsave (1.1 MB ) - added by Michael 10 years ago.
Incompatible savegame for testing.

Download all attachments as: .zip

Change History (9)

by Michael, 10 years ago

Attachment: save_check.patch added

Checks the major version of the save game.

comment:1 by Michael, 10 years ago

Keywords: patch review added
Owner: set to Michael
Summary: Check, if save game has the correct version.[PATCH] Check, if save game has the correct version.

comment:2 by Michael, 10 years ago

The patch checks, if the save game version is correct and if not disables the entry in the list.

TODO:

  • define "warncolor" like "textcolor" is defined (I can not find that...)
  • Maybe AddItem Function is not working or I'm doing something wrong.

by Michael, 10 years ago

Attachment: savegame-0010.0adsave added

Incompatible savegame for testing.

comment:3 by mimo, 10 years ago

Thanks for the patch. I had a look at it, and I'm not convinced by the disabling of entries. I think we should warn the player that its saved games will certainly fail, but we should still leave him the possibility to try if he really wants to. I would then suggest to only display the incompatible games with a different color, but keep them selectable. Another possibility would be, as I've done for http://trac.wildfiregames.com/ticket/2385 , to have a checkbox to display only the compatible games or all. In addition, this would shorten a lot the patch.

In fact, as both patches are very similar, I can combine them to make them more consistent. The pending point is to agree on how we want to display the saved games: my preference would be to

  • display by default only the saved games with the same mod (with a checkbox to display all saved games if wanted)
  • display the saved games with a different major version in red, but keep them selectable

in reply to:  3 comment:4 by Michael, 10 years ago

Replying to mimo:

Thanks for the patch. I had a look at it, and I'm not convinced by the disabling of entries. I think we should warn the player that its saved games will certainly fail, but we should still leave him the possibility to try if he really wants to. I would then suggest to only display the incompatible games with a different color, but keep them selectable. Another possibility would be, as I've done for http://trac.wildfiregames.com/ticket/2385 , to have a checkbox to display only the compatible games or all. In addition, this would shorten a lot the patch.

What I wanted to achieve was that incomp. save games do not disappear completely from the list because the player would wonder where his save games went. It's also ok to let them selectable and just display them in another color. In this case I would suggest to add an additional warning, if the player tries to load a save game with a different major version.

In fact, as both patches are very similar, I can combine them to make them more consistent.

Sounds good.

The pending point is to agree on how we want to display the saved games: my preference would be to

  • display by default only the saved games with the same mod (with a checkbox to display all saved games if wanted)
  • display the saved games with a different major version in red, but keep them selectable

I agree to you and to make it even more consistent I suggest:

  • display by default only save games with the same mod and compatible onces
  • add one check box for adding mods and incomp. onces or make for each kind a own one
  • display inc. and wrong mod save games in different color
  • warn the player, if he tries to load a "wrong" save game

comment:5 by mimo, 10 years ago

Resolution: fixed
Status: newclosed

In 14630:

check version and mods before loading a file, fixes #2361 and #2385.

comment:6 by mimo, 10 years ago

Thanks boeseRaupe for the patch.

comment:7 by mimo, 10 years ago

Keywords: review removed
Note: See TracTickets for help on using tickets.