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

BGL from XML : witch GUI?

Messages
677
Country
ca-quebec
Hi,

I write a little javacsipt code that generate an xml code with random latitude, longitude and GUI. Then I compile the XML to generate a BGL file that put (or suppose to put...) a ship somewhere offshore of Bretagne.

My XML code look like this :

<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Created by Scenery Design Engine (SDE) on 2020-05-04 -->
<FSData
version="9.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="bglcomp.xsd">
<SceneryObject
lat="48.6046"
lon="-2.7999"
alt="0.0M"
altitudeIsAgl="TRUE"
pitch="0"
bank="0"
heading="4"
imageComplexity="NORMAL">
<LibraryObject
name="c0bbfb08c1ee4405977dd6f80273ff0d"
scale="1.00"
/>
</SceneryObject>
</FSData>

I check the ship GUI in MCX and by importing it in InstantScenery but I never have the same GUI.

The question : witch GUI I have to use in my code for the ship and from where I can find it ?

I work in FSX Steam.

Thanks.
 
Messages
677
Country
ca-quebec
Okay, I solved my problem to know if my XML code is valid or not. It is valid and when I compile it produces a BGL file. However...

When I arrive on the site where the object is supposed to be (in slew mode for the tests), I see nothing.

I then open InstantScenery and I only see the label of the object (but not the object itself). This confirms to me that my BGL file is valid and that the scene containing the object has been created.

I then open the scene that contains the object with InstantScenery and only there I finally see the object.

Why I do not see the object as soon as I arrive on the site? Is the bug can be caused by InstantScenery?

Thank you.
 
Top