CivOne icon indicating copy to clipboard operation
CivOne copied to clipboard

Implement save games

Open Solen1985 opened this issue 8 years ago • 8 comments

Solen1985 avatar Feb 19 '17 09:02 Solen1985

Documenting map-related saving bugs:

In a game started in CivOne, saving caused the following problems (offsets are relative to land):

  1. Cities offset 1 to the left image

  2. Villages re-generated

  3. Roads and irrigation offset 2 to the right image

  4. Fog of war offset 2 to the left image

  5. One unit was offset 1 to the left image

Not all cities were offset 1 to the left Not all fog of war was offset 2 to the left image

All other units remained where they were relative to the land

I should load this save in Civilization and check for discrepancies, as you mentioned that loading is currently buggy.

AlexFolland avatar Mar 03 '17 12:03 AlexFolland

Okay, that save hangs the original Civilization after moving a unit.

image

Here is the save in question: http://lex.clansfx.co.uk/dump/CIVIL1.MAP http://lex.clansfx.co.uk/dump/CIVIL1.SVE

AlexFolland avatar Mar 03 '17 12:03 AlexFolland

Yeah, the save game function is very, very unstable at the moment. First of all, I'm missing all kinds of data from the original game, making it nearly impossible to make anything out of it for the original game. Then I've got a lot of details in the save game wrong. I mean to get it working and fully compatible with the original game soon though... thanks for reporting the issues, it will help me track down some of the bugs.

Solen1985 avatar Mar 03 '17 13:03 Solen1985

I also noticed one one occasion that after loading a saved game the huts (villages) respawn.

axx0 avatar Mar 23 '17 22:03 axx0

That's because I don't (yet) properly record unit visited tiles. It should get fixed soon.

Solen1985 avatar Mar 24 '17 06:03 Solen1985

Alternatively, if you're going to record visited tiles instead of simply recording the current game state, saving an initial game state and input performed since that state would allow replay playback. That could be used as the custom non-Civilization-compatible save format also. To load a game on a certain date, the engine would simply play back the input recording without animating it.

AlexFolland avatar Mar 24 '17 08:03 AlexFolland

The data recorded for the game playback is a lot more compact. Here's an overview: https://forums.civfanatics.com/threads/sve-file-format.493581/#post-12383993

Eventually, recording the entire game in the new save game format is a pretty cool idea. I'm going to steal it. ;-)

Solen1985 avatar Mar 24 '17 08:03 Solen1985

A couple of issues when loading saved games:

  • immediately after loading a game I get a "choose new government" question
  • tax & science rates stuck at 0 % (and cannot be changed as in the pic below)

image

axx0 avatar Dec 27 '17 21:12 axx0