OpenGothic icon indicating copy to clipboard operation
OpenGothic copied to clipboard

Load the save games made with the original G2

Open Nindaleth opened this issue 2 years ago • 4 comments

I noticed https://github.com/lmichaelis/phoenix/issues/16 which implies that OpenGothic could load saves of the original G2, allowing to migrate from G2 to OG mid-playthrough. As far as G2 format goes, limiting to load only is assumed, saving would be done only in OG-native format.

Is this something that would be desirable in the future?

Nindaleth avatar Feb 15 '23 18:02 Nindaleth

Hi, @Nindaleth !

I haven't thought much about supporting original saves. It nice to have it, if we can keep it simple in terms of code and workflow.

On side of workflow: G2 original saves are folders with multiple files. Any suggestions how user side can look-like?

Try avatar Feb 15 '23 18:02 Try

Quick context:

Support for save-games in phoenix is currently limited, though a lot of things do already work. The sky controller, for example, is parsed from the file but not actually stored anywhere (admittedly that is a small fix).

I did experiment a bit with loading them into OpenGothic but I ran into some quite annoying quirks, like G2 world save files not including the world mesh. This would mean having to load the world twice, once from the VDF, keeping the mesh and once from the save, keeping the Vob-tree.

I am not sure about the Vob-tree either. It might not actually contain all Vobs so some merging might be required.

lmichaelis avatar Feb 15 '23 19:02 lmichaelis

Any suggestions how user side can look-like?

I was thinking similar to how OG saves work, since we already have to provide G2 installation folder and the structure is saves/<slot>/*.

To the existing -save something like -gsave parameter could be added to allow loading. If changing the main menu items is possible, there could also be "Load Gothic2 Game" in GUI. If main menu is set in stone, well... an additional CLI parameter that switches Load Game location between OG and G2?

Nindaleth avatar Feb 15 '23 20:02 Nindaleth

I think a better way would be to create a separate program that would convert the saves.

PoetaKodu avatar Apr 17 '23 21:04 PoetaKodu