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

MSFS20 CGL error while building package

Messages
153
Country
czechrepublic
Hi, Im trying to do my first custom CGL, however when I want to build the package Im getting error as seen in the picture and I have no idea what it means. Tried to google it but no luck. For some time the samples are not included in the SDK hence the documentation is still not updated. Am I missing something?

Thanks for help

PackageBuilder | Done, 5 asset groups registered.
PackageBuilder | No partial lister for asset type CGL
PackageBuilder | Partial build : nothing to do
PackageBuilder | Done, 5 asset groups registered.
PackageBuilder | Failed to find asset group for file H:\My FS2020 Projects\LKKEJZ Projekt\kejzlice-slz\PACKAGESOURCES\CGLS\1202123213110210133.PNG
PackageBuilder | Partial build : nothing to do
PackageBuilder | Reading H:\My FS2020 Projects\LKKEJZ Projekt\kejzlice-slz\kejzlice-slz.xml…
PackageBuilder | Preparing asset groups…
PackageBuilder | Done, 5 asset groups registered.
PackageBuilder | Generating commands for package fidel-airport-lkkej-kejzlice-slz…
PackageBuilder | Preparing commands for asset group lkkej-cgl…
PackageBuilder | Preparing commands for asset group ContentInfo…
PackageBuilder | Preparing commands for asset group scenery…
PackageBuilder | Preparing commands for asset group lkkej-modellib…
PackageBuilder | Ready, 6 commands added.
PackageBuilder | Starting the build…
PackageBuilder | Building assets for the package fidel-airport-lkkej-kejzlice-slz…
Compiling CGL file(s)
CGLCompiler | No CGL builder descriptor XML found in H
PackageBuilder | Skip mirroring due to command failures.
PackageBuilder | Skip generation of package information due to command failures.
PackageBuilder | Reloading assets for the package fidel-airport-lkkej-kejzlice-slz…
PackageBuilder | Finished, 6 skipped, 0 done and 1 failed, took 24s746ms.

Failed:
fidel-airport-lkkej-kejzlice-slz/lkkej-cgl - Command class AssetBuilder::CGLCompilerCommand_G

fb43c1135d2ecdb839725c13412ff2ec234e8fa1.jpeg
 
Last edited:
OK, I got it built. The folder structure (created by the sim) and missing file from SDK samples was the issue. However, not the only one :)

I got the package built but the custom aerial image is not showing up in the sim. I dont know why. Tried my best. If anyone is willing to lend a help and have a look at my project I attach link bellow.

Help is much appreciated.

Thank you
 
Last edited:
in PackageDefinitions.xml I renamed these lines

<AssetDir>PackageSources\CGLs\</AssetDir>
<OutputDir>CGLs\</OutputDir>
</AssetGroup>

<AssetDir>PackageSources\aerial\</AssetDir>
<OutputDir>CGL\</OutputDir>
</AssetGroup

in the folder PackageSources / CGLs rename folder for PackageSources / aerial
in the folder PackageSources / CGLaerial_images rename for PackageSources / aerial

in CGLBuilderConfig.xml rename
<CGL type="SecondaryAerialImage" input="Tiles" directory="aerial_images"/>
for
<CGL type="SecondaryAerialImage" input="Tiles" directory="aerial"/>

I think it worked.
hope it helped you.
 

Attachments

  • Captura de tela 2022-07-30 085104.png
    Captura de tela 2022-07-30 085104.png
    1.5 MB · Views: 324
  • Captura de tela 2022-07-30 085607.png
    Captura de tela 2022-07-30 085607.png
    50.8 KB · Views: 347
in PackageDefinitions.xml I renamed these lines

<AssetDir>PackageSources\CGLs\</AssetDir>
<OutputDir>CGLs\</OutputDir>
</AssetGroup>

<AssetDir>PackageSources\aerial\</AssetDir>
<OutputDir>CGL\</OutputDir>
</AssetGroup

in the folder PackageSources / CGLs rename folder for PackageSources / aerial
in the folder PackageSources / CGLaerial_images rename for PackageSources / aerial

in CGLBuilderConfig.xml rename
<CGL type="SecondaryAerialImage" input="Tiles" directory="aerial_images"/>
for
<CGL type="SecondaryAerialImage" input="Tiles" directory="aerial"/>

I think it worked.
hope it helped you.
That worked! Thank you very much.
 
Hello,
Im sorry, Im struggling again with custom CGL. Im unable to get it to the sim. It builds without any errors and I believe everything is OK on my side. But when I move the package to Community folder it just wont show up in the sim.

If anybody is interested to help. I Attach the project, its just s simple aerial of LKSZ.
 
The tiles are wrongly named for that location. I don't know the process you used to create them.
 
Used QGIS an tiles2bing. Followed this tutorial.
Where can I find the number it should have?
 
