The ‘modeldef.xml’ File

To enable special control of your models, several entries in the modeldef.xml file have to be made. Basically, an entry in modeldel.xml connects a model to internal FSX simulation variables, so called SimVars. SODE uses specific SimVars to accomplish some features.

The modeldef.xml file is located for example at:

C:\Program Files\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Modeling SDK\bin

Sample entries can be found in the file „SODE_modeldef_Entries.xml“. The contents of this file must be copy-pasted anywhere (preferably at the beginning) into the modeldef.xml file:

  1. Open that modeldef.xml with your editor of choice.
  2. Copy the contents of SODE_modeldef_Entries.xml
  3. Paste contents into modeldef.xml file AFTER the <ModelInfo> node!
  4. Save modeldef.xml
  5. Start gmax with FSX Gamepack.
  6. In the AnimationManager tool, you should see a “SimObject Design Engine” group offering the default animation tags. You may create your own by editing modeldef.xml

In order to maximize the use of the very limited amount of writeable SimVars, the different SODE output parameters are mapped onto the same SimVar using individual bits.

To retrieve the information out of the SimVar, you must mask the variable for the desired bits. Please see the example code provided to get an idea.

The following sections describe the special features and the used SimVar in detail.