Skip to content
This repository has been archived by the owner on Oct 11, 2020. It is now read-only.

Singleplayer savegames #588

Open
MartinMuzatko opened this issue Mar 21, 2018 · 1 comment
Open

Singleplayer savegames #588

MartinMuzatko opened this issue Mar 21, 2018 · 1 comment

Comments

@MartinMuzatko
Copy link

MartinMuzatko commented Mar 21, 2018

AFAIK, in Sauerbraten you have to play through missions in one go - there is no savegame.
I don't know about the map format in specific and if there are things that can be modified on the go during gameplay. If we want to offer a nice gaming experience, we should also allow users to save and load games.

What are the technical requirements in regard of inexor flex/tree?

Do we already store the player information somehow, that we could also persist?

How are savegames saved?

Are they attached to the map, or can there be various savegames per map?
What about multiplayer missions, if you want to play together through a map and then save at that point for each individual player to load again later.

@a-teammate
Copy link
Contributor

I imagine it like that:

You have a multiplayer campaign. (You only have multiplayer campaigns. Sure, one could play them alone on a local server in case you want "single player")

When playing, the state is in the Tree (containing i.e. the "game/"-node and its subnodes like "players" or "mapname").
Savegames are hence only a serialization of the Tree into a file.

How this could be combined with the map informations is indeed pretty interesting. In fact, the map informations are also only a part of the Tree.
So this issue could be related to #200: the map in a specific branch is your "savegame"! E.g. you just load a version of the map with all doors already triggered.
Very interesting idea indeed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants