Gobluebro / Elden-Ring-Checklist

A checklist for you to complete as you go through Elden Ring.
https://gobluebro.github.io/Elden-Ring-Checklist/
MIT License
72 stars 25 forks source link

Question: How to sync across devices #40

Closed tienxu04 closed 1 year ago

tienxu04 commented 1 year ago

Hi, i came across your checklist and i cant thank you enough! this is a godsend. however, im mostly using a PC at work, and would like to ask if there is a way so i can sync the checked items when at work with those made when im home (on a Mac)

i understand it runs on local storage, but still want to ask. thank you

Gobluebro commented 1 year ago

Currently there is no official way to sync these, since there is no account and your settings are not stored in a database.

Gobluebro commented 1 year ago

If you are comfortable with using developer tools and using the console you could get these settings copied to your machine through setting the localstorage yourself.

I took some time to try to get this to work myself. This is no way a working perfect solution that I will maintain by any means but merely proof you can technically copy the settings manually if you so wish.

On the computer you want to copy settings from:

JSON.stringify(Object.entries(localStorage));

Copy this string and save it however you want to get it to your other computer. It's a long string so I'd suggest something like a txt file.

On the computer you want to copy your settings over to:

const backFromJSON = JSON.parse(**YOUR COPIED JSON STRING HERE**)

for(let i = 0; i < backFromJSON.length; i++){
    localStorage.setItem(backFromJSON[i][0], backFromJSON[i][1])
}
Gobluebro commented 1 year ago

You could probably do something like stringify on localstorage object itself and then loop through Object.entries(theStringifiedLocalStorageObject) and plug them into localstorage that way as well.

Up to you.

Also I wish I could play elden ring at work 😂

tienxu04 commented 1 year ago

thank you so much for your kind and dedicate reply. No, im not able to play at work either. i just make use of some free time there researching the game :)