Open Revel8804 opened 3 years ago
Thanks for the tip! I've been thinking about doing something similar, however, I don't know if this works when you have: a) custom install folder for Windows Store b) custom install folder for Steam
I wanted to make it as flexible as possible, so I've decided to go with a text file. I'll leave the issue/suggestion open because I might revisit it later.
oh have an update on this one. Its been a minute and I forgot to add it. While working on my magic painting for the planes I learned about the file.
MSFSdir\localcache\User.Cfg.opt
From my understanding at least on the windows store version. the game will always install to C:\Users\
The last line in that file will have the external location that you want your packages installed to.
InstalledPackagesPath "C:\Users\kenny\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache\Packages"
I know the steam version will have that file there too, but if you tell steam to install to another location or drive, other than a file search I'm not sure how to find it.
i can not test the steam version either since I don't own it on steam.
also I have been out for a bit. The new updates and changes, ARE AMAZING!.
Just wanted to say good work and I appreciate that you are making and updating this.
I have a steam version it seem whatever you place the game the CUSTOMFLIGHT.FLT will at the same place. (except the username) And got another problem. In python \ is a convert chart. And when it use in locate a file should use r before the string or using \ or / in the string. It seem in this programe if reading fail. It also tell user to check the setting path. Maybe using except FileNotFoundError: to tell user about config wrong will better.
So in theory this should work for both steam and MS store if I am reading right. I don't have the Steam version so I can not confirm. It is basically importing the windows environment variable for localappdata and using that instead of having to specify in the settings.txt file.
Let me know your thoughts. I hope this marks up correctly.
so glass_server.py..... At the beginning I added....
Then in the load_fltpln function i changed it to......