
Microsoft Flight Simulator 2002 SDK MakeMDL
"BaseTexture.bmp";
}
XML XFile extensions
MakeMDL understands the following XFile template that is used to enable new features
that create attachpoints (with the potential to attach other objects), suppress crash on
portions of models, and add platforms to models. These extensions are only for scenery
objects and will not operate on aircraft. Attributes are applied on a per-part basis and are
automatically generated when using the AttachToolGmax.ms script available in the
GMax AttachTool SDK. The following reference can be used to create extensions to
other tools that output .X files for Flight Simulator:
template PartData {
<79B183BA-7E70-44d1-914A-23B304CA91E5>
DWORD nByteCount;
array BYTE XMLData[ nByteCount ];
}
PartData {
141;
60, 63, 120, 109, 108, 32, 118, 101, 114, 115,
105, 111, 110, 61, 34, 49, 46, 48, 34, 32,
101, 110, 99, 111, 100, 105, 110, 103, 61, 34,
73, 83, 79, 45, 56, 56, 53, 57, 45, 49,
34, 63, 62, 32, 60, 70, 83, 77, 65, 75,
69, 77, 68, 76, 68, 65, 84, 65, 32, 118,
101, 114, 115, 105, 111, 110, 61, 34, 57, 46,
48, 34, 62, 60, 65, 84, 84, 65, 67, 72,
80, 79, 73, 78, 84, 32, 110, 97, 109, 101,
61, 34, 97, 116, 116, 97, 99, 104, 112, 116,
95, 98, 101, 97, 99, 111, 110, 34, 62, 32,
60, 47, 65, 84, 84, 65, 67, 72, 80, 79,
73, 78, 84, 62, 60, 47, 70, 83, 77, 65,
75, 69, 77, 68, 76, 68, 65, 84, 65, 62, 0;
} // End PartData
This extension is a binary encoding of the following XML (an attach point named
‘attachpt_beacon’):
<?xml version="1.0" encoding="ISO-8859-1"?> <FSMakeMdlData
version="9.0"><Attachpoint name="attachpt_beacon">
</Attachpoint></FSMakeMdlData>
The following is a sample representation of the available XML structure. A brief
description of how these elements operate follows. See the BGLComp SDK for more
information about using XML in Flight Simulator:
<?xml version=”1.0” encoding=”ISO-8859-1”?>
<FSMakeMdlData version=”9.0”>
<!-- turn off crash for a part -->
<NoCrash/>
<!-- specify that this part is a platform and define surface type -->
<platformName=”PlatformName” surfaceType=”CONCRETE” />
<!-- specify that this part is an attach point. -->
<!-- Note: The geometry for this part will not be exported -->
© 2002 Microsoft Corporation. All rights reserved. Page 24 of 25