Howto: Synch your savegames and stash between multiple PCs

Forum for discussing the Torchlight single player game

Moderators: Runic Games, Perfect World

Howto: Synch your savegames and stash between multiple PCs

Postby Abnovitas » Wed Oct 28, 2009 4:42 am

So how about having all your characters and/or your shared stash on all your PCs?
I guess this would be quite useful to eveyone who wants to play their characters on their notebooks or even while having a break at the office without having to worry about copying one's profile to a thumbdrive everytime.

What do I need?
1) A (free) Dropbox account.
2) Some possibility to create hardlinks on Windows. I recommend Link Shell Extension (free too).

How does it work?

Dropbox is a free service that enables you to synchronize a specific folder on your PC with Dropbox's online storage (1 GByte for free) in near realtime. That means that any file that is created or modified in this folder will get uploaded to your account's storage automatically. Seems to be perfect for our purpose.
But wait, unfortunately Dropbox doesn't support multiple folders or renaming the default one ("My Dropbox"). So we have to improvise a bit.
Gladly Windows' filesystem NTFS supports so-called "hardlinks". This should sound familiar to everyone who worked a bit with Linux or Unix systems.
But although the filesystem supports this feature natively for years, Microsoft seemed to forget to provide any tool to create those links. So we have to use a 3rd party utility to create them. (As Entropy pointed out below, there in fact is a built-in command. Feel free to use that if you don't want to install an additional utility)
For this Howto I assume you're using the tool I mentioned above.


Allright, enough of this techie-stuff. What do I have to do?
1) Download Dropbox from here, install it and create your free account. While installing you should keep the default location of Dropbox' folder. Don't set it to Torchlight's profile directory. This would mess up the profile with some default folders.

2) Download and install Link Shell Extension from here. This will add the option to create links into the Explorer's context menu.

3) Move (don't copy) the following two folders from your Torchlight profile to your Dropbox folder: "save" and "mods" *
You can find the profile by entering this to your "Run" prompt: %appdata%\runic games\torchlight\
Dropbox's default location is the folder "My Dropbox" inside your "Documents" directory. ("My Documents" for XP and 2000).
(while you're at it: backup your save folder. It's never wrong to keep a copy before moving stuff around)

4) After you moved the folders select them in your Dropbox directory, right-click them and choose "Pick link source" from the context-menu.
Now get back to Torchlight's profile folder (where "save" and "mods" originally were), right-click empty space and select "Drop as ... Junction".
(Alternatively you can drag those folders with your right mousebutton to the destination folder and select "Drop here ... Junction")

5) That was all. You will notice that any change inside one folder affects the other. A hardlink (or Juntion in this case) is some kind of "wormhole" on your harddisk. So both "folders" are in fact the same. It just has two doors ;)
Now go ahead and do exactly this (apart from point 3, see below**) on your other PCs. Dropbox will then upload any change on one PC to the server and every other PC will download it automatically. This way you don't have to worry about anything. Just play, save on one PC, get to another PC and continue playing there :)


Have fun. I hope you find this useful :)

FAQ
Q: Do I need to be online to access my Dropbox / profile / characters?
A: No, Dropbox uploads a copy of the folder's content. If you're changing the contents of the folder while being offline they will get synchronized as soon as you're connected to the Internet again.

Q: What happens if both profiles are being changed before they get synchronized?
A: Dropbox will detect this conflict and creates a renamed copy of the file in the same folder.

Q: What happens if I delete a file inside the linked folder/Junction?
A: Everything that happens inside a linked folder happens in the other one as well.
If you think of a folder being a room, a link is just another door into this room.


Q: Why should I include the folder "mods" as well?
A: This is only meant as a precaution to make sure that you won't run into issues as soon as you have some mods installed, which your characters are using.
Keep in mind though, that you only have 1 GByte of free storage and might reach the limit when installing some giant full-conversion mod
in the future. But considering the fact, that the whole unmodified game itself fits into your Dropbox, I don't see that as an immediate issue.


Q: Are there any other cool features?
A: A nice side-effect by using Dropbox is, that you can login to your Dropbox via their webinterface and undelete or restore old revisions of your files.
This can be used for good or evil, if you know what I mean ;)




*Don't move the whole torchlight folder if you don't want to use identical settings on all your PCs or change them every time you played on another PC.

