Recommended Posts

On 10/6/2018 at 9:33 PM, Sasa2k said:

Hi,

Can someone help me?

I did all steps include install Python (Version 3.7) . I have Win10 64 and I guess I have to choose the "64amd" packages ( Pyproj, Numpy, Gdal, Shapely, Rtree, Pillow ). When I tried to install them I got the message "GDAL-2.3.2-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform" The same with the other whl files.

 

When I use the 32whl packages, the install works but I cant open the "Ortho4XP_v130.py" When I try to open it, nothing happens.

I got also this message in the Comand line when I open the Ortho4XP_v130.exe from dist folder -> ERROR: Providers/O4_Custom_URL.py contains invalid code. The corresponding providers won't probably work.

What did I wrong?

 

If you're just running the .exe, you don't need to install Python, just install the ImageMagick in the dist directory and run the .exe. That error is caused by a problem in that file. 

The syntax of O4Custom_URL.py is not correct (there's a missing code block).

One workaround would be to add a dummy statement after line 19, i.e. "True" according to the below snippet:

def custom_tms_request(tilematrix,til_x,til_y,provider):
    if provider['code']=='*****':
        True
        # do something
        # url = ******
    # etc
    return url

Note that you cannot really use the built-in Notepad in Windows and need to use something like Notepad++ to get the file formatted right. Also, spacing is important, use spaces instead of a tab.

I do not claim to have figured this out myself, I found it on the X-plane forums thread about Ortho4XP by the user Daikan but I'm not sure if I can link that forum from here.

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

On 10/8/2018 at 5:07 PM, fat######79 said:

 

If you're just running the .exe, you don't need to install Python, just install the ImageMagick in the dist directory and run the .exe. That error is caused by a problem in that file. 

The syntax of O4Custom_URL.py is not correct (there's a missing code block).

One workaround would be to add a dummy statement after line 19, i.e. "True" according to the below snippet:


def custom_tms_request(tilematrix,til_x,til_y,provider):
    if provider['code']=='*****':
        True
        # do something
        # url = ******
    # etc
    return url

Note that you cannot really use the built-in Notepad in Windows and need to use something like Notepad++ to get the file formatted right. Also, spacing is important, use spaces instead of a tab.

I do not claim to have figured this out myself, I found it on the X-plane forums thread about Ortho4XP by the user Daikan but I'm not sure if I can link that forum from here.

Ahh! I also saw that I installed the Python 32bit version on my Win64 😄

Thanks for your help! Now its running 🙂

Share this post


Link to post
Share on other sites

Can anyone explain to me when i select as this example, tile +36-077 on the map 
capture3677.jpg

When it processes and downloads the bmp files.. it puts it under a folder called +30-080? 30, 80 would be somewhere in the atlantic east of jacksonville.. i dont understand where that folder name comes from?

Its a problem because i'm converting dds files from the tiles of ortho4xp to bmps and sticking their folders in here to run the esp on them, but if take this example.. isnt put in that folder, it tries to redownload everything because it doesnt see +36-077 in that 30 80 folder.. so how am I to know what naming convention and subfoldering it will do for the rest of the world?

Confused a bit 

 

Share this post


Link to post
Share on other sites

That's because in X-Plane tiles are grouped into folders of 10x10 degrees and the folder uses the "bottom left" tile coordinate of the group as a convention.

However, this can be configured in the .lay file of the provider i.e. for Bing (BI.lay) simply change line #3 to "imagery_dir=normal".

Edited by d41k4n

Share this post


Link to post
Share on other sites
10 hours ago, d41k4n said:

That's because in X-Plane tiles are grouped into folders of 10x10 degrees and the folder uses the "bottom left" tile coordinate of the group as a convention.

However, this can be configured in the .lay file of the provider i.e. for Bing (BI.lay) simply change line #3 to "imagery_dir=normal".

Awesome info.. thank you.. ill try changing it.. this will make conversion so much easier than trying to figure out the grid thing.

Share this post


Link to post
Share on other sites

Does anyone know of a fix to eliminate the "freezing/pausing" of the ESP process black command windows that seems to happen from time to time.. only fix is to click one in focus and tap the spacebar.. then the resume.. often find out hours later tiles didnt finish because they pop up then later get stuck.. im using resampleFSXSP2.exe

Edited by theskyisthelimit

Share this post


Link to post
Share on other sites

Working great now (after a few hours of hacking files ; see below)  and THANKS !  this is fantastic.  Been waiting for this capability for some time now....GREAT.  

Since I had already installed Oscar's 1.30 for XP11 and therefore Python 3.6.5, I didn't want to change the Python version nor go through the re-install.  This ESP version didn't seem to like Py ver 3.6.5. on this (Win 10 x64) machine for some reason.  So, I opted for your prebuilt .exe file.  I did the edit to the .cfg  (to indicate the proper path for the resample tool) but it didn't 'take hold'. In other words, the tile built successfully but not the bgl conversion process.  Q: does the binary read the .cfg file before execution?   {FIX: since I happen to have an "F:" drive on this machine, I simply created a directory there to match the one in your original .cfg and pasted resample there, with success. Works fine now }  

Also, each instance of execution I get the error "ERROR: Providers/O4_Custom_URL.py contains invalid code. The corresponding providers won't probably work"  as reported by others, but that does not (yet) impede progress.   

Thanks for a great idea and great effort.  

JB

 

Share this post


Link to post
Share on other sites
On 10/25/2018 at 6:27 PM, joby33y said:

Working great now (after a few hours of hacking files ; see below)  and THANKS !  this is fantastic.  Been waiting for this capability for some time now....GREAT.  

Since I had already installed Oscar's 1.30 for XP11 and therefore Python 3.6.5, I didn't want to change the Python version nor go through the re-install.  This ESP version didn't seem to like Py ver 3.6.5. on this (Win 10 x64) machine for some reason.  So, I opted for your prebuilt .exe file.  I did the edit to the .cfg  (to indicate the proper path for the resample tool) but it didn't 'take hold'. In other words, the tile built successfully but not the bgl conversion process.  Q: does the binary read the .cfg file before execution?   {FIX: since I happen to have an "F:" drive on this machine, I simply created a directory there to match the one in your original .cfg and pasted resample there, with success. Works fine now }  

Also, each instance of execution I get the error "ERROR: Providers/O4_Custom_URL.py contains invalid code. The corresponding providers won't probably work"  as reported by others, but that does not (yet) impede progress.   

Thanks for a great idea and great effort.  

JB

 

How have you dealt with the resample.exe processes getting stuck or taking focus?  Mine stick at times and you have to press a key or enter on each black window to keep them moving.. hoping there is a fix for this and/or the fact they steal focus when they run.

Also.. have you tried merging all bgls into a massive scenery directory.. or for that matter putting multiple entries in for each tile in scenery.cfg (on say 500-900GB worth)?  My merging of files i tried to do lead to huge issues (900 gig).. it created a massive slow down or stuck at 99% on reindexing.. had to kill the task of prepar3d.exe multiple times, on one run it did work but took 16 minutes vs the 2 without any ortho.. i'm thinking this is not going to work for anything large unless i had botched something.  Disappointing to say the least.

 

Share this post


Link to post
Share on other sites
3 hours ago, theskyisthelimit said:

How have you dealt with the resample.exe processes getting stuck or taking focus?  Mine stick at times and you have to press a key or enter on each black window to keep them moving.. hoping there is a fix for this and/or the fact they steal focus when they run.

Also.. have you tried merging all bgls into a massive scenery directory.. or for that matter putting multiple entries in for each tile in scenery.cfg (on say 500-900GB worth)?  My merging of files i tried to do lead to huge issues (900 gig).. it created a massive slow down or stuck at 99% on reindexing.. had to kill the task of prepar3d.exe multiple times, on one run it did work but took 16 minutes vs the 2 without any ortho.. i'm thinking this is not going to work for anything large unless i had botched something.  Disappointing to say the least.

 

I do indeed see a lot process windows open while resample executes, but on mine they seem to auto-close upon completion. Maybe it's a Windows process termination setting ?  Or incorrect resample.exe setting ?   Are  you using py to start Ortho or his prebuilt binary ?   in other words, I have not yet experienced them getting stuck or losing focus and I am using the binary.  However, I limit the number of tiles at any one time to say 3 or 4.  Even with the few number of tiles, resample.exe will spawn a boat load of process windows.  For a few moments, I thought the machine was stuck in a loop....

Yes, I do have one separate drive / directory dedicated to tiles, but not sure about merging 'all .bgls' into a massive directory.  I would rather keep it in smaller chunks for better manageability.  I give each tile a meaningful name (Dublin, Munich, InnsBrck) so that I can determine where it should sit in library given that I have a lot of Orbx stuff (for now) that has to co-exist.  If a given tile doesn't behave or look right, I will delete it and move on.  There is a lot of experimenting going on, but I thing this is the start of great scenery building for the future.  The tile +47-011, when paired with Orbx's LOWI airport, looks absolutely fantastic.  The trains running around the 'real' tracks is a very, very cool thing.  

This weekend, I did indeed end up with P3d (4.3) getting stuck at the opening splash screen after I exited from a flight from within an Ortho area.  Had to rebuild scenery.cfg and 'delete generated files' (you may know the drill if you use P3D v4) in order to regain control.  Not a big deal and all of the Orbx stuff comes right back upon one "verify files" command at FTXCentral - nice touch.  So, to answer your specific question, I have not yet built that much Ortho. I am up to about 10 tiles or so at varying ZL's to try and determine the optimum, acceptable visuals given the type of flying I want to do.  I did ZL16 for an international airport, and ZL14 for the 'surrounding' 8 tiles in the area - and it looks just fine from 10,000 ft on approach- and much, much smaller datasets.  But I don't trust the stability of the software (including P3D v4.3 in general)  to really invest that much time and effort - things will eventually overload or crash and suddenly you're rebuilding again.  Too easy to break stuff with a lot of install and de-installs.  Terrain and or scenery .cfg will get screwed up.  Then you need to know how to quickly rebuild and regain control, lest ye suffer from FSWS (Flight Sim Withdrawal Syndrome).  

cheers  :-)  

Share this post


Link to post
Share on other sites
7 hours ago, joby33y said:

I do indeed see a lot process windows open while resample executes, but on mine they seem to auto-close upon completion. Maybe it's a Windows process termination setting ?  Or incorrect resample.exe setting ?   Are  you using py to start Ortho or his prebuilt binary ?   in other words, I have not yet experienced them getting stuck or losing focus and I am using the binary.  However, I limit the number of tiles at any one time to say 3 or 4.  Even with the few number of tiles, resample.exe will spawn a boat load of process windows.  For a few moments, I thought the machine was stuck in a loop....

Yes, I do have one separate drive / directory dedicated to tiles, but not sure about merging 'all .bgls' into a massive directory.  I would rather keep it in smaller chunks for better manageability.  I give each tile a meaningful name (Dublin, Munich, InnsBrck) so that I can determine where it should sit in library given that I have a lot of Orbx stuff (for now) that has to co-exist.  If a given tile doesn't behave or look right, I will delete it and move on.  There is a lot of experimenting going on, but I thing this is the start of great scenery building for the future.  The tile +47-011, when paired with Orbx's LOWI airport, looks absolutely fantastic.  The trains running around the 'real' tracks is a very, very cool thing.  

This weekend, I did indeed end up with P3d (4.3) getting stuck at the opening splash screen after I exited from a flight from within an Ortho area.  Had to rebuild scenery.cfg and 'delete generated files' (you may know the drill if you use P3D v4) in order to regain control.  Not a big deal and all of the Orbx stuff comes right back upon one "verify files" command at FTXCentral - nice touch.  So, to answer your specific question, I have not yet built that much Ortho. I am up to about 10 tiles or so at varying ZL's to try and determine the optimum, acceptable visuals given the type of flying I want to do.  I did ZL16 for an international airport, and ZL14 for the 'surrounding' 8 tiles in the area - and it looks just fine from 10,000 ft on approach- and much, much smaller datasets.  But I don't trust the stability of the software (including P3D v4.3 in general)  to really invest that much time and effort - things will eventually overload or crash and suddenly you're rebuilding again.  Too easy to break stuff with a lot of install and de-installs.  Terrain and or scenery .cfg will get screwed up.  Then you need to know how to quickly rebuild and regain control, lest ye suffer from FSWS (Flight Sim Withdrawal Syndrome).  

cheers  🙂

I'm also using the .exe window.. not sure what resample setting it would be.. the cfg file has the line pointing to resample.. i didnt think you could configure anything..  it frustrating.. set it to do 6 tiles overnight only to wake to find that it only got part way through (the very long) resample process that needs nudged on every window periodically (but not always).

I found that i was missing bgl's and redid things.. this time painstakingly adding each entry for 933GB worth (on 7200 rpm drive) main SSD is p3d and another for the OS.. old load time test was 2min30 for one location and now 3min 20sec with the ortho enabled.. i guess not horrid for 933GB.

Share this post


Link to post
Share on other sites
On 7/13/2018 at 5:11 PM, kjjj11223344 said:
Hey guys,
 
I modified Ortho4XP version 1.30 to enable support for FSX/P3D. The main advantage over FSEarthTiles is that water masks are created dynamically and accurately from OpenStreetMap data at extremely high detail (no more slaving over creating accurate water masks). I will try to add creation of night and seasonal masks in the future (no ETA as I'm very busy).
 
 

Any chance this will be updated to match the master of 1.30 where its currently at.. has a few extra features in the config panel that dont exist in the p3d version.  Hoping still there is a way to prevent the command windows from popping up or stalling down the road at least.

The one added feature that could have some relevance is ""imprint_masks_to_dds=True/false" which helps with Vram usage apparently (if set to true) at least in the master 1.30 for xp.

 

Share this post


Link to post
Share on other sites
Quote

 

Hi Every one !!!

Well this product is really great !!! big thanks !! my is working after many hours clicking there and here … etc etc (im not the coputer guy) i have 2 question that i cant find by my self how to fix it 

1- How to change the way the mask is done, i mean i am doing caribbean islands, and in some of them the beauty is in the water (beaches) but the program clip the water to near the island and the beauty is lost, and my question is how  to make the making not that narrow from the island, is there any parameter that i could change ?

2- In almost all the islands and actually all the tiles the picture airport is never align with prepar3d airport, looks like 2 airports, just wondering how to fix it

Thanks for your help and time !!!

//Gustavo 

Share this post


Link to post
Share on other sites

Hi,

Is there a way to use a tile already downloaded and be used for P3d instead of XP-11. The Tile is for my hometown airport and can't be downloaded again because Sat image has been updated from the SOURCE.Any 

help on this would be appreciated.

Thanks ,

Mike

Share this post


Link to post
Share on other sites
On 10/30/2018 at 11:21 AM, theskyisthelimit said:

Any chance this will be updated to match the master of 1.30 where its currently at.. has a few extra features in the config panel that dont exist in the p3d version.  Hoping still there is a way to prevent the command windows from popping up or stalling down the road at least. However, I don't think this new dds feature will work for fsx/p3d.

The one added feature that could have some relevance is ""imprint_masks_to_dds=True/false" which helps with Vram usage apparently (if set to true) at least in the master 1.30 for xp.

 

I haven't been active much, as have been very busy with school. I just merged in the latest changes of 1.30. I will build a tile to make sure all is good, and should have the prebuilt binary updated by tomorrow after I can test it (since I assume the majority of people use the pre built binary). However, I don't think this dds feature will work for ESP.

I also modified the spawning of resample processes so they now spawn minimized and don't constantly spawn on top of your current windows.

I have also been investigating on integrating the sceneproc autogen creation functionality, and hope to work on it more over the holidays, time permitting.

Edited by kjjj11223344
  • Like 2

Share this post


Link to post
Share on other sites
On 11/30/2018 at 4:58 PM, mm71w said:

Hi,

Is there a way to use a tile already downloaded and be used for P3d instead of XP-11. The Tile is for my hometown airport and can't be downloaded again because Sat image has been updated from the SOURCE.Any 

help on this would be appreciated.

Thanks ,

Mike

Not currently, but I have been suggested some ideas on how to get this to work. But I my main goal now is to integrate sceneproc :).

Share this post


Link to post
Share on other sites
On 11/14/2018 at 3:36 AM, gusmor said:

Hi Every one !!!

Well this product is really great !!! big thanks !! my is working after many hours clicking there and here … etc etc (im not the coputer guy) i have 2 question that i cant find by my self how to fix it 

1- How to change the way the mask is done, i mean i am doing caribbean islands, and in some of them the beauty is in the water (beaches) but the program clip the water to near the island and the beauty is lost, and my question is how  to make the making not that narrow from the island, is there any parameter that i could change ?

2- In almost all the islands and actually all the tiles the picture airport is never align with prepar3d airport, looks like 2 airports, just wondering how to fix it

Thanks for your help and time !!!

//Gustavo 

1) Is not currently modifiable, do you mean you'd like to use the satellite water as opposed to default fsx/p3d water?

