Sign in to follow this  
exodus1977

Ortho4XP: how to not flatten any airports

Recommended Posts

I know that you can designate airports in the .cfg file that you don't want to flatten--but it has to be a list of every individual airport. You have to name each one by the ICAO code. Is there a way to just not flatten any airports at all? Alternatively, Is there a way I can cut and paste every airport code in the cfg file?

Share this post


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

I'm sure there is probably an easier way, but you can remove airport flattening completely by editing Ortho4XP.py (or Ortho4XP_development.py)

 

Find the line around 522 or so which reads:

if (wayid in dicosmw_icao):
    if (dicosmw_icao[wayid] in sloped_airports_list) or (dicosmw_icao[wayid] in do_not_flatten_these_list):
        print("          I will not flatten "+dicosmw_icao[wayid]+ " airport.")
        keep_that_one=False
               

back up the old file, and then just replace it with

keep_that_one = False

If you know Python, it would be easy enough to add a new variable into the config file to turn it on and off completely easily. I'll submit a patch to Oscar for doing so.

Share this post


Link to post
Share on other sites

 

I must be doing something wrong because my whole computer is crashing while the tiles get built. Am i suppose to delete the lines or delete the "if keep_that_one==True:" Bit underneath?

Any help is appreciated!

Share this post


Link to post
Share on other sites

Tony, wouldn't it be easier to change: 

keep_that_one=False

to 

keep_that_one=True

Then the airport list is exclusive, not inclusive. By that I mean that the airports in the list will get flattened, all the others not.

Share this post


Link to post
Share on other sites
On 2/3/2017 at 7:48 AM, tonywob said:

I'm sure there is probably an easier way, but you can remove airport flattening completely by editing Ortho4XP.py (or Ortho4XP_development.py)

 

Find the line around 522 or so which reads:


if (wayid in dicosmw_icao):
    if (dicosmw_icao[wayid] in sloped_airports_list) or (dicosmw_icao[wayid] in do_not_flatten_these_list):
        print("          I will not flatten "+dicosmw_icao[wayid]+ " airport.")
        keep_that_one=False
               

back up the old file, and then just replace it with


keep_that_one = False

If you know Python, it would be easy enough to add a new variable into the config file to turn it on and off completely easily. I'll submit a patch to Oscar for doing so.

Hi,

I am not exactly understanding whats changing....is it the space between "one=False"?

 

Thanks.

Share this post


Link to post
Share on other sites

No everything above the "keep_that_one = False" line is removed, I think.

The space around the = sign is just meaningless whitespace

Share this post


Link to post
Share on other sites

Did anyone make this work and if so how? I tried removing the offending lines and regenerating a tile I'm familiar with but the runway contours are not what I'd expect. Any further guidance would be appreciated.

Share this post


Link to post
Share on other sites
On 2017-3-28 at 8:55 PM, propsfan said:

Did anyone make this work and if so how? I tried removing the offending lines and regenerating a tile I'm familiar with but the runway contours are not what I'd expect. Any further guidance would be appreciated.

Anyone?

Share this post


Link to post
Share on other sites

I would also be interested to know if we are able to have the contoured runways back in Ortho tile areas?

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
Sign in to follow this