**In case you already have another profile on your other PCs, don't move the original profile folders to Dropbox. This would overwrite your already set up profile. You have to merge it instead. Each character has it's own numbered savegame. The first one 0.svt, the second 1.svt and so on. Rename your additional character files according to this and move the files to your Dropbox\save directory. Keep in mind that there is only one file for your shared stash! If there are items you want to merge with another stash, pick them up with one of your characters before(!) you move the folders and put them back in after your profiles are set up for synchronization.
Last edited by Abnovitas on Tue Nov 10, 2009 2:28 am, edited 15 times in total.
Characters:
Xyaasu / Destroyer (37 Retired) / Berserker / Normal
Lauryna / Vanquisher (22) / Marksman / Hard
Ionisys / Alchemist (6) / Arcane / Hard
Castor / Destroyer (22) / Spectral / Very Hard
User avatar
Abnovitas
 
Posts: 86
Joined: Mon Oct 19, 2009 9:12 am
Location: Germany

Re: Howto: Synch your savegames and stash between multiple PCs

Postby Cinders » Wed Oct 28, 2009 5:36 am

HEY THANKS.
Cinders
 
Posts: 13
Joined: Wed Oct 28, 2009 4:01 am

Re: Howto: Synch your savegames and stash between multiple PCs

Postby Entropy » Wed Oct 28, 2009 5:43 am

mklink /j "old location" "new location"

I already made a post about it before but never bothered with a guide.
Nice work (Actually read through it now.)
Last edited by Entropy on Wed Oct 28, 2009 5:51 am, edited 1 time in total.
User avatar
Entropy
 
Posts: 71
Joined: Tue Oct 27, 2009 3:51 pm

Re: Howto: Synch your savegames and stash between multiple PCs

Postby Abnovitas » Wed Oct 28, 2009 5:46 am

Entropy wrote:mklink /j "old location" "new location"

I already made a post about it before but never botehred with a guide.
Not bad.


Oh, now as you said it, I can remember reading about the command again.
I'll edit the part about a built-in command but will keep the Explorer extension to keep it userfriendly :)
Thanks :)
Characters:
Xyaasu / Destroyer (37 Retired) / Berserker / Normal
Lauryna / Vanquisher (22) / Marksman / Hard
Ionisys / Alchemist (6) / Arcane / Hard
Castor / Destroyer (22) / Spectral / Very Hard
User avatar
Abnovitas
 
Posts: 86
Joined: Mon Oct 19, 2009 9:12 am
Location: Germany

Re: Howto: Synch your savegames and stash between multiple PCs

Postby Entropy » Wed Oct 28, 2009 5:54 am

Haha if you want user friendly, make a batch file to do it all for them :lol:
If theres any possibility at all some one can do something wrong, some one will mess it up spectacularly.
User avatar
Entropy
 
Posts: 71
Joined: Tue Oct 27, 2009 3:51 pm

Re: Howto: Synch your savegames and stash between multiple PCs

Postby Dienekes00 » Thu Oct 29, 2009 10:52 am

Excellent, thank you. I'll definitely be using this to allow my PC and lappy to work together.
Dienekes00
 
Posts: 5
Joined: Thu Oct 29, 2009 10:50 am

Re: Howto: Synch your savegames and stash between multiple PCs

Postby carlosjuero » Thu Oct 29, 2009 11:01 am

Microsoft also has the junction file utility (by SysInternals) up on their downloads site. It basically functions like mklink /j - but with no need for the command switches.
carlosjuero
 
Posts: 290
Joined: Mon Oct 05, 2009 7:17 pm

Re: Howto: Synch your savegames and stash between multiple PCs

Postby Dienekes00 » Thu Oct 29, 2009 11:34 am

Quick question.

Would this work the same with, say, my Firefox folders? Would it transfer new bookmarks and saved searches between computers?
Dienekes00
 
Posts: 5
Joined: Thu Oct 29, 2009 10:50 am

Re: Howto: Synch your savegames and stash between multiple PCs

Postby carlosjuero » Thu Oct 29, 2009 11:36 am

Dienekes00 wrote:Quick question.

Would this work the same with, say, my Firefox folders? Would it transfer new bookmarks and saved searches between computers?


If you did the trick w/ your FF profile folder then yes. The thing is that your cache, cookies, and everything would transfer too. I think you can make hard links for files too with mklink - a google search should reveal that, if so then you just modify the instructions to only link your bookmarks, searches, whatever.

