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

Automatically sync map (Download save file) #131

Closed
Techial opened this issue Aug 19, 2019 · 3 comments
Closed

Automatically sync map (Download save file) #131

Techial opened this issue Aug 19, 2019 · 3 comments

Comments

@Techial
Copy link

Techial commented Aug 19, 2019

It would help being able to sync the map with the client either automatically when you join server & desync or manually.

A lot of the time I play multiplayer games with a friend I have to go and zip up my save file for him to download and rejoin.

Server could pause, save map and send it every time a client joins or desyncs?

EDIT: save files are located in %localappdata%\Colossal Order\Cities_Skylines\Saves as .crp files
they do update immediately as you save them, and are not blocked by the process. Meaning you can move them, read and etc while the game is running.

@Techial
Copy link
Author

Techial commented Aug 19, 2019

Would it be able to check if desync has happened by sending back and forth MD5 data from gamesave?
Or a hashed key made by an algorithm that takes into account trees, buildings (put down by player) and so on?

@kaenganxt
Copy link
Member

Closing this as a duplicate of #45, but thanks for the additional ideas!
It is already one of our top priorities.

About detecting a desync: I think that checking the hash of the gamesave won't work because we don't need to sync everything perfectly (some things can happen only on the hosting player).

There are already some checks (like an id reserved twice) to make sure the game state is still valid, but I think we will expand this in the future.

@DominicMaas
Copy link
Member

Thanks for the extra info!

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