|
metadata
Hi everyone,
Our hosting website recently changed its domain registration (from netlify.com to netlify.app).
There is no changes on how the game is running BUT...
unfortunatly all data stored locally are dependent on the website domain, which means that data stored on netlify.com are NOT shared with netlify.app
And it's also not something that depends on me but it's your own browser that enforce that rule.
I will continue investigating if i can find a solution for you to retrieve those data but to be really honest, I dont believe I will be able to find anything.
I am truly sorry that I have been too busy irl lately so that I couldnt anticipate this issue.
This problem should not happen again in the future but just to be safe, I always recommand exporting your saves and not relying on your browser.
|
|
|
metadata
One solution to rescue the savegame is to manipulate the Local Storage-SQLIte-Database.
For Firefox/Windows (others not tested, but should be similar):
* Download and install DB-Browser for SQLite (Portable is OK): https://sqlitebrowser.org/
* close all Firefox instances
* Make a Backup of %AppData%\Roaming\Mozilla\Firefox\Profiles\<someID.default>\webappsstore.sqlite
* Start DB-Browser and open the webappsstore.sqlite-Database
* Open tab Browse Data
* set a scope-Filter: yfilten.07daf5-namlrep-evitsef
* you should see multiple entries some beginning with moc some beginning with ppa
* also you should see an entry with a key beginning with cv2sv
* your goal is to duplicate that line (right click on the line number - duplicate) and then manipulate that entry in a way, that originKey and scope begin with ppa. instead of moc.
* after that write the changes and close the database
* now you should be able to restart Firefox and the game while having your savegame back
|
|
|
metadata
Just letting know that I managed to retrieve the old save with a bit of work on local computer running windows 10 and using firefox as the browser for gaming. It might help someone else get their save back.
First I downloaded and used some sqlite viewer. I could then retrieve the save from local database at C:\Users\<localUser>\AppData\Roaming\Mozilla\Firefox\Profiles\<random>.default\webappsstore.sqlite. For me it was stored under originKey = moc.yfilten...., the savefile was in value field under "data". I just copied that and imported the save. (if originKey doesn't exists, maybe try filtering value field by "rebirth")
Note: the <something> in that file location is different for everyone. It could be similar for chrome, but haven't dig into it (nor will I). I would also suggest to backup any file you intend to open, to not lose saves for other games/sites.
|
|
|
metadata
Thanks, Rakc! I was able to get my saved game back.
This is what I did:
(using Windows 10 and Firefox)
-open File Explorer and find C:\Users\<localUser>\AppData\Roaming\Mozilla\Firefox\Profiles\<random>.default\webappsstore.sqlite
-in a browser, open the site https://inloop.github.io/sqlite-viewer/
-drag and drop the webappsstore.sqlite file
-find the line (mine was on the last page) where the originKey starts with moc.yfilten and the key starts with cv2sv_
-click on the text in the value column and copy it
-open Civilization 2, click on Load an exported save, and paste the text
-on the first line, find and delete "data":"
and all the text before that. at the very end, delete "}
|
|
|
metadata
Oh wow Rakc!
You saved my data. You're my data saving hero.
While it took a bit of work to find the app data folder (search %appdata%) I was able to use your instructions to save my game.
|
|
|
metadata
I really like your game, but I only have a very old export that I could go back to and I would like to avoid that.
Normally I export a save now and then, but I've been a bit lazy,
Is there any way to export the information or find out where the information i stored?
|
|
|
metadata
> *Originally posted by **[MIghtyEpson](/forums/1066161/topics/1906076?page=1#13374653)**:*
> Oh wow Rakc!
> You saved my data. You're my data saving hero.
>
> While it took a bit of work to find the app data folder (search %appdata%) I was able to use your instructions to save my game.
I forgot to mention that appdata is a hidden folder on most computers, that's what was causing you not to find it I think.
|
|
|
metadata
@Rakc Thank god you exist :D
Could recover my safe thanks to you sir!
And for everyone who has trouble finding the AppData folder:
Just type %appdata% in your explorer where the datapath is shown and hit enter (the field where its something like Documents > Private > and so on)
|
|
|
metadata
Welp, I somehow managed to overwrite the file that had my save info in it (an .ldb file in Chrome's local storage) and I don't have backups of that specific folder, so I guess my game is gone. Anybody down to share a save? I was around 12 for each power and 250k progress.
|
|
|
metadata
### **Web Storage Wiki Page:** ###
>Storage of web storage objects is enabled by default in current versions of all supporting web browsers, with browser vendors providing ways for users to natively enable or disable web storage, or clear the web storage "cache".[19] Similar controls over web storage are also available through 3rd party browser extensions. Each browser stores Web storage objects differently:
> **Firefox** saves Web storage objects in a SQLite file called webappsstore.sqlite in the user's profile folder.[20]
>**Google Chrome** records Web storage data in a SQLite file in the user's profile. The subfolder containing this file is "\AppData\Local\Google\Chrome\User Data\Default\Local Storage" on Windows, and "~/Library/Application Support/Google/Chrome/Default/Local Storage" on macOS.[21]
>**Opera's** Web storage is located in either "\AppData\Roaming\Opera\Opera\sessions\autosave.win" or "\AppData\Local\Opera\Opera\pstorage\" depending upon Opera's version.[22]
> **Internet Explorer's** Web storage is "\AppData\LocalLow\Microsoft\Internet Explorer\DOMStorage".
|
|
|
metadata
> *Originally posted by **[Gormuu](/forums/1066161/topics/1906076?page=1#13374773)**:*
> ### **Web Storage Wiki Page:** ###
>
> >Storage of web storage objects is enabled by default in current versions of all supporting web browsers, with browser vendors providing ways for users to natively enable or disable web storage, or clear the web storage "cache".[19] Similar controls over web storage are also available through 3rd party browser extensions. Each browser stores Web storage objects differently:
>
> > **Firefox** saves Web storage objects in a SQLite file called webappsstore.sqlite in the user's profile folder.[20]
>
> >**Google Chrome** records Web storage data in a SQLite file in the user's profile. The subfolder containing this file is "\AppData\Local\Google\Chrome\User Data\Default\Local Storage" on Windows, and "~/Library/Application Support/Google/Chrome/Default/Local Storage" on macOS.[21]
>
> >**Opera's** Web storage is located in either "\AppData\Roaming\Opera\Opera\sessions\autosave.win" or "\AppData\Local\Opera\Opera\pstorage\" depending upon Opera's version.[22]
>
> > **Internet Explorer's** Web storage is "\AppData\LocalLow\Microsoft\Internet Explorer\DOMStorage".
>
>
In the "\AppData\Local\Google\Chrome\User Data\Default\Local Storage" folder (for Google Chrome on Windows), there is only a folder called 'leveldb', which contains a number of .LDB files with seemingly random number beforehand. I've searched all of those and the data isn't there.
Where else could it be?
|
|
|
metadata
After searching through (Chrome as well) i found one, when opened word, says kongregate.com on the top of the page, im sure that is the save data, but i dont know how
> *Originally posted by **[Mathew2113](/forums/1066161/topics/1906076?page=1#13374826)**:*
> > *Originally posted by **[Gormuu](/forums/1066161/topics/1906076?page=1#13374773)**:*
> > ### **Web Storage Wiki Page:** ###
> >
> > >Storage of web storage objects is enabled by default in current versions of all supporting web browsers, with browser vendors providing ways for users to natively enable or disable web storage, or clear the web storage "cache".[19] Similar controls over web storage are also available through 3rd party browser extensions. Each browser stores Web storage objects differently:
> >
> > > **Firefox** saves Web storage objects in a SQLite file called webappsstore.sqlite in the user's profile folder.[20]
> >
> > >**Google Chrome** records Web storage data in a SQLite file in the user's profile. The subfolder containing this file is "\AppData\Local\Google\Chrome\User Data\Default\Local Storage" on Windows, and "~/Library/Application Support/Google/Chrome/Default/Local Storage" on macOS.[21]
> >
> > >**Opera's** Web storage is located in either "\AppData\Roaming\Opera\Opera\sessions\autosave.win" or "\AppData\Local\Opera\Opera\pstorage\" depending upon Opera's version.[22]
> >
> > > **Internet Explorer's** Web storage is "\AppData\LocalLow\Microsoft\Internet Explorer\DOMStorage".
> >
> >
>
> In the "\AppData\Local\Google\Chrome\User Data\Default\Local Storage" folder (for Google Chrome on Windows), there is only a folder called 'leveldb', which contains a number of .LDB files with seemingly random number beforehand. I've searched all of those and the data isn't there.
> Where else could it be?
After searching through the files, and opening it in Word, I found one which says kongregate.com on the top, and a bunch of gibberish after that. What do you type in the "load exported save" in the game? Or do you have to open the file with some special file opener?
|
|
|
metadata
|
|
|
metadata
> *Originally posted by **[to_change_later](/forums/1066161/topics/1906076?page=1#13373766)**:*
> I am truly sorry that I have been too busy irl lately so that I couldnt anticipate this issue.
Netlify let everyone know this was coming back in February...
|
|
|
metadata
I think the "This post requires Administrator review before it can be successfully posted. Thank you for your patience and understanding!" comments are made by to_change_later?
|
|
|
metadata
**Thx Rakc, that was great idea.**
And here are my Win10 Firefox instruction:
1. If you like to click, you can download [sqlitebrowser](https://sqlitebrowser.org/) or any other sqlite viewer and find the right string described later.
1. If you like command line and want to feel like a hacker, download [official sqlite client](https://www.sqlite.org/2020/sqlite-tools-win32-x86-3310100.zip) and unpack.
2. Open Win10 powershell
3. Go to your home folder
cd ~
4. open your browser database with downloaded sqlite viewer (you can drag and drop both files):
C:\Users\<your username>\Downloads\sqlite-tools-win32-x86-3310100\sqlite3.exe C:\Users\<your username>\AppData\Roaming\Mozilla\Firefox\Profiles\<random>.default\webappsstore.sqlite
5. Extract your player data:
.mode line
.once civ2.json
select value from webappsstore2 where scope like 'moc.yfilten%' and key like 'cv2%';
.q
6. Parse json file (now I know why do people need powershell)
(Get-Content -Path .\civ2.json | ConvertFrom-Json | Select data | Format-List | Out-String -Width 1000000 ).Replace("data : ","").Trim() > save.txt
7. Open save.txt file and copy whole content to a game
Of course Windows and powershell are not necessary, but they make life a bit easier.
**Rakc, thanks** again for pointing me to the right direction :)
|
|
|
metadata
In Chrome you have to go to local storage folder:
C:\Users\<your_username>\AppData\Local\Google\Chrome\User Data\Default\Local Storage\leveldb
There you can find one or more *.ldb files. They are text files with some google additions.
You can search inside this folder for "rebirths" string, but make sure you search inside all files.
As usual in win10, powershell is very helpful:
cd "C:\Users\<your_username>\AppData\Local\Google\Chrome\User Data\Default\Local Storage\leveldb"
Select-String -Path *.ldb -Pattern "rebirths" > save.txt
Inside save.txt you will have the name of file where it was found and "data" element, which you need to copy and import into the game.
There's also some weird google characters and LevelDB markers, but fortunately it's not encrypted :)
|
|
|
metadata
> *Originally posted by **[hellistic](/forums/1066161/topics/1906076?page=1#13375217)**:*
> In Chrome you have to go to local storage folder:
> C:\Users\<your_username>\AppData\Local\Google\Chrome\User Data\Default\Local Storage\leveldb
> There you can find one or more *.ldb files. They are text files with some google additions.
> You can search inside this folder for "rebirths" string, but make sure you search inside all files.
> As usual in win10, powershell is very helpful:
>
> cd "C:\Users\<your_username>\AppData\Local\Google\Chrome\User Data\Default\Local Storage\leveldb"
> Select-String -Path *.ldb -Pattern "rebirths" > save.txt
>
> Inside save.txt you will have the name of file where it was found and "data" element, which you need to copy and import into the game.
> There's also some weird google characters and LevelDB markers, but fortunately it's not encrypted :)
hmm i couldn't seem to just paste the data string into the external string loader....
|
|
|
metadata
> hmm i couldn't seem to just paste the data string into the external string loader....
So you have to copy everything past( data")
Everything before that makes the load fail becuase it isn't the right code.
|
|
|
metadata
Thanks hellistic! I knew someone would figure it out for Chrome!
I used powershell to get the savefile, then opened it in Word to delete everything outside of the quotation marks after the "data" keyword. I also had to search and replace all the paragraph marks. But it worked!
|