[HowTo] Sync Save Files Using DropBox

Started by TanRu, November 07, 2013, 09:20:06 AM

Previous topic - Next topic

TanRu

This is a process I use with KSP to keep save files in sync between multiple Macs and PCs using DropBox. I just got it working this morning so there may be side effects I haven't seen yet, but so far so good.

Basically, you are creating a save directory on dropbox, and replacing the save directories on your other computers with symbolic links that point to the dropbox save directory. Dropbox keeps the files in sync for you, and you can pick up your game from whatever computer is handy. Obviously you don't want to have RimWorld open on multiple computers at the same time when you are using this process, or you will probably get some weird side effects and possibly mess up your saves.

Here's the steps I took. Note that my user name is Mike on both computers, so you will replace Mike with whatever your user name is. Also your dropbox directory may be in a different place than mine so you may need to change that as well.

If you're not comfortable doing command-line operations then you should probably not follow this process. IF YOU ARE GOING TO BE MAD IF YOU LOSE YOUR SAVE GAMES, BACK THEM UP BEFORE TRYING TO FOLLOW THESE STEPS!

The first step was to make a RimWorld directory in my dropbox.

Then I started on the mac. I opened a terminal window and went to my caches directory

cd /Users/Mike/Library/Caches

Next I renamed my existing save directory

mv "unity.Ludeon Studios.RimWorld" "unity.Ludeon Studios.RimWorld.old"

Copying the old save games into dropbox.
cp "unity.Ludeon Studios.RimWorld.old/"* /users/mike/dropbox/rimworld

Creating the symbolic link.

ln -s /users/mike/dropbox/RimWorld "unity.Ludeon Studios.RimWorld"

You should now be able to go into RimWorld and seamlessly load saved games from dropbox.

Moving on to the PC, rename your save game directory (\Users\YourUserName\AppData\LocalLow\Ludeon Studios\RimWorld) there too. Then you need to open a command prompt with admin rights.

IMPORTANT NOTE ABOUT SYMBOLIC LINKS AND WINDOWS 7: If you remove a symbolic link using the DEL command, you will wipe out all the files in the directory the link points to. Use RMDIR to remove a symbolic link. BACK UP YOUR STUFF!

Move to the directory

cd "C:\Users\Mike\AppData\LocalLow\Ludeon Studios"

Create the symbolic link

mklink /d RimWorld "c:\users\mike\dropbox\rimworld"

That's it, you should be good to go! Now you can have one set of save files for your pc and mac. Of course the same process should work for multiple Macs and PCs in whatever combination.

If anyone has any corrections to this, let me know.

Werzaz

#1
I have done the same on my Linux machines (Ubuntu 12.04 LTS and 13.04).
The instructions are similar to those for a Mac. I'm not entirely sure whether they work exactly the same way with other Linux distros, as my main experience is with Ubuntu.
I set this up last night, so I haven't tested it extensively between machines yet. One small problem/nuisance might be that the preferences are in the same folder. I think this led to the resolution being set to a wrong value and rearranging some stuff on my desktop.

Instructions:
Open a terminal and go to the savegame folder.

cd ~/.config/unity3d/Ludeon\ Studios/RimWorld

Rename existing save directory.

mv RimWorld RimWorld_old

Copy the old save games into dropbox (assuming the default Dropbox folder location).
cp -r RimWorld_old ~/Dropbox/RimWorld/

Creating the symbolic link.

ln -s ~/Dropbox/RimWorld RimWorld

If you do not like working in the terminal, you can also make symbolic links in Nautilus (the default Ubuntu file browser) by right clicking a folder/file and choosing "Make Link". The link can be copied and moved like any other file or folder. Note that you need the press Ctrl+H to see the ~/.config/ folder as it is hidden.