Board index FlightGear Development Scenery

X-Plane Gateway  Topic is solved

Questions and discussion about enhancing and populating the FlightGear world.

Re: X-Plane Gateway

Postby Ivan-Pekar » Sun Oct 28, 2018 11:43 am

So, to clarify:

xDraconian wrote in Sat Oct 27, 2018 10:27 pm:you have terrain for USMM and USMU, but you don't have the airport definitions.

How do I get the airport definitions then?

WoodSTokk wrote in Sun Oct 28, 2018 1:14 am:If you have the btg file also incuded in the right xml file

What do you mean? Which is the right xml file?

Is it worth
pb321 wrote in Sat Oct 27, 2018 6:57 pm:uninstall and reinstall FlightGear
?


Thank you
Ivan-Pekar
 
Posts: 123
Joined: Thu Feb 15, 2018 5:57 pm

Re: X-Plane Gateway

Postby pb321 » Sun Oct 28, 2018 2:08 pm

No, don't uninstall and reinstall FlightGear. I apologize for making the suggestion. xDraconian and WoodSTokk are correct.
My last post is asking for their input on a proposed method for getting the airport definitions into your local copy of FlightGear. I have never tried it and don't know whether it will work and recommend waiting to hear from them.
You can always get the airports recommended on the X-plane Scenery Gateway and wait until the next FlightGear world scenery build.
pb321
 
Posts: 424
Joined: Sun Nov 27, 2016 5:08 pm
Version: 2020.4.0
OS: Windows 10 Pro

Re: X-Plane Gateway

Postby xDraconian » Sun Oct 28, 2018 6:50 pm

Ivan-Pekar wrote in Sun Oct 28, 2018 11:43 am:How do I get the airport definitions then?

If I understand correctly, you authored these airports within WED. If this is correct, then WED created an apt.dat file for each.

Yes, you want to merge these files into your apt.dat.gz file. Uncompress it, add your two airports, and then recompress it.

Make sure to merge without the apt.dat header (first two lines) and footer (last line).
Within the main apt.dat (the one containing all airports), ensure you merge below the header and above the footer.