Another option is to use a FireFox extension called FEBE - it has built in Box.net backup/restore. Not quite as seamless as the DropBox thing, but its an extension so no messing around with hard links/etc.
carlosjuero
 
Posts: 290
Joined: Mon Oct 05, 2009 7:17 pm

Re: Howto: Synch your savegames and stash between multiple PCs

Postby Dienekes00 » Thu Oct 29, 2009 11:38 am

Awesome, thanks!
Dienekes00
 
Posts: 5
Joined: Thu Oct 29, 2009 10:50 am

Re: Howto: Synch your savegames and stash between multiple PCs

Postby Abnovitas » Thu Oct 29, 2009 12:16 pm

For Firefox you also could one of these addons:
Mozilla's Weave or Xmarks :)
Characters:
Xyaasu / Destroyer (37 Retired) / Berserker / Normal
Lauryna / Vanquisher (22) / Marksman / Hard
Ionisys / Alchemist (6) / Arcane / Hard
Castor / Destroyer (22) / Spectral / Very Hard
User avatar
Abnovitas
 
Posts: 86
Joined: Mon Oct 19, 2009 9:12 am
Location: Germany

Re: Howto: Synch your savegames and stash between multiple PCs

Postby Dienekes00 » Thu Oct 29, 2009 12:36 pm

You guys are heroes.
Dienekes00
 
Posts: 5
Joined: Thu Oct 29, 2009 10:50 am

Re: Howto: Synch your savegames and stash between multiple PCs

Postby aerobinson » Thu Oct 29, 2009 1:35 pm

This is gold. Pure gold.
aerobinson
 
Posts: 5
Joined: Mon Sep 07, 2009 1:13 pm

Re: Howto: Synch your savegames and stash between multiple PCs

Postby CustodianV131 » Thu Oct 29, 2009 1:49 pm

Very clever indeed!

Thanks for writing this down!

*tagged*
Gamers are young at heart and creative thinkers. Shall we play a game?
User avatar
CustodianV131
 
Posts: 66
Joined: Mon Jun 29, 2009 2:07 am

Re: Howto: Synch your savegames and stash between multiple PCs

Postby Mabans » Tue Nov 10, 2009 10:35 am

AWESOME! Glad I stuck with drop box.
User avatar
Mabans
 
Posts: 13
Joined: Sun Nov 01, 2009 8:16 pm

Re: Howto: Synch your savegames and stash between multiple PCs

Postby busfahrer » Wed Nov 11, 2009 3:29 am

Protip:

If you have access to an SVN server, use that in conjuction with the software TortoiseSVN which lets you update/commit via the windows file explorer context menu. Also, add settings.txt to the ignore list so you can keep your settings different on your netbook as well as on your desktop PC.

Works like a charm :-)
busfahrer
 
Posts: 2
Joined: Sun Nov 08, 2009 2:10 pm

Re: Howto: Synch your savegames and stash between multiple PCs

Postby busfahrer » Fri Nov 13, 2009 7:56 am

shameless bump :mrgreen:
busfahrer
 
Posts: 2
Joined: Sun Nov 08, 2009 2:10 pm

Re: Howto: Synch your savegames and stash between multiple PCs

Postby Mabans » Sun Nov 15, 2009 7:11 pm

busfahrer wrote:Protip:

If you have access to an SVN server, use that in conjuction with the software TortoiseSVN which lets you update/commit via the windows file explorer context menu. Also, add settings.txt to the ignore list so you can keep your settings different on your netbook as well as on your desktop PC.

Works like a charm :-)


Any information how to make this work using what you suggested?
User avatar
Mabans
 
Posts: 13
Joined: Sun Nov 01, 2009 8:16 pm

Re: Howto: Synch your savegames and stash between multiple PCs

Postby karlthepagan » Mon Nov 16, 2009 1:28 pm

I've been experiencing bugs with dropbox on Windows Vista. Either when I connect to a VPN (and then disconnect) or after I sleep (and unsleep) my laptop my files are not updated until I restart Dropbox. Conflicted files make homer go something something...

I'm back to using a USB stick and a local SVN repos. Here is how you can setup and connect to a local SVN repository using TortoiseSVN:

