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

GUID from GMAX

Messages
7
Country
australia
Greetings fellow designers.

Is the ModelData name that is in the XML file generated from GMAX a random number, or is it related to the model?

The reason I ask is that each time I re-export the same file from GMAX (with a few changes) it has a new "name". I am then cut/pasting this name into my main xml file which is then compiled with BGLCOMP.EXE. I would assume that as long as the libraryobjectname and the ModelData name in the XML are the same, then the name doesnt matter (as long as it is a 32 digit hex? number). Is this correct?

An example from an XML file from Gmax.........

<LibraryObject name="2FC867F7444A224384C4ED88FD42E6E0" scale="1.0" />

<ModelData name="2FC867F7444A224384C4ED88FD42E6E0" sourceFile="garden_shed.mdl" />

If I didnt have to change the name each time I re-exported this would save me so much time, as one of my models is a conditional model with 10 different models!

Jon
 
Hi Jon,

-Jon- said:
Is the ModelData name that is in the XML file generated from GMAX a random number, or is it related to the model?

It is generated random when you export. The ModelData command is used to link a certain MDL object to a GUID, so that you can later call that object with the GUID you have just assigned to it.

-Jon- said:
The reason I ask is that each time I re-export the same file from GMAX (with a few changes) it has a new "name". I am then cut/pasting this name into my main xml file which is then compiled with BGLCOMP.EXE. I would assume that as long as the libraryobjectname and the ModelData name in the XML are the same, then the name doesnt matter (as long as it is a 32 digit hex? number). Is this correct?

If you do not remove the XML file GMax created the first time, you will not get a new GUID everytime. But even if it does, it does not really matter. As long as you compile the XML file with the GUID that you use when you call the object, it should not work. There is no need to change the GUID everytime. Just keep using the same all the time.
 
Back
Top