Example:
Code: Select all
I
1000 Version - data cycle 2013.10, build 20131335, metadata AptXP1000, further modified by the FlightGear team (cf. <https://sourceforge.net/p/flightgear/fgmeta/ci/next/tree/changes-in-dat-files/apt.dat>).  Copyright © 2013, Robin A. Peel (robin@x-plane.com).   This data is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.  You should have received a copy of the GNU General Public License along with this program ("AptNavGNULicence.txt"); if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.

1     213 0 0 USMU Novy Urengoy
...

1     49 0 0 USMM Nadym
...

... {other airports}

99
xDraconian
 
Posts: 406
Joined: Sun Jan 21, 2018 6:53 am
Version: Git
OS: Linux Mint

Re: X-Plane Gateway

Postby Ivan-Pekar » Sun Oct 28, 2018 8:39 pm

Thank you pb321 and XDraconian. I'll try this and I'll report back later.


Thanks
Ivan-Pekar
 
Posts: 123
Joined: Thu Feb 15, 2018 5:57 pm

Re: X-Plane Gateway

Postby WoodSTokk » Mon Oct 29, 2018 4:15 am

Ivan-Pekar wrote in Sun Oct 28, 2018 11:43 am:
WoodSTokk wrote in Sun Oct 28, 2018 1:14 am:If you have the btg file also incuded in the right xml file

What do you mean? Which is the right xml file?

Every tile will be build from a stg file and a btg file (3d data).
In the case of LOWW, it is in '/Terrain/e010n40/e016n48/' in the tile 3220098.
There is a file named '3220098.stg'. This is a text file and the first two rows are:
Code: Select all
OBJECT_BASE 3220098.btg
OBJECT LOWW.btg

This means that this tile is based on the 3d date of the file 3220098.btg (you will find this file compressed as '3220098.btg.gz').
And the second line says that the file LOWW.btg (3d data of the airport, also compressed as 'LOWW.btg.gz') should also be loaded in this tile.

If you want include a new airport in the scenery, then you should find the right tile and add the second line in the right stg file, so that FG load the 3d airport data additionally to the tile data.
WoodSTokk
 
Posts: 1077
Joined: Tue Oct 17, 2017 3:30 pm
Location: Milky Way/Sol/Earth/Europe
Callsign: SX-W57
IRC name: WoodSTokk
Version: 2020.4.0
OS: Debian Bullseye

Re: X-Plane Gateway

Postby Ivan-Pekar » Mon Oct 29, 2018 5:53 pm

WoodSTokk, how do I know which tile number the airport is in?
Ivan-Pekar
 
Posts: 123
Joined: Thu Feb 15, 2018 5:57 pm

Re: X-Plane Gateway

Postby WoodSTokk » Mon Oct 29, 2018 7:12 pm

Ivan-Pekar wrote in Mon Oct 29, 2018 5:53 pm:WoodSTokk, how do I know which tile number the airport is in?

There is a wiki page: http://wiki.flightgear.org/Tile_Index_Scheme

EDIT:
have it now calculated by hand it should be e070n60/e072n65/4138713.stg
WoodSTokk
 
Posts: 1077
Joined: Tue Oct 17, 2017 3:30 pm
Location: Milky Way/Sol/Earth/Europe
Callsign: SX-W57
IRC name: WoodSTokk
Version: 2020.4.0
OS: Debian Bullseye

Re: X-Plane Gateway

Postby Ivan-Pekar » Tue Oct 30, 2018 2:08 pm

So, I opened the 4138713.stg file, and one the second line, I added:
OBJECT USMM.btg

Is this correct?

I'm not sure because I still couldn't fly from USMM when starting up FlightGear. I did fly past the airport, and only half of it was there.

Thanks
Last edited by Ivan-Pekar on Tue Oct 30, 2018 8:28 pm, edited 1 time in total.
Ivan-Pekar
 
Posts: 123
Joined: Thu Feb 15, 2018 5:57 pm

Re: X-Plane Gateway

Postby wkitty42 » Tue Oct 30, 2018 2:33 pm

does USMM.btg.gz exist in that directory?

remember, you cannot just add lines to add an airport without the additional work of rebuilding the scenery files and placing them in your scenery override directory so they can be used from there and not corrupt your default installation... objects can be added but airports are not objects...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9148
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: X-Plane Gateway

Postby Ivan-Pekar » Tue Oct 30, 2018 8:29 pm

Yes, USMM.btg.gz exists in that directory. Still 'No matches for USMM'.
Last edited by Ivan-Pekar on Wed Oct 31, 2018 12:54 pm, edited 1 time in total.
Ivan-Pekar
 
Posts: 123
Joined: Thu Feb 15, 2018 5:57 pm

Re: X-Plane Gateway

Postby wkitty42 » Wed Oct 31, 2018 1:31 am

is it listed in the apt.dat file? it may be apt.dat.gz which is compressed...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9148
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: X-Plane Gateway

Postby Ivan-Pekar » Wed Oct 31, 2018 12:57 pm

No, it's not compressed. It's just apt.dat.
Ivan-Pekar
 
Posts: 123
Joined: Thu Feb 15, 2018 5:57 pm

Re: X-Plane Gateway

Postby pb321 » Thu Nov 01, 2018 4:00 am

Do you have a boundary included in the WED file for yo ur USMM airport? If not, it might explain why you could only see half the airport on a flyover. Ground is flattened within the boundary.
Using the Web Airport Generator may be a factor but my limited experience indicates you should see more than half the airport.
pb321
 
Posts: 424
Joined: Sun Nov 27, 2016 5:08 pm
Version: 2020.4.0
OS: Windows 10 Pro

Re: X-Plane Gateway

Postby Ivan-Pekar » Thu Nov 01, 2018 6:11 pm

I did include a boundary, but I didn't use 'Always flatten'. I'll try again and report. But that's not the main issues, I'll sort out the aesthetics later. I'm concerned why the airport isn't found by FlightGear when starting up (I therefore cannot program routes to USMM).

Thnaks
Ivan-Pekar
 
Posts: 123
Joined: Thu Feb 15, 2018 5:57 pm

Re: X-Plane Gateway

Postby WoodSTokk » Thu Nov 01, 2018 10:24 pm

Ivan-Pekar wrote in Tue Oct 30, 2018 8:29 pm:Yes, USMM.btg.gz exists in that directory. Still 'No matches for USMM'.

The match for USMM comes from the apt.dat.gz
I have try it now and included the following line in apt.dat.gz
Code: Select all
1     49 0 0 USMM Nadym

With only this line, FG crashs on start (klick 'Fly!').
I have then added a fake line (for runway) in apt.dat.gz. Now i have
Code: Select all
1     49 0 0 USMM Nadym
100   49.99   3   0 0.00 0 0 0 4    65.82035834  72.09018573    0.00    0.00 1  0 0 0 22   65.83043466  72.10486817    0.00    0.00 1  0 0 0

and the launcher will find USMM. I can also input USMM in the routemanager and USMM is visible on the map.
This means, the data in apt.dat.gz will be taken from launcher and routemanager.
To see the 3d model of the airport, you need to update the btg and stg files.

And i'm cofused why your apt.dat are not compressed.
To edit the file, i have
1) taken a copy for backup
2) unzip the file (gzip -d apt.dat.gz)
3) edit the apt.dat file
4) zipped the file (gzip apt.dat)
and the launcher was happy.
WoodSTokk
 
Posts: 1077
Joined: Tue Oct 17, 2017 3:30 pm
Location: Milky Way/Sol/Earth/Europe
Callsign: SX-W57
IRC name: WoodSTokk
Version: 2020.4.0
OS: Debian Bullseye

PreviousNext

Return to Scenery

Who is online

Users browsing this forum: No registered users and 4 guests