Board index FlightGear Support Flying

How to empty the location cache?  Topic is solved

Controlling your aircraft, using the autopilot etc.

How to empty the location cache?

Postby msalama » Tue Apr 07, 2020 5:13 am

Hiya guys -

So how do I empty the location / starting position / airport cache? There's oodles of unneeded crap there I don't want to spend time wading through every time I go flying. Do I need to run an SQL script or something or are they stored in a file somewhere?
msalama
 
Posts: 36
Joined: Tue Jun 18, 2019 4:44 am

Re: How to empty the location cache?

Postby wkitty42 » Tue Apr 07, 2020 2:28 pm

can you not right click on them and remove them? i thought that was a thing? maybe not... i cannot fire up my FG to check ATM...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 6317
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: How to empty the location cache?

Postby wlbragg » Tue Apr 07, 2020 3:17 pm

Sounds like a feature request for the QT-launcher!
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
Intel i5 3570K AMDRX480
User avatar
wlbragg
 
Posts: 5441
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/AMDRX480

Re: How to empty the location cache?

Postby msalama » Tue Apr 07, 2020 3:23 pm

can you not right click on them and remove them?


Seemingly not.

Sounds like a feature request for the QT-launcher!


Yeah :D So there's currently no way of removing them?
msalama
 
Posts: 36
Joined: Tue Jun 18, 2019 4:44 am

Re: How to empty the location cache?

Postby wlbragg » Tue Apr 07, 2020 4:00 pm

The only one I know of is rather harsh. It would be deleting your FGFS cache but it wipes out everything. if I'm recalling correctly I think there is a file that the QT-launcher creates but it's got a lot of data in and it may be hard to find where that particular string is in that file that you need to delete and it may corrupt the file. If you back up the file, in might be worth trying.
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
Intel i5 3570K AMDRX480
User avatar
wlbragg
 
Posts: 5441
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/AMDRX480

Re: How to empty the location cache?

Postby msalama » Tue Apr 07, 2020 4:10 pm

OK! Is it enough to delete just the navdata_2018_3 cache, or something else as well? Or something else altogether for that matter? I tried to edit an INI file that had some entries about visited locations or some such, but that didn't help.
msalama
 
Posts: 36
Joined: Tue Jun 18, 2019 4:44 am

Re: How to empty the location cache?

Postby wlbragg » Tue Apr 07, 2020 4:44 pm

No, this is a specific QT-launcher created file I believe. But I don't remember exactly where it resides. Seems like it was in a slightly different location? You might ask James on the dev list. And again, I think this would be a good feature request for the QT-launcher and doesn't seem to me that it should be that difficult to implement.
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
Intel i5 3570K AMDRX480
User avatar
wlbragg
 
Posts: 5441
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/AMDRX480

Re: How to empty the location cache?  

Postby wkitty42 » Tue Apr 07, 2020 7:00 pm

wlbragg wrote in Tue Apr 07, 2020 4:00 pm:The only one I know of is rather harsh. It would be deleting your FGFS cache but it wipes out everything.

not need for that... the launcher keeps its data in ~/.fgfs/FlightGear/FlightGear.ini... just edit the ini file and remove the contents of the "recent-location-sets" and "recent-locations" lines... might want to also clear the "current-location" line as well... just leave them as

recent-location-sets=
recent-locations=
current-location=

there really is no need to blow away the entire cache directory ;)
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 6317
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: How to empty the location cache?

Postby wkitty42 » Tue Apr 07, 2020 7:01 pm

msalama wrote in Tue Apr 07, 2020 4:10 pm:OK! Is it enough to delete just the navdata_2018_3 cache

no, that's the sqlite database of all the scenery locations and such...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 6317
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: How to empty the location cache?

Postby msalama » Wed Apr 08, 2020 1:55 am

OK! Will do as Wkitty suggested. Thanks all.
msalama
 
Posts: 36
Joined: Tue Jun 18, 2019 4:44 am

Re: How to empty the location cache?

Postby wkitty42 » Wed Apr 08, 2020 2:54 pm

please let us know if it worked as desired for you :)
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 6317
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: How to empty the location cache?

Postby msalama » Wed Apr 08, 2020 5:04 pm

Yeah, it worked great, I've only got the 2 default airports listed now. Thanks again guys.
msalama
 
Posts: 36
Joined: Tue Jun 18, 2019 4:44 am


Return to Flying

Who is online

Users browsing this forum: No registered users and 3 guests