Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add version to game objects #100

Open
jabelch opened this issue Feb 20, 2013 · 3 comments
Open

Add version to game objects #100

jabelch opened this issue Feb 20, 2013 · 3 comments

Comments

@jabelch
Copy link
Contributor

jabelch commented Feb 20, 2013

Each time we make a change to the game (adding objects, changing how we handle randomness) the version will change. This can be an issue for saved games and the state.
We need a method to basically "look" at the version of a game and revert to that state. One option would be to use a const.py factory.

@BlackVegetable
Copy link
Contributor

In some cases, a client with an outdated version could function properly with a newer server, but I don't think we should count on that happening. What is a const.py factory?

@BlackVegetable
Copy link
Contributor

This only needs to apply to save games, right?

@ghost ghost assigned jabelch Apr 4, 2013
@malikoth
Copy link
Contributor

Realistically, it should also apply to the network protocol. The solution as I've seen it in other games is to never connect a client and server if they are running two different versions, and show a message on the side with the older release that it's time to update. For saves, create a method specific to each change you implement that manually adjusts the data structure to convert from the old version to the new.

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

No branches or pull requests

3 participants