BannerlordCoop icon indicating copy to clipboard operation
BannerlordCoop copied to clipboard

Reimplement Save System

Open garrettluskey opened this issue 3 years ago • 0 comments

A save system was working with 1.5, it is no longer working with 1.7.

The old save system worked by saving party ids and associating them with a platform id (ex Steam Id). This file was generated every time the save button was clicked on the server. When loading a save the server would create a dictionary with associated party ids and every time a client joined, attempt to associate that client with a party. If a party did not exist for that client, a character creation required packet would be sent to that client.

There is a decision branch in the CoopClient whether to create a character or not. This is decided by receiving a party already exists or character creation required packet to decide which tree to go down.

For this issue, reimplement the save system to work with 1.7 and fix the character creation required or not state machine in CoopClient and CoopServer.

garrettluskey avatar Feb 05 '22 20:02 garrettluskey