C7-Game / Prototype

An early-stage, open-source 4X strategy game
https://c7-game.github.io/
MIT License
32 stars 9 forks source link

Loading Incompatible Save Ruins New Game #434

Closed benskywalker closed 9 months ago

benskywalker commented 9 months ago

Data loaded from an incompatible save persists until the program is restarted. After the error message, this data will still be in the game if you start a new game.

image Here I have altered terrain from the scenario I loaded. However, the units can not be moved due to incompatibilities

pcen commented 9 months ago

What data is persisting? I'm working on revamping the way saves are handled in general, which should address a lot of save-related issues in general. Currently saves are quite brittle. There's some context in this discussion

benskywalker commented 9 months ago

What data is persisting? I'm working on revamping the way saves are handled in general, which should address a lot of save-related issues in general. Currently saves are quite brittle. There's some context in this discussion

I can do more testing, but the only thing I found so far is the terrain images. The image above shows the altered terrain used in the scenario I tried to load, which failed. When I then hit "Quick Start" without closing the game, I had the altered terrain from the scenario but I could not move my units

pcen commented 9 months ago

Which branch does this happen on?

benskywalker commented 9 months ago

Good question, sorry for being vague. I didn't remember so I just tested it again. I'm on use-tilemaps now. The game actually runs fine but has altered terrain graphics! Closing the issue but it's worth noting that some data is maintained from an aborted load of a scenario (only terrain graphics as far as I can tell). image