• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Custom Tower Design

Messages
19
Hi,

do I have to care about special things when I want to create my own tower building?
I wonder how it is referenced within the XML file because with in the tower tag only the position is written, not the GUID.
Where can I find and modify it?

Regards,

Matthias
 
Messages
19
Hi,

I use 3dsmax 8 and the plugins shipped in the SDK. The technical airport was designed with the Airport Design Editor.
 
Last edited:

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
Country
netherlands
Hi Matthias,

The XML tower tag only deals with the frequency and tower view position stuff. It does not have any influence on the visual tower model. That will be placed with a ModelData and SceneryObject command like any other 3D object.
 
Messages
139
Country
netherlands
But the SceneryObject XML (containing the LibraryObject) tag is inside the Tower tag. For airports with multiple towers there are multiple Tower tags in the Airport section.

Yet you can't compile that kind of XML files your self, as the bglcomp.xsd specifies a MaxOccurs of 1 for the Tower tag.

To complicate this further, look at the tag for eham:

Code:
  <Tower
    lat="N52 18.44896"
    lon="E004 45.74750"
    alt="0.00M">
    <SceneryObject
      lat="N52 19.89108"
      lon="E004 43.08962"
      ...
      <LibraryObject
        name="..."
        scale="1.00"/>
    </SceneryObject>
  </Tower>

The coordinates of the tower and the scenery object are different. As result... when you cycle to the tower view, your view will be from the first coordinates. But when you use the Tower Controller option in multiplay... you will be placed at the location of the scenery object.

Daniel
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
Country
netherlands
Hi Daniel,

No, the SceneryObject and LibraryObject commands are not supposed to be inside the Tower command. As far as I know that is not valid. The Tower command has just lat/lon/alt attributes and that is all.

Depending on how the model is designed it could be that an offset is needed between the SceneryObject lat/lon and the Tower lat/lon. Although I think most designers would put the tower at the origin of their model to prevent this :).
 
Messages
139
Country
netherlands
Hi Arno,

It appears there are 3 truths here:

1 what is written in the SDK
2 what is specified in the bglcomp.xsd
3 what Microsoft/ACES are using

1: SDK

Tower: This element is used to place a tower location at an airport. This element is not allowed to contain other data (lat/lon/alt) and must be terminated with ‘/>’.

2: bglcomp.xsd:
Code:
  <xs:complexType name="ctTower">
    <xs:sequence>
      <xs:element name="SceneryObject" type="ctSceneryObject" minOccurs="0" maxOccurs="1" />
    </xs:sequence>
    <xs:attribute name="lat" form="unqualified" type="stLatitude" use="optional" />
    <xs:attribute name="lon" form="unqualified" type="stLongitude" use="optional" />
    <xs:attribute name="alt" form="unqualified" type="stAltitude" use="optional" />
  </xs:complexType>

3: Reversing the MS bgl's reveals multiple Tower objects in several airports, while bgclcomp.xsd specifies maxOccurs=1:

Code:
<xs:group name="grpAirportChildren">
    <xs:choice>
      <xs:element name="Tower" type="ctTower" minOccurs="0" maxOccurs="1" />

As you can see in my previous post, the first tower tag for EHAM contains an object and this is the main tower, yet the coordinates for the tower itself (not the libraryobject) are those of the satellite tower near the Polderbaan.

Daniel
 
Top