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

FSX Compile by using short cut

jtanabodee

Resource contributor
Messages
3,924
Country
thailand
Hi Folks,

Smart guys please pass this away, here is just for dump guys like me.
Gmax give us MDL file when export the model or animation. On the other way, bigger and better brother,3dsmax , does not give us mdl. It give us Xfile and Xanim file separately. We need to take XtoMdl.exe to get MDL.
You can use drag and drop for the model without animation. But with animation you need to do it by command line.
Please understand that I'm the dumpiest man in the world of computer. Command line in the computer is always a nightmare for me. According to this Wiki , I have tried so many time to copy, paste and do many things to have that marvelous short cut to my desktop. I was too dump to understand what was well written in the Wiki.

Today I tried another attempt and I got it!
So I would like to share the method by a mini picture tutorial to guide you to do this short cut to help compiling the X file that you get when you export your model from 3dsmax.
First of all, please make new folder in Drive C: or Drive D: and name it as FSX_SDK. Then copy this folder into the new one that you just made. Please use "copy" so that all the paths that you have set to many programs such as ADE, SbuilderX will not get mad at you.
It will make your life easier than the default one. The path is too long more than 256 letters is not accepted by this method.




1.Click anywhere on your desktop
2.Click on "New" Short Cut as figure.



3.It will pop out a wizard to help you create Short Cut. Please browse until you find XtoMdl.exe.(4)



4.When you find it click on OK (5) and the shortcut name will be XtoMdl.exe. You can change the name to SceneryCompile or anything you want (6).





5.Now it is time to modify the short cut. Click on the shortcut that you just made and click on property. According to the Wiki the command line should be.
%windir%\system32\cmd.exe /K E:"\FSX_SDK\SDK\Environment Kit\Modeling SDK\3DSM7\Plugins\xtomdl.exe" /DICT:E:"\FSX_SDK\SDK\Environment Kit\Modeling SDK\bin\modeldef.XML" /XMLSAMPLE > buildlog.txt

Put the bold text into the Target just in front of the text that we already have. Like this following picture. The letters on red line are what I just put to. Then the quotation mark is not in the right place. In this picture the " mark is before the C: I need to put it behind C: C: is your hard drive. So it may be D: in your computer.



Now this is what it is.


6. Now you have to put the letter on what I quote that is undeline to the Target just behind '..........XtoMdl.exe". I put only /XMLSAMPLE > buildlog.txt to it. Not exactly like in Wiki but it works. The command line cannot be longer than 256 characters. You cannot use default SDK folder, you need to move the SDK folder to the new one just like I said on the first paragraph.

7. Now go to click on MyComputer on desktop and go to C:\Documents and Settings\**your user name** , you will get this folder. Change the folder option to show hidden files. You will see "SendTo" folder. Put your new short cut there.



8. Now go to your X.file and then right click, then go to send to. You will see the option of your short cut there. Click on it you will get your MDL instantly.



Sorry if you think this is just simple but not all of us are computer guys. Reading in Wiki only does not make me understand. Picture tutorial does help a lot.
 
Last edited:
For animation, you need to tag your animation first with animation manager. Please see this thread and look at #12 reply. I summarized it in one photo.
Then you export your model with animation and check on Export Animation Box too while exporting.
You will get two file X and Xanim file.
Now you want to compile to get mdl file.

Do the same thing previously said and add something more.
%windir%\system32\cmd.exe /K E:"\FSX_SDK\SDK\Environment Kit\Modeling SDK\3DSM7\Plugins\xtomdl.exe" /XANIM /DICT:E:"\FSX_SDK\SDK\Environment Kit\Modeling SDK\bin\modeldef.XML" > buildlog.txt

Now you have to replace the whole text from behing ....\xtomdl.exe" to the red text on the upper quote. And do the process of Send To in the same way as previously mention. Name this Short Cut as "Animation Compile" or anything you want.

Click on X file that has accompany Xanim file, then sent to this short cut. Now you will get mdl file that contains animation.
 
Last edited:
Thanks! Although I wrote the original Wiki article and used only text, providing the pictures surely will help make things more clear to readers.

Now you also understand just why I so highly recommend installing the SDK to a custom, short path* instead of using the default! There are just too many characters to fit into the available command sequence!!!

* Such as: C:\FSX_SDK
 
Thanks, I will try though as you say I am not a computer ace, sometimes the compiler process became too much repetitive.
 
Thanks! Although I wrote the original Wiki article and used only text, providing the pictures surely will help make things more clear to readers.

Now you also understand just why I so highly recommend installing the SDK to a custom, short path* instead of using the default! There are just too many characters to fit into the available command sequence!!!

* Such as: C:\FSX_SDK

Thanks for your original Wiki, Bill.
So, I will add something more.
MOVE...fsx_sdk before doing anything.....ha ha ha..
 
Back
Top