Share this post


Link to post
Share on other sites
5 hours ago, kjjj11223344 said:

Not currently, but I have been suggested some ideas on how to get this to work. But I my main goal now is to integrate sceneproc :).

Thanks for reply .....I did a lot of reading though this topic and found that if you use " python reduce_imagery.py " and change .jpeg to .bmp , i can now use my tiles from X-plane (ortho120.)    🙂

Share this post


Link to post
Share on other sites
11 hours ago, mm71w said:

Thanks for reply .....I did a lot of reading though this topic and found that if you use " python reduce_imagery.py " and change .jpeg to .bmp , i can now use my tiles from X-plane (ortho120.)    🙂

Interesting, I will take a look 🙂

Share this post


Link to post
Share on other sites

The exe has been updated to include all of Oscar's latest fixes as well as the new fix which spawns resample minimized to the taskbar.

Share this post


Link to post
Share on other sites
1 hour ago, kjjj11223344 said:

Interesting, I will take a look 🙂

Kjjj11223344----- Look at page 7 of this topic for strat919 post. He has all the info needed for transfer .

Share this post


Link to post
Share on other sites
2 hours ago, kjjj11223344 said:

The exe has been updated to include all of Oscar's latest fixes as well as the new fix which spawns resample minimized to the taskbar.

