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

Bugs in Modeldef.xml???

Messages
132
Country
england
I think I found the reason my 3D canvas exporter fails for some animations.
There seems to be a problem with the modeldef.xml file I have.

Here are a couple of the entries - NOTE the capitalization of the typeParam/typeParam2 attributes. My XML parser ignores the ones that are all lower case.

<Animation name="l_tire_blurred_key" guid="2c52a54a-9902-487a-a355-d00874ce7d0f" length="100" type="Sim" typeParam2="l_tire_blurred_key" typeParam="AutoPlay" />

<Animation name="door_0" guid="9B5ED86C-B114-4924-B5C9-163A99042F2F" length="100" type="Sim" typeparam2="door_0" typeparam="AutoPlay" />

This really isn't the way things should be done with XML - case is very important.
Can anyone else confirm the same entries in their modeldef.xml file?

The MS 3DS/gMax exporter obviously takes this into account but it could be a potential problem for writers of exporters for other 3D packages.
 
It is a case of inconsistency, but...

...as you've noted, the export .dll ACES supplies for Max/GMax isn't case sensitive, so such inconsistencies don't cause any issues for Max/GMax modelers.

I just examined my highly customized modeldef.xml and found ~40 instances of 'typeparam', all of which are frequently used animation tags, and none of which have ever caused a problem with an exported model.

While I had the file open however, I did take the few seconds required to perform a global search-and-replace just to restore consistency... :D
 
Last edited:
Strings/VarNames/FieldNames/Tags etc in XML are always case-insensitive, sounds more like a bug in the parser than in the XML file :->
 
Strings/VarNames/FieldNames/Tags etc in XML are always case-insensitive,

Sorry that statement is completely incorrect.

The XML standard is that tags and attirbutes are completely case sensitive.
The parser I'm using is microsofts own!

The fixed modeldef.xml has solved my door opening problem.

The practical problem is that I should probably change the exporter to take the inconsistent names into account or other users may hit the same problem.
 
Back
Top