• 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 "Failed to find a valid container" error when compiling simobject

Messages
57
Country
china
Hi all,
I been trying to create an animated flag with simobject. However, when trying to complie it, it fails to find my sim.cfg file. The sim.cfg should be placed in the right folder, but the sim just can't find it.
This is the error message:
1616986509216.png

This is the file structure:
1616987503819.png

Inside the model folder:
1616987551366.png

Inside the texture folder:
1616987571420.png

Content of sim.cfg:
[fltsim.0]
title=zshc_flag_chinese
model=""
texture=""

[General]
category=StaticObject
DistanceToNotAnimate=2000

[Surface]
IgnoreObjectsCollision=1

Content of model.cfg:
[models]
normal=zshc_flag_chinese.xml

Content of the XML file:
<?xml version="1.0" encoding="utf-8" ?>
<ModelInfo version="1.1" guid="{07f649cb-b8af-405c-5ddb-2c1bcc524b53}">
<LODS>
<LOD MinSize="0" ModelFile="zshc_flag_chinese.gltf"/>
<LODS>
<Animation guid="847adaf3-4b73-4237-9e3b-4d193e85e8e7" name="weave" type="standard" typeParam="Autoplay" />
<Animation guid="60da20ff-a320-44d2-8e51-7abc7cb4e500" name="pole_rotation" length="360" type="Sim" type="standard" typeParam="Autoplay" typeParam2="pole_rotation"/>
<PartInfo>
<name>pole_rotation</name>
<animLength>360</animLength>
<Animation>
<Parameter>
<Code>(A:AMBIENT WIND DIRECTION, Degrees) </code>
</Parameter>
</Animation>
</PartInfo>
</ModelInfo>

Content of texture.cfg:
[fltsim]
fallback.1=..\..\..\..\scenery\global\scenery\TEXTURE

Content of project definition:
<AssetPackage Name="zshc-simobject" Version="0.1.0">
<ItemSettings>
<ContentType>UNKNOWN</ContentType>
<Title>zshc-simobject</Title>
<Manufacturer>Hanzhi Liu</Manufacturer>
<Creator>Hanzhi Liu</Creator>
</ItemSettings>
<Flags>
<VisibleInStore>false</VisibleInStore>
<CanBeReferenced>false</CanBeReferenced>
</Flags>
<AssetGroups>
<AssetGroup Name="ContentInfo">
<Type>ContentInfo</Type>
<Flags>
<FSXCompatibility>false</FSXCompatibility>
</Flags>
<AssetDir>PackageDefinitions\zshc-simobject\ContentInfo\</AssetDir>
<OutputDir>ContentInfo\zshc-simobject\</OutputDir>
</AssetGroup>
<AssetGroup Name="SimObject">
<Type>SimObject</Type>
<Flags>
<FSXCompatibility>false</FSXCompatibility>
</Flags>
<AssetDir>PackageSources\SimObjects\Landmarks\zshc_flag_chinese</AssetDir>
<OutputDir>SimObjects\Landmarks\zshc_flag_chinese</OutputDir>
</AssetGroup>
</AssetGroups>
</AssetPackage>

Thanks in advance!
 
I've solved the issue. What I did wrong was that I named the folder "zshc_flag_chinese", although my package is called "zshc_SimObjects". After changing the name of my package to "zshc_flag_chinese" everything worked!
 
Back
Top