PokemonGo-DesktopMap icon indicating copy to clipboard operation
PokemonGo-DesktopMap copied to clipboard

Updated the map and full stats information is wiped

Open blahblah3141 opened this issue 10 years ago • 29 comments

This information was very useful to me - and not sure if this is a bug or intentional. In any case, can I get that information back through some left over files?

blahblah3141 avatar Sep 02 '16 12:09 blahblah3141

Same here the old Database was wiped? Can it be restored?

damnitimlost avatar Sep 02 '16 12:09 damnitimlost

I think it might be because the database schema has changed: spawn points now contain extra information about when pokemon spawn at them.

zexpe avatar Sep 02 '16 13:09 zexpe

Spawnpoint data was present in last update as well (0.3.3). The multi-account update, which has seemingly not changed spawnpoint data, is the one causing the issues. In any case, I just need to know if there is an old database file saved on my computer which I can retrieve to find my lost stats data.

blahblah3141 avatar Sep 02 '16 13:09 blahblah3141

You can find the old DB file in your /Users/NAME/AppData/Roaming/pokemon-go-map folder. There are now 2 db files. pogom.db which is the old one and pogomon-0.3.4.db

nakratz avatar Sep 02 '16 14:09 nakratz

all you need to do is go to C:\Users\username\AppData\Roaming\pokemon-go-map and you will find old database by name pogom.db and new as pogom-0.3.4.bd. merge them and problem is solved.

gauravyadav26 avatar Sep 02 '16 14:09 gauravyadav26

Any idea where to find this on Mac?

romanticheart avatar Sep 02 '16 14:09 romanticheart

~/Library/Application Support/pokemon-go-map

zexpe avatar Sep 02 '16 14:09 zexpe

Thanks! Not seeing it there unfortunately. Nothing about the app anywhere in Application Support.

romanticheart avatar Sep 02 '16 15:09 romanticheart

The one in your home directory Library (not the root directory one)?

zexpe avatar Sep 02 '16 15:09 zexpe

That was the problem! Found it, thank you! Is there an easy way to merge them or shall I go on a google search to learn new things?

romanticheart avatar Sep 02 '16 15:09 romanticheart

sqlite3 pogom.db .dump | sqlite3 pogom-new.db sqlite3 pogom-0.3.4.db .dump | sqlite3 pogom-new.db cp pogom-new.db pogom-0.3.4.db

Worked for me. You may want to make a backup of pogom.db & pogom-0.3.4.db first just in case.

jwever avatar Sep 02 '16 15:09 jwever

I'm mostly a newb with this stuff, just good at following directions, so please excuse my ignorance. Are those Terminal inputs?

Also, looking at the commit for this, it sounds like this is something that will need to be done each time the program is updated. I don't really understand the logic behind changing the .db source for each version.

romanticheart avatar Sep 02 '16 15:09 romanticheart

Worked for me too, but some of the errors explain the reason for the new database, the schema has changed for gyms at least:

`Error: near line 23: table gym has 8 columns but 9 values were supplied

Error: near line 28: table "pokemon" already exists

Error: near line 128: table "pokestop" already exists

Error: near line 129: UNIQUE constraint failed: pokestop.pokestop_id `

Not sure how important this is and what if anything is lost by keeping the old schema. It's possibly safer to construct the new database from the 0.3.4 file first.

zexpe avatar Sep 02 '16 15:09 zexpe

Starting to think I should just wait for the next update. There seems to be a lot of issues with this one. I'm also finding that the scan does not restart after it finishes one search of the area (PTC account, not Google). I have to manually restart it. Assuming a green spawn point means there is a spawned Pokemon there, but I have multiple on my map showing no Pokemon.

romanticheart avatar Sep 02 '16 15:09 romanticheart

Green means a Pokemon has spawned there but it hasn't been scanned yet: there's about a 10s delay between each scan location, so if you are scanning a large radius then it will take a long time before it has scanned a particular spawn point to see what Pokemon has spawned there.

zexpe avatar Sep 02 '16 15:09 zexpe

Only a radius of 3. I moved the marker right on top of one of the green spawn points, have scanned locations on so I see that it scanned that spot, but no Pokemon.

romanticheart avatar Sep 02 '16 16:09 romanticheart

screen shot 2016-09-02 at 12 02 53 pm screen shot 2016-09-02 at 12 02 42 pm

romanticheart avatar Sep 02 '16 16:09 romanticheart

A radius of 3 means 15 scan locations and so it'll take about 2-3 minutes to cover them all. Once they are covered they remain green for about 15 minutes. So they will always be green with a scan radius of 3, but you still may have to wait up to 3 minutes for the spawned Pokemon to be scanned.

zexpe avatar Sep 02 '16 16:09 zexpe

It did stop scanning on me once, but logging out and logging back into again worked.

zexpe avatar Sep 02 '16 16:09 zexpe

Nah I understand that. What I'm saying is that when I saw the point go green, I manually moved the location pin directly on top of it, which began a new scan at that point. I watched the green scanned location circle pop up right there, no Pokemon.

romanticheart avatar Sep 02 '16 16:09 romanticheart