Jump to content
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

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.


i7 7700k, @ 4.6Ghz. GTX1070 8Gig. 32Gigs DDR4 2400. Win 10 pro. X-Plane 11.

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?


Dave Bolton

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
  • Donation Goals

    AVSIM's 2020 Fundraising Goal

    Donate to our annual general fundraising goal. This donation keeps our doors open and providing you service 24 x 7 x 365. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. We reset this goal every new year for the following year's goal.


    53%
    $13,405.00 of $25,000.00 Donate Now
×
×
  • Create New...