On-Demand “Dedicated server” without dedicated server using a Version Control System ?

How to build a large and tall house in Valheim

So I'm playing Valheim with some friends, and it's a pain because the world is hosted on my computer, so basically in order to progress in our world, I have to be playing.

I've seen some posts about transfering the world over to friends, but that just duplicates the world without synchronicity. Obviously the solution here would be to run a dedicated server.

However this world transfer solution got me thinking. Would it be possible to initialize a SVN repo on all of the friends that are playing in the shared world.

If one of them decides to start the world he would

    svn pull
    svn lock

All the friends join the world. When the gaming session concludes, one would do

    svn push --force (I push force here to minimize size of the repo)
    svn unlock

This keeps the world synchronized in the online repository, so if another player decides to start the server he could pull in the updated world.

This would obviously be part of an application I can help developing.

P.S. I only have experience with git, I chose svn for this example because it is centralized (no stray unsynced copies) and it has a lock function which prevents accidental overwrites.

P.P.S. This can also be implemented using an FTP server obviously.

P.P.P.S This can be further extended to provide "save-games" etc

Source: https://www.reddit.com/r/valheim/comments/lm292z/ondemand_dedicated_server_without_dedicated/

leave a comment

Your email address will not be published. Required fields are marked *