Topic: Anti-Idle: The Game /
[Guide] Savefile backup automation via Dropbox (on *NIX)
This guide is going to explain how can Dropbox be used to store your A:TG saves to , additionally letting you !
As not many people might like using Dropbox for this, I will soon be posting a guide for local backups. Additionally, I am Russian, so sorry for my bad English. Please reply about any grammar mistakes you may find so I can fix them. Thanks in advance.
First of all, I want you pay attention to this:
This guide will work on Windows. Will work on 7, will work on XP, will work on 8, will work on 98. If you are not using any *NIX (Mac OS X, Linux are most popular among *NIX) OS, this thread is not for you. Close this, go read something more useful.
You’ve managed to get here so far? Then I want to congratulate you, a user of an OS with most powerful base – a *NIX base. You might be using (Mac) OS X, Linux, *BSD or even Haiku: it doesn’t matter. The only thing that matters is that your OS allows you to easily back up your A:TG savefile using symbolic links with just two tools – a popular online datakeeper Dropbox and a built-in BSD/GNU ln.
Got scared of some terms? Not an advanced user? Don’t worry, I will try to explain how does the stuff work so everyone can understand. But let’s go step-by-step.
If you already have Dropbox installed and linked to your account, skip to Step 2.
First of all, you will need to download Dropbox from their site and install it, then link it to your account or register if you don’t have one. Once you have everything ready and set up, proceed to step 2.
If you are an advanced user and already know what ~ is, proceed to Step 3.
Your OS keeps different data at different places. It’s always easier to figure out which data is located where if it’s being sorted. ~ is a special path in *NIX that always represents your home folder. For example, ~ on OS X points at /Users/<yourusername>, on Linux – /home/<yourusername>, sometimes on *BSD – /usr/home/<yourusername>. The point is that ~ is your home folder, you should keep that in mind while reading this guide. Really. Also it is the same as $HOME.
Ever used Terminal? Know how to at least execute a command? Skip to Step 4.
A Terminal is the most powerful tool of *NIX. It’s a place where you can enter commands which can do unbelievable things. Ever seen these hackers in films which type many stuff on keyboard and get a lot of text responses on the screen? Today you’ll be one. No, really. And you’ll see that it isn’t that hard at all. To get a slight look, open the Terminal. In OS X, you can either open Launchpad (if you have OS X below 10.7, open Finder and go to Macintosh HD/Applications instead), go to Utilities and open Terminal from here. On Ubuntu, you can usually find Terminal in Applications menu which is located at the top left of your screen (in Unity, it looks like an Ubuntu logo). After you open it, you will be greeted with something like this:
Last login: Sun Aug 25 22:07:12 on ttys000
This is where we’re going to enter most of our commands at. It would be a good idea to keep this window open until were are done.
Dropbox usually puts its folder in your ~. Thus if you went with default settings, no matter what OS you are on, your Dropbox folder is always ~/Dropbox. If you have manually changed the path Dropbox folder is located at, you should always keep your path in mind and use it instead of ~/Dropbox, as this guide will be assuming your Dropbox folder is ~/Dropbox.
ATTENTION: all commands, paths, everything are . Don’t try to type everything in lowercase or uppercase, this won’t work. Type it with the expected case. Do not close Terminal until you finish off with this chapter. Seriously. You will lose some variables and render all the commands you’ve entered being useless, thus making you start from the beginning. (For advanced users: this is caused by export.)
First off, you should determine where your chat.kongregate.com folder is located. In , if you are using any browser other than Chrome, it is located at ~/Library/Preferences/Macromedia/Flash Player/#SharedObjects/<random>/. Paste in Terminal:
export PATHOFFLASH="$HOME/Library/Preferences/Macromedia/Flash Player/#SharedObjects"
If you are using ,
it is located at I highly recommend you to change your decision and use any other browser. Playing A:TG in Chrome on OS X is a pain, both by resources being consumed and problems with input. However, if you still want to use Chrome, you will have to execute the command above with the path to Chrome’s #SharedObjects. Find it yourself. I will give you just three hints: Application Support, Google, Pepper Data.
If you are using , it’s most likely located at ~/.macromedia/Flash_Player/#SharedObjects. Paste in Terminal:
If the pathes are not right, you will have to paste the command with the right pathes.
Now proceeding to the next step (for any OS): it’s time to determine which random letters are used in the folder’ name that contains our chat.kongregate.com. Paste in Terminal:
export FLASHLETTERS=`ls "$PATHOFFLASH" | head -n1`
To confirm that you’ve done everything right, type:
If it outputs 8 letters/digits, like 9CLAPVXE, then you’ve done everything right so far! If not, then try again, if you fail again – pastebin whole Terminal log and reply in a topic with a link to your paste so I can help.
Now we need to symlink the chat.kongregate.com folder into our Dropbox. But read this first: you must run A:TG and play on any savefile at least once. This will make sure that chat.kongregate.com exists on disk. And remember this: not only your A:TG saves will be backed up, but all the saves from all Kong games you play. If you want to keep only A:TG save, try figuring out how to do it yourself by reading this to the end and changing something :P
So, long story short, to symlink your chat.kongregate.com folder into Dropbox, paste this:
ln -sv $PATHOFFLASH/$FLASHLETTERS/chat.kongregate.com ~/Dropbox
If output shows two paths, then you’ve done everything right. From now on all of your saves are being backed up to Dropbox, and if something gets broken or removed, you can always revert to any old version using the site! However, remember that for free accounts Dropbox only keeps versions for the last 30 days, thus you won’t be able to revert to any version older than 30 days old if you didn’t pay. If there’s an error, pastebin the log of Terminal and reply here with the link to your paste so I can help.
You can close Terminal now. Phew!
If you use several computers you play A:TG on, you might find this useful to keep such symlinks on each computer with Dropbox running – it will keep all your saves up-to-date on each computer that is running Dropbox and has such a symlink! It needs some playing with commands though… I leave that for you to figure and try, and don’t be afraid of deleting your saves – you can always restore them using dropbox.com ;)
Hope this was any useful, *NIX users! Good luck, and may your saves never be removed due to any reason other than your own will!