is the exe on the fist page of this topic? 

Nevermine , found it

Edited by mm71w

Share this post


Link to post
Share on other sites
19 hours ago, kjjj11223344 said:

The exe has been updated to include all of Oscar's latest fixes as well as the new fix which spawns resample minimized to the taskbar.

Should this same exe that has the p3d export in it, now be used as the version 1.30 for doing new tiles for XP11 as well.. or should we (still) use oscars exe/files outside of this branch just for XP11?

 

Share this post


Link to post
Share on other sites

What is the typical time it takes to do the esp part for most people..Mine 1hr43min total time, 15 of which is everything but the esp (so around 1hr30min for the esp for one tile).. this on a 5.1ghz machine with 1080 ti (is there any way to utilize some gpu processing to speed this up?).. the minimized windows work great now though.

Other question is on the bgl file / folder size after wards.. i have some tiles around 20-22GB at zl17 via bing (usa area).. for instance.. +41-72 tile is around 22Gb.. while other nearby tiles might only be 8GB after conversion.. i think this is killing my load time into p3d (another issue).. any idea why some of these tiles are so huge and others are "normal" or perhaps depends on terrain.. however, the xp equivalent tiles folder with full textures for this area at same settings is only 5.5GB in size.. confused.

 

Share this post


Link to post
Share on other sites

Now getting this message suddenly.. unsure why (i'm running from the exe.. it was fine earlier, i think)..

ESP_build_dir is None inside of resample... something went wrong, so can't run resample

 

Nothing has physically really changed.. the path in the cfg file is valid too..

Has anyone ran into this?

 

Share this post


Link to post
Share on other sites
On 12/4/2018 at 6:04 PM, kjjj11223344 said:

The exe has been updated to include all of Oscar's latest fixes as well as the new fix which spawns resample minimized to the taskbar.

I'm coming to find that often the minimized command windows are still getting "stuck".. have to unminimize and tap space bar on each one a few times to get them going.. anyone else still having this issue?  This could also be why mine took 1hr45 for one esp creation one time and 2hr30min the next (no cpu usage when they get stuck like right now, 10 minutes after it started an esp job process)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now