• 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.

Altitude Error in XML?

Messages
180
Country
us-california
Hey everyone, here is my code for an object im working on.......(so the project can remain secret, I have taken out the Lat and Long coordinates).

<?xml version="1.0" encoding="ISO-8859-1"?>
<FSData version="9.0" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation="bglcomp.xsd">

<SceneryObject lat="32 41.8996" lon="-16 46.4351" alt="191" pitch="0" bank="0" heading="044" AltitudeIsAgl="FALSE" imageComplexity="NORMAL">

<LibraryObject name="0B84F14011D9D2D105008C8F7848001B" scale="1.0" />

</SceneryObject>

<ModelData name="0B84F14011D9D2D105008C8F7848001B" sourceFile="platformbeta.mdl" />
</FSData>

When I goto compile this xml file, the BGL COMP states that AltitudeIsAgl="False" is an invalid attribute. Everything else checks out though. The bold is the only thing that is changed (other than the heading and coordinates) from the original export from gmax. So...how do I fix this? Weird thing is, when I did it the first time, the platform was 191' above the ground. Then when I changed the AltitudeIsAgl="True" It said that was wrong too.

David Biggar
david.biggar@gmail.com
 
Try this one:
<SceneryObject lat="32 41.8996" lon="-16 46.4351" alt="0" pitch="0" bank="0" heading="044" AltitudeIsAgl="True" imageComplexity="NORMAL">
Thing is, if you say, altitude is above ground level (AltitudeIsAgl="True"), and altitude is 0 (alt="0"), it will be on ground, right?
 
Last edited:
Hi David

altitudeIsAgl="FALSE"

The first letter of the command is small-case... not CAPITALIZED.

XML is case-sensitive.

:)

Dick
 
Oopps, spoke to soon. The BGL Comp now actually compiles the file but the platform is 191 feet above the ground. However, the code says altitudeIsAgl="False". What could be going wrong?

David
 
Hi David,

Could it be that the 191 is seen as meters by BGLComp and that it is now 141 meter above sea level and circa 191 feet above the ground?

Try to put a F behind your altitude so that you force BGLComp to see it as feet.
 
Back
Top