kubilus1 / autoortho Goto Github PK
View Code? Open in Web Editor NEWOrthophoto streaming for X-Plane 11
License: Apache License 2.0
Orthophoto streaming for X-Plane 11
License: Apache License 2.0
when downloading eur_02.zip it runs into an expired ssl certificate which dumps a stack trace.
After this the program can not be restarted:
Traceback (most recent call last):
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\urllib\request.py", line 1348, in do_open
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\http\client.py", line 1282, in request
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\http\client.py", line 1328, in _send_request
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\http\client.py", line 1277, in endheaders
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\http\client.py", line 1037, in _send_output
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\http\client.py", line 975, in send
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\http\client.py", line 1454, in connect
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\ssl.py", line 513, in wrap_socket
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\ssl.py", line 1071, in _create
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\ssl.py", line 1342, in do_handshake
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\__main__.py", line 26, in <module>
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\autoortho.py", line 52, in main
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\aoconfig.py", line 87, in setup
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\aoconfig.py", line 145, in ui_loop
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\downloader.py", line 474, in find_releases
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\downloader.py", line 74, in __init__
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\downloader.py", line 100, in get_rel_info
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\downloader.py", line 25, in do_url
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\urllib\request.py", line 216, in urlopen
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\urllib\request.py", line 525, in open
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\urllib\request.py", line 634, in http_response
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\urllib\request.py", line 557, in error
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\urllib\request.py", line 496, in _call_chain
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\urllib\request.py", line 749, in http_error_302
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\urllib\request.py", line 519, in open
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\urllib\request.py", line 536, in _open
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\urllib\request.py", line 496, in _call_chain
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\urllib\request.py", line 1391, in https_open
File "C:\Users\bonk\AppData\Local\Temp\ONEFIL~3\urllib\request.py", line 1351, in do_open
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)>
The cache folder gets quite unwieldy after some time, with millions of files. Windows doesn't cope well with folders that contain that many files in the explorer. It would maybe be a good idea to divide them by tile boundary or ortho provider. This would also make it easier to delete certain areas from the cache.
Maybe it could be a setting in the config to not make existing user's cache folder invalid, or migrate the files on boot.
For clarification: looking through the code, the rows and cols in the filenames don't easily convert to latitude and longitude, but that's what I mean by "tile boundary", so much like ortho4xp groups/generates DSF files. Folders could be named in a format like
"5040N" for 50deg N, 40deg E
"50N40" for 50deg N, 140deg E
"5040E" for 50deg S, 40deg E
"50E40" for 50deg S, 140deg E
"5040S" for 50deg S, 40deg W
"50S40" for 50deg S, 140deg W
"5040W" for 50deg N, 40deg W
"50W40" for 50deg N, 140deg W
So much like the shorthand for latitude and longitude on a lot of FMCs, making folder names always have the same length and easy format to recognize.
I see that there are various Map Providers we're able to pick from if we want something other than Bing.
Personally I'm using HERE in my manual Ortho4XP setup but I've noticed that this isn't an option for autoortho.
Can we have that one added here?
Ortho4XP creates the URL inside the O4_Custom_URL.py file; the referenced function get_Here_value() actually isn't needed necessarily but can be replaced by newest inside the URL.
That would leave the URL as something like this:
url="https://"+random.choice(['1','2','3','4'])+".aerial.maps.api.here.com/maptile/2.1/maptile/newest/satellite.day/"+str(tilematrix)+"/"+str(til_x)+"/"+str(til_y)+"/256/jpg?app_id=VgTVFr1a0ft1qGcLCVJ6&app_code=LJXqQ8ErW71UsRUK3R33Ow"
I had to replace the appId and appCode with a newer one I received from the website requests; I'm not sure how long these are actually valid for so perhaps they should be configurable somehow? Ortho4XP still reads .py files even when running the binary version so changing these from time to time isn't really an issue there; I'm not sure if autoortho also supports that.
actualy idk why i have 842k of pic on cache and i can't delet them
Excellent program.
I installed all regions, flew to different parts of the world and it works perfectly.
So far the only place I don't see Ortho is in Hawaii. Only the default X-Plane scenery appears.
Attached is my scenario file
scenery_packs.ini.txt
and my log file
Log.txt
XP is freezing a lot. I don't know if this is related but there is a lot of this in log.txt
2:44:37.039 D/TEX: DDS file Custom Scenery/z_na_07/textures/100080_75792_BI18.dds is missing 32 bytes of low mips
2:44:37.362 W/TEX: DDS file Custom Scenery/z_na_07/textures/24992_18944_BI16.dds declares 11 mips, provides 11 mips, we expected 13 mips
2:44:37.362 D/TEX: DDS file Custom Scenery/z_na_07/textures/24992_18944_BI16.dds is missing 32 bytes of low mips
2:44:37.564 W/TEX: DDS file Custom Scenery/z_na_07/textures/24912_18976_BI16.dds declares 11 mips, provides 11 mips, we expected 13 mips
2:44:37.564 D/TEX: DDS file Custom Scenery/z_na_07/textures/24912_18976_BI16.dds is missing 32 bytes of low mips
2:44:37.715 W/TEX: DDS file Custom Scenery/z_na_07/textures/100096_75808_BI18.dds declares 11 mips, provides 11 mips, we expected 13 mips
2:44:37.715 D/TEX: DDS file Custom Scenery/z_na_07/textures/100096_75808_BI18.dds is missing 32 bytes of low mips
2:44:38.110 W/TEX: DDS file Custom Scenery/z_na_07/textures/100080_75808_BI18.dds declares 11 mips, provides 11 mips, we expected 13 mips
2:44:38.110 D/TEX: DDS file Custom Scenery/z_na_07/textures/100080_75808_BI18.dds is missing 32 bytes of low mips
2:44:38.702 W/TEX: DDS file Custom Scenery/z_na_07/textures/100000_75808_BI18.dds declares 11 mips, provides 11 mips, we expected 13 mips
2:44:38.702 D/TEX: DDS file Custom Scenery/z_na_07/textures/100000_75808_BI18.dds is missing 32 bytes of low mips
2:44:38.887 W/TEX: DDS file Custom Scenery/z_na_07/textures/24976_18944_BI16.dds declares 11 mips, provides 11 mips, we expected 13 mips
2:44:38.887 D/TEX: DDS file Custom Scenery/z_na_07/textures/24976_18944_BI16.dds is missing 32 bytes of low mips
Win11 x64 After installing the corresponding packages south america. The installer says that there was a problem and everything must be reinstalled again, but everything was installed correctly. Verifying the files, everything was installed correctly, the problem was in " sa_info.json" that the path of the folders had an incompatible character "\\" .
for example: path was "F:/X-Plane11/Custom Scenery\\z_sa_01" fix was "F:/X-Plane11/Custom Scenery/z_sa_01"
now the setup is correct. but cant see the run button! I cannot resize the window!. (Fix starting program in win11x64 using bat file "autoortho_win.exe -H" )(Thanks for this cmd way to start the program.)
Hi,
I am getting these info messages:
INFO:getortho:Hit cache limit. Remove oldest 20
Seems to me that the app is removing caches orthophotos ?
Can we add the implementation of DiskCache, also for improving the performance ?
Originally posted by srykho22 May 23, 2023
I'm having issues with AO taking over an hour and a half to start up, with my flights also hanging for over thirty minutes at a time every time it gets new textures. I've gone as far down as minimum ZL 14 and things haven't really changed. Max wait time at 0.25 shows the majority of tiles as just pure green (didn't download), whereas a wait time of 1.50 doesn't load in, even overnight.
I don't clear the cache, and I have experimented with having the cache on both an external SSD and external HDD. Speedtest says my internet is around 180Mbps download, with task manager saying my ethernet is using 17Mbps with Auto Ortho running. I've also seen the usage go up with other apps when I tested if my ISP was throttling, and I've also tried the new version and reverting to older versions, with barely any difference.
Auto Ortho gives a lot of "empty chunk data, skip" errors, but VPN doesn't really help there.
Recently, AutoOrtho has started using up a lot of CPU usage in intervals. so like for 2 mins it will be 40%+ cpu usage, but then lower down to 10%. This has never happened before and it's affecting my gameplay by a lot. Normally I get an average of 50 FPS but due to the high cpu usage, it goes down to 10 FPS and causes me to disconnect from VATSIM. Is there any possible fix?
Hi, I installed this and used the Setup options to specify scenery and cache directories on my E: drive. However when I commenced installation of an ortho set, the downloader began filling up my C: drive. I looked at the .autoortho config file in the root of my user profile and noted the download folder is specified but there is no program-based option to change this. I tried changing it in the config file, saving then closing and re-running the AutoOrth Setup, but it ignores the config file or reverts it and goes back to using the download folder at C:\Users\YOUR_USER.autoortho-data\downloads.
There seems to be no way round this, and due to the quantity of data being downloaded it would be helpful to have access to this setting to define the download location successfully!
Thanks
Rich
Hey,
Thanks a lot for this excellent utility.
I'm on windows 11, and I wanted to use autoortho on xp12.
But I got this error, although I saw the tiles in the cache folder when I started the xp12. It takes 45 min to retrieve the tiles.
I already installed winfs version winfsp-1.12.22339
ERROR:winfspy:Unhandled exception
Traceback (most recent call last):
File "C:\Users\Alireza\AppData\Local\Temp\ON5332~1\winfspy\operations.py", line 20, in wrapper
File "C:\Users\Alireza\AppData\Local\Temp\ON5332~1\winfspy\operations.py", line 433, in ll_set_basic_info
File "C:\Users\Alireza\AppData\Local\Temp\ON5332~1\winfspy\operations.py", line 468, in set_basic_info
NotImplementedError
INFO:flighttrack:FT: Flight is starting.
INFO:flighttrack:FT: Time to start was 42.85 minutes
I've uploaded the whole log file in case :)
autoortho.log
EKVG is a very mountainous and dangerous airport but with the ortho installed it becomes flat and has zero mountains around it.
Hi,
Thanks for developing this. I found a fusepy fork that concentrates on cross platform integration with winfsp and fuse for macos. Maybe this is helpful in supporting MacOS and Windows. AFAIK, you just need to adjust your imported functions.
https://github.com/cdrini/refuse/tree/cdrini-patch-1
(most appropriate fork I think). As it is Alpha (but high level functions seem to be tested) maybe you want to keep using standard fusepy for linux.
I can test on windows
NAIP map type
Causes program to loop with 404 not found
ERROR:fuse:FUSE operation read raised an OSError with an invalid errno None, returning errno.EINVAL.
Traceback (most recent call last):
File "C:\Users\Leo\AppData\Local\Temp\ON9CE71\refuse\high.py", line 863, in _wrapper1\refuse\high.py", line 974, in read
File "C:\Users\Leo\AppData\Local\Temp\ON9CE7
File "C:\Users\Leo\AppData\Local\Temp\ON9CE71\refuse\high.py", line 1222, in call1\autoortho_fuse.py", line 345, in read
File "C:\Users\Leo\AppData\Local\Temp\ON9CE7
File "C:\Users\Leo\AppData\Local\Temp\ON9CE71\getortho.py", line 662, in read_dds_bytes1\getortho.py", line 80, in wrapped
File "C:\Users\Leo\AppData\Local\Temp\ON9CE7
File "C:\Users\Leo\AppData\Local\Temp\ON9CE71\getortho.py", line 882, in get_mipmap1\getortho.py", line 80, in wrapped
File "C:\Users\Leo\AppData\Local\Temp\ON9CE7
File "C:\Users\Leo\AppData\Local\Temp\ON9CE71\getortho.py", line 743, in get_img1\aoimage\AoImage.py", line 122, in new
File "C:\Users\Leo\AppData\Local\Temp\ON9CE7
OSError: exception: single step
Constant CTD and this is the only thing I can find on the console
I change directory of cache but it doesn't change.
Using 0.3 RC2 and getting this error on windows:
Traceback (most recent call last): File "G:\Temp\onefile_1420_133206948425020505\autoortho.py", line 139, in <module> File "G:\Temp\onefile_1420_133206948425020505\autoortho.py", line 86, in main File "G:\Temp\onefile_1420_133206948425020505\autoortho_winfsp.py", line 471, in main File "G:\Temp\onefile_1420_133206948425020505\autoortho_winfsp.py", line 444, in create_file_system File "G:\Temp\onefile_1420_133206948425020505\winfspy\file_system.py", line 116, in __init__ File "G:\Temp\onefile_1420_133206948425020505\winfspy\file_system.py", line 156, in _create_file_system winfspy.plumbing.exceptions.WinFSPyError: Cannot create file system: STATUS_INSUFFICIENT_RESOURCES
It seems that right around Montreal, there's an area that fails to pull scenery consistently. I've deleted the cache folder twice, and had the same thing happen. I also tried BI and Firefly on different occasions, to the same result.
This might also be happening elsewhere, but it seems to be pretty consistent around that specific spot.
I see the "timeout" messages in the console, although it's a little strange to me that it's always the exact specific spot that times out.
Exact position is an area that seems to be around 20nm squared, around the HABBS waypoint on the HABBS6 arrival into CYUL.
Unfortunately, a lot of airports using autoortho mesh have quite bumpy/hilly aprons and weird terrain glitches. Should we list those or is the recommended approach to just create custom tiles for these areas?
If so, is it possible to also just create tiles without textures and use them alongside the default tile package?
Examples are EDDK, EDDM and EDDF, but I'm sure there's a lot more of them.
I'm getting a urlopen error sometimes while opening the autoortho executable, and all the time while trying to load into the sim.
When opening the executable, it simply just crashes the app.
When trying to load into the sim, it repeatedly tries again, overloading my internet connection, and effectively being a DDoS attack.
Here's a screenshot of the console when the error occurs on opening
Here's a video of the behavior while the sim is loading
https://user-images.githubusercontent.com/76414253/234157944-d58334ba-b306-4c07-9a8a-3ef5021377bd.mp4
Here's a video of a similar error. It does not explicitly say urlopen error, but it has similar behavior and is likely related.
https://user-images.githubusercontent.com/76414253/234159751-a014a311-cb4b-431b-b221-679f7222cb91.mp4
I am currently over PONCT in USA and my first officer and I both just see stars instead of ground/
When I download 0.3.1-4/autoortho_win.zip Windows 11 Defender detects Trojan:Win32/Vigorf.A
I have used code from both the macOS branch and master branch, and can run the initial setup and download GUI, however when I try to run the program, I get the following error:
"System is not supported" - when running code from master branch
or
"ERROR:aoimage.AoImage:System is not supported" when running from macOS branch.
Isn't there a way that defender to stop marking it as virus? The thing it keeps deleting my file over and over each time. I want to keep defender active while preventing it to mark this as virus since it's not.
Hey, I'm getting an error running python3 autoortho
on macOS. I know you haven't tested this in this system yet, happy to help debug & get this running.
The logfile is attached (too long to share here)
autoortho.log
Would love getting this running, as I can't run OrthoXP on my Mac either!
Would love to have a feature where user can supply FMS file or Simbrief id. Then AutoOrtho will take the flight plan and download all the needed tiles in advance.
Hello,
I'm keep the Custom Scenery folder on a ntfs formatted drive . As some of the scenery folders contain the asterisk sign in the naming convention, it is quite challenging to use autoortho, as need to implement some pretty sketchy workarounds. Is it possible to change the naming convention of the folders which contain the asterisk sign in their name to something ntfs friendly?
Originally posted by kubilus1 October 8, 2022
We’re using Discussions as a place to connect with other members of our community. We hope that you:
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
First things first. Thank you for a fantastic addon! It makes x-plane so much more enjoyable and it works like a charm. I hope the screenshot i attached is clear enough. You can probably see how the terrain thats a bit more in the distance has different colours. Is there anything that can be done about that because having green terrain like that isnt too pleasing for the eye when flying in the desert. I can see how the orthophoto is there but the colouring renders properly only when im close enough to it.
Thanks!
Users are submitting huge log files from multiple autoortho runs.
I suggest to truncate the log file at autoortho startup, just like for example X-Plane does.
I would really love if you enabled google maps back! Why was it removed in the first place? Used to be a map type before...
Originally posted by evwltrs February 12, 2023
Hi :),
Love the tool. However I was wondering if it was possible to update the cache dir on Windows as changing it in the configurator currently does nothing.
Thanks
Not sure if this was introduced with 0.4.0+, but I now sometimes have tiles which are colored as if they come from a different zoomlevel. When zooming in, they get replaced by another tile which is color-matched with the surrounding tiles, repeatably so (zooming out I get off-color textures again).
See attached example, looking at the region around the riverbed.
It would be nice if we could remove certain areas from the autoortho (AO from here on out) list. For example, I have Orbx True Earth for SoCal and I don't want the program using up CPU when I am flying in SoCal - as mentioned in another issue, AO uses enough of my CPU for long enough to tank my FPS from >30 to ~15, disconnecting me from VATSIM. I'd be fine with this just being a simple config file to get the feature in quicker, but later down the line a wizard would be nice, similar to Ortho4XP's tile selection window.
Is there anything you can do from your side to fix the reporting of a targeted network attack? Xfinity blocks the connection of autoortho causing it to not work.
So I downloaded autoortho and my Malwarebytes is saying that it has a spyware and also I tested it out with virus total and it says the same thing.
Is there anyway of changing the ortho cfg file from my C: drive? I have it set to my F: Drive but it still goes to my C: drive with about 20gb left if I try to install NA its 24gb. So can I config the files to download somewhere else?
after I've downloaded everything, while it's about halfway through the extraction it gives me an unspecified error and the only way to fix it is to try downloading everything again. Anyone know how to fix?
Log from Autoortho:
ERROR:fuse:FUSE operation read raised an OSError with an invalid errno None, returning errno.EINVAL.
Traceback (most recent call last):
File "C:\Users\Leo\AppData\Local\Temp\ONB0211\refuse\high.py", line 863, in _wrapper1\refuse\high.py", line 974, in read
File "C:\Users\Leo\AppData\Local\Temp\ONB021
File "C:\Users\Leo\AppData\Local\Temp\ONB0211\refuse\high.py", line 1222, in call1\autoortho_fuse.py", line 345, in read
File "C:\Users\Leo\AppData\Local\Temp\ONB021
File "C:\Users\Leo\AppData\Local\Temp\ONB0211\getortho.py", line 662, in read_dds_bytes1\getortho.py", line 80, in wrapped
File "C:\Users\Leo\AppData\Local\Temp\ONB021
File "C:\Users\Leo\AppData\Local\Temp\ONB0211\getortho.py", line 882, in get_mipmap1\getortho.py", line 80, in wrapped
File "C:\Users\Leo\AppData\Local\Temp\ONB021
File "C:\Users\Leo\AppData\Local\Temp\ONB0211\getortho.py", line 765, in get_img1\aoimage\AoImage.py", line 105, in paste
File "C:\Users\Leo\AppData\Local\Temp\ONB021
OSError: exception: single step
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.