Problem description:
I'm working on a survival-horror dungeon crawler and I'm wanting to implement a save code/system that spans across all servers, and games.
Essentially, when the player saves their game they can access their characters via any server/game they hop into.
How would one do this?
Jun 27 2013, 4:40 pm
|
|
Look in the DM Guide, Chapter 12, section 6. That'll at least give you a starting point. I read about it there, but haven't experimented with it myself.
|
Like Khye said you can use the DM guide section 6 or you can use section 5. See this would be better if you don't plan on having multiple dedicated servers and you just want players to host the game. You could have one dedicated server and then a multitude of private servers.
There is an example on section 5 on how to go about it too. |
Here's one way to do such a thing:
http://www.byond.com/developer/NationalGuardsmen/ ClientSideSaving A more advanced way would be to store it in a database, but that seems like a lot of effort for little gain. |
Few ways you can do this, client side as the above posters mentioned.
MySQL database Export and Import the file from a webhost. Client side has the advantages of always being on the players pc, disadvantages could be, a player figures out the hash (assuming you hash it which you should!) and edits the save file making themselves lvl 999999, the player reformats the pc .. losing everything (not a good look for you). MySQL and the Export / Import have the advantages of allowing anyone to login from anywhere and using the save file that corresponds to the key they use, disadvantages are if they go down, no one can load the save file. I suppose you could do a few things using both, prefer client side files, if no client side check DB/host. |