In A Dark Room is it possible to start the game on one PC/browser and then continue it on another? Are there perhaps files I can copy from one machine to another to continue elsewhere?
Edit I'm using Firefox as my browser
Arqade is a question and answer site for passionate videogamers on all platforms. It only takes a minute to sign up.
Sign up to join this communityIn A Dark Room is it possible to start the game on one PC/browser and then continue it on another? Are there perhaps files I can copy from one machine to another to continue elsewhere?
Edit I'm using Firefox as my browser
As of October 2013, A Dark Room officially supports importing and exporting saved games. There is a save
link in the bottom right corner that will let you copy or paste your current game state as a base64-encoded string:
No more need to mess with the console! Just copy and paste away!
A Dark Room uses localStorage
for saving, so these steps will work in all browsers:
To save, type
JSON.stringify(localStorage);
in the console and copy the output. (It will be VERY long. Important: Remember not to copy the quotation marks at the beginning and end!) This is now your save string.
To load a saved game, first type
var storage =
and then paste your save string. Then, paste this into the console:
for (var x in storage) { localStorage.setItem(x, storage[x]); }
storage = JSON.parse(storageStringWithQuotationMarks)
, which somehow puts parentheses around the whole dict, i.e. something like ({gameState:"{\"version\":
etc. and your for
loop yields an undefined
for (var x in storage) { localStorage.setItem(x, storage[x]); }
Jul 4, 2013 at 6:21
loadGame
function to load the game, which boils down to State = JSON.parse(gameState)
(where gameState
was obtained via localStorage.gameState
) and Engine.upgradeState();
Ok i have looked up how to copy your profile on firefox. Make sure you can see hidden files and folders. Then in the appdata in the users map something like (c:\users\'yourname'\AppData\Roaming\Mozilla\firefox) you find a profiles map. You can try to copy this when you finished with the game and paste it on another PC to continue. I am not sure this works but the game is most probably storing stuff through php sessions which end up in the cookies file.
You could also go deeper into the map structure and just copy the cookies file. I found cookies.sqlite. There are also extensions to import and export cookies like this one: https://addons.mozilla.org/nl/firefox/addon/cookies-exportimport/.