Last edited:
That's not the best way to obtain the tiles. If you can get a Geotiff image of the airport (EPSG:3857) WGS 84 Pseudo-Mercator.
Linked is a zip file with the goods. Just run the BAT file to generate the aerial-images. The TIF is a geotiff trimmed with Paint.net. Paint.net retains the geotiff data on saving.
https://drive.google.com/file/d/1tbD2pX38YFRKViOhsIQJ52Zz37j6B5R8/view?usp=sharing
The geotiff was made with QGIS.
 
Wow, thank you for giving it a try. A came back because I got the same issue and your .bat just works fine. With the same input tiles it generates correct coordinates. But if I do it in cmd it just doesnt. I dont get it.
 
in PackageDefinitions.xml I renamed these lines

<AssetDir>PackageSources\CGLs\</AssetDir>
<OutputDir>CGLs\</OutputDir>
</AssetGroup>

<AssetDir>PackageSources\aerial\</AssetDir>
<OutputDir>CGL\</OutputDir>
</AssetGroup

in the folder PackageSources / CGLs rename folder for PackageSources / aerial
in the folder PackageSources / CGLaerial_images rename for PackageSources / aerial

in CGLBuilderConfig.xml rename
<CGL type="SecondaryAerialImage" input="Tiles" directory="aerial_images"/>
for
<CGL type="SecondaryAerialImage" input="Tiles" directory="aerial"/>

I think it worked.
hope it helped you.
Hello ! I'm a really average developer, and I'm trying to get an aerial image out.

I saw the explanations, but I'm having a little trouble understanding what to do in the SimpleAerial\PackageDefinitions\mycompany-aerial.xml file.

If anyone can give me a hand, I'd be grateful !

Regards,
Marc
 
That xml file controls what gets compiled. What part is a problem for you?
 
Ce fichier xml contrôle ce qui est compilé. Quelle partie est un problème pour vous ?
Hello ! I'm having a hard time understanding how to output aerial imagery. You with console errors.
What I can't figure out is how do I point output to CGL? I build the file?
It then tells me that I don't have PACKAGEDEFINITIONS\SCENERYBUILD-AIRPORT-US512-DREUX-LOUVILLIERS-AERIAL.XML
I thought this is done when I complete a new project
 

Attachments

Show us this: SCENERYBUILD-AIRPORT-US512-DREUX-LOUVILLIERS-AERIAL.XML
 
You could try this:
XML:
<?xml version="1.0" encoding="utf-8"?>
<AssetPackage Version="0.1.0">
    <ItemSettings>
        <ContentType>SCENERY</ContentType>
        <Title>US512</Title>
        <Manufacturer/>
        <Creator>Marc Roujansky</Creator>
    </ItemSettings>
    <Flags>
        <VisibleInStore>false</VisibleInStore>
        <CanBeReferenced>false</CanBeReferenced>
    </Flags>
    <AssetGroups>
        <AssetGroup Name="ContentInfo">
            <Type>ContentInfo</Type>
            <Flags>
                <FSXCompatibility>false</FSXCompatibility>
            </Flags>
            <AssetDir>PackageDefinitions\scenerybuild-airport-us512-dreux-louvilliers-aerial\ContentInfo</AssetDir>
            <OutputDir>ContentInfo\scenerybuild-airport-us512-dreux-louvilliers-aerial</OutputDir>
        </AssetGroup>
        <AssetGroup Name="scenery">
            <Type>CGL</Type>
            <Flags>
                <FSXCompatibility>false</FSXCompatibility>
            </Flags>
            <AssetDir>PackageSources\Scenery\airport-us512-dreux-louvilliers-aerial\scenery\</AssetDir>
            <OutputDir>CGL\</OutputDir>
        </AssetGroup>
    </AssetGroups>
</AssetPackage>

The compiler is telling you your OutputDir must start with CGL. You could use <OutputDir>CGL\Scenery\airport-us512-dreux-louvilliers-aerial\scenery\</OutputDir> , but it doesn't need to be in a folder with such a long name. Just CGL\ is fine.
 
Hello ! By wanting to make it complicated I had only setbacks ! By putting the project back in devmode, and not touching anything, this one compiled the project without the slightest worry !

I wanted to thank you for your help ! Thank you so much
 
Good morning, when I arrive at the airport, my CGL in the distance shows up as white as a patch. As I get closer, it disappears and the CGL becomes better as it should be. Any help on this?
 

Attachments

  • WhatsApp Image 2023-07-23 at 09.47.47.jpeg
    WhatsApp Image 2023-07-23 at 09.47.47.jpeg
    258.4 KB · Views: 294
  • WhatsApp Image 2023-07-23 at 11.05.31.jpeg
    WhatsApp Image 2023-07-23 at 11.05.31.jpeg
    237 KB · Views: 302
Back
Top