You should read this completely twice and make sure you understand it before following these directions. If you have access to your own SVN server then make the apporpriate URL substitutions.

1) Backup your torchlight folder ("Application Data\runic games\torchlight" ... it's possible to make mistakes that leave an ugly mess here, and it makes the svn:ignore stage easier)
2) Download the latest TortoiseSVN from http://tortoisesvn.tigris.org/
3) Create an empty folder (with a name like "games repository") on your USB drive (in this example E:)
4) Right-click inside that "E:\games repository" folder and select "TortoiseSVN -> Create repository here"
5) You will see the following files and folders created: conf, db, hooks, locks, format, README.txt
6) In your torchlight folder (or the junction directory you made) delete all files you don't want to synch (you made a backup right? I suggest all .dat .ADM .bak .tmp .ini .log files, .dropbox, and settings.txt)
7) On that folder which you just deleted the files from right click and select "TortoiseSVN -> Import..."
8) "URL of repository:" will be "file:///E:/games repository"
9) Click on the "..." button next to your repository URL (if you see your Computer's folders here something went wrong, try again)
10) IF you have used SVN before setup the standard directory structure to your liking
11) Right click on your repository root ("file:///E:/games repository" ... or the url of your choice if you're experienced) and select "Create folder..."
12) Enter "torchlight" press enter then click "Ok" (no need for a log message), then double-click on the directory after it's been made
13) Exit the repository browser and "URL of repository:" will now indicate "file:///E:/games repository/torchlight"
14) Press "Ok" on the Import dialog, you will see a summary of your import listing all the files you committed
15) Delete your torchlight directory (backups right?)
16) In the now empty "runic games" folder right-click and select "SVN Checkout..."
17) "URL of repository" should be "file:///E:/games repository/torchlight"
18) Checkout directory should indicate the absolute path of your torchlight folder ("...Application Data\runic games\torchlight"), if so then press "Ok"
19) Now you can restore all the settings and temp files from your backup (or just play the game and see if they get restored)
20) Go back to your torchlight directory a bunch of files may now have question mark icons on them (depends on the OS, WinXP sometimes lags a bit here)
21) right-click on an ADM file you had previously deleted (in order to not sync them) and select "TortoiseSVN -> Add to ignore list -> *.ADM"
22) repeat this process on all other extensions you don't want to synch (.dat .ADM .bak .tmp .ini .log) and be sure to descend into your save and mods folders
23) repeat this process on all individual files you don't want to synch (like "TortoiseSVN -> Add to ignore list -> settings.txt" for settings.txt)
24) you're done, from this point on you can right-click on your "torchlight" folder and select "SVN commit..." to update all save changes
25) go to work / computer lab / bro's house and repeat steps 1, 15, 16, 17, 18, 19 ONLY to checkout a new copy
26) go home and select "SVN update..." to retrieve the changes you made
27) go home because you just wrote a use case for fun

Pros:
* may be considered a more reliable technology (about as reliable as your memory?)
* also has backups of your files (which are easier to roll-back for all the enchant scummers)
Cons:
* your SVN repos will eventually get bloated
* may encourage scumming
* more complex to setup
* you have to remember to synch it
* if you also use dropbox you may want to exclude all of your ".svn" directories to save dropbox space and bandwidth
* directory junction trick complicates this, maybe I'll write up a reliable procedure later...
Last edited by karlthepagan on Tue Nov 17, 2009 8:27 pm, edited 1 time in total.
karlthepagan
 
Posts: 36
Joined: Fri Oct 30, 2009 4:40 pm

Re: Howto: Synch your savegames and stash between multiple PCs

Postby entranced » Tue Nov 17, 2009 8:29 am

karlthepagan wrote:6) In your torchlight folder (or the junction directory you made) delete all files you don't want to synch (you made a backup right? I suggest all .dat .ADM .bak .tmp .ini .log files, sharedstashh.bin, .dropbox, and settings.txt)

sharedstashh.bin is the Hardcore stash, and should be synced, no?
VHHC:
Zookeeper VI - Level:1 - Alchemist (summoner)
Zookeeper I-V - Level:4/19/6/43/34 - Dead - Alchemist (summoner)
entranced
 
Posts: 175
Joined: Sun Nov 15, 2009 8:39 am

Next

Return to Torchlight Single Player Discussion

Who is online

Users browsing this forum: No registered users and 6 guests