Hello,
On Windows with with version 2018.2.1 aircraft thumbnails are not shown in FG QT launcher under the Aircrafts section.
In the console the following error appears:
Cannot convert relative path to a URL:FlightGear/Aircraft/ThumbnailCache/a2bc87a6f2f302612244d442e48fe832f8ef00ee.jpg
HTTP request: set failure:22 reason no URL specified on request
request failed: : 22/no URL specified on request
libpng warning: iCCP: known incorrect sRGB profile
The aircrafts were added via the QT launcher and not downloaded manualy.
Screenshoots in the attachment.
Best regards,
Vladimir
Ah can you tell me where Flightgear is installed? And the path to your 'Documents' directory? I am guessing the problem here is my file-path handling. Fix will come in the next few days days, thanks for the report.
The following paths are used by FGFS:
H:\Games\FlightGear 2018.2.1 (Installation)
H:\Games\FlightGear 2018.2.1\bin\FlightGear\Aircraft\ThumbnailCache
C:\Users\vladar\AppData\Local\FlightGear\FlightGear\cache\qmlcache
C:\Users\vladar\AppData\Roaming\flightgear.org
And the documents directory:
D:\Users\vladar\Documents (On my setup the documents dir is moved on another drive via Properties => Location)
Did you change the download directory to use 'H:\Games\FlightGear 2018.2.1\bin'? That is the problem here, I screwed up support for file-names-containing spaces - I will fix it in the coming week. Thanks again for the info!
No, apparently when I first launch the QT Gui it sets it up like this.
It's supposed to default to your Doucments directory, I guess that s C:\Users\vladar\Documents\, hence it would be C:\Users\vladar\Documents\FlightGear\Aircraft
What does the 'download dir' part of the luancher settings look like for you? Can you post a screenshot?
Basically it points at default FG location.
I tried to change it to another directory (H:\Games\FlightGear 2018.2.1\downloads) however the launcher does not remember the new setting when I exit and start again.
If I change it and strait away go to Aircrafts section and try to add an aircraft the QT Launcher crashes.
And here are the logs.
Okay, that's some bugs to fix, I will investigate this week!
Eurgh, there's a couple of broken things in this feature, fixes coming soon. Are you able to test nightly builds?
Yes, I can test.
I've just pushed some fixes for this to next (aka in tomorrow's nightly build) but I have further changes to make on WIndows to ensure the correct default path is used. I probably won't get these done today so maybe hold off before testing again.
Okay, this is a very interesting failure! Can you tell me which version of Windows you're on, and if there is anything unusual about your home dir?
The problem is that the standard function used to find your 'Documents' directory is failing for us - to my knowledge this never happened before, it's quite strange. So rather than getting the absolute path say C:\users\vlad\My Documents\Flightgear, we just get the empty path and add 'Flightgear'.
That's why your thumbnails are missing and why you get your aicraft loading into H:\Games\FlightGear 2018.2.1\bin' - because when we use a relative path, we default to the app's working directory, which is the directory of the .exe.
So once we figure out why querying the documents folder is failing for you, everything else should start working.
My version of Windows is Windows 10 Pro N (64bit), build ver 1709.
As far as I know the Pro N version of Windows is the same as regular Pro version except it did not came with Media player preistalled, I installed it later via Media Player service pack, so all the media binaries are there.
Regarding my home directory there indeed is unusual setup, from Windows 7 onwards the operating system allows us to move directories such as Downloads, Documents, Pictures, Videos, etc. to a different location (screenshoot attached).
Since I own 2 SSD's and 1 HDD I have moved heavy stuff to a D:\Users\vladar partition.
My setup:
C:\Users\vladar => Default user directory
C:\Users\vladar\AppData
Moved directories via the Properties => Location tab:
C:\Users\vladar\Downloads => D:\Users\vladar\Downloads
C:\Users\vladar\Documents => D:\Users\vladar\Documents
C:\Users\vladar\Pictures => D:\Users\vladar\Pictures
C:\Users\vladar\Videos => D:\Users\vladar\Videos
Regards,
Vladimir
Ahh interesting - okay so this is exactly why it's breaking, no one ever tested this setup before. Assuming I can replicate your setup on my Win10 box here (also N, that won't matter...) I can see why it fails and hopefully find a fix.
Thanks for your patience and help understanding this!
Right, fixes are pushed to Simgear and FlightGear now - tomorrow's nightly build should work correctly for you. Note you will need to re-add the default hangar (and any other hangars you are using) since FG will start using D:\Users\vladar\Documents\FlightGear by default for both TerraSync and hangar installs.
Once you report it's working as expected, I'll ensure these are in the next bug-fix release - 2018.2.3
Ok, thanks. I will test it once the nightly builds are out, for some reason they are failing since the last build on Satturday.
Hi James,
I just installed the latest Nightly and the issue still persists. The default Flightgear directory is placed inside the 'bin' directory instead of 'Documents' directory.
Regards,
Vladimir
That's strange indeed - there should also be some log output when it fails, can you run FlightGear, and attach the fgfs.log ?
Nothing special in the logs, the relative path fails because FG root points to a diffeent directory for some reason.
Add fgfs.log in the attachment.
Hi, just returning to this issue. With a currently nightly build, what value is shown for the 'default downloads dir' in the launcher? Is it your correct path (D:\Users\vladar\Documents) or something else?
Hi,
Sorry for the late reply.
I have just tested this with latest version 2018.3.1 and I am not having issues anymore.
Regards,
Vladimir
No apology needed, thanks for the update.
Btw, regarding your question, currently the download location by default is: D:/Users/vladar/Documents/FlightGear which i think is ok.