The download hangar is currently disabled. We're doing our best to bring it back as soon as possible.

Drew's LOD compilation method

Discussion, tutorials,hints and tips relating to designing military ai aircraft.
Post Reply
User avatar
Dark Morelia
Captain
Captain
Posts: 248
Joined: 15 Feb 2007, 04:02
Version: FS9
Location: Hervey Bay, Australia
Contact:

Drew's LOD compilation method

Post by Dark Morelia »

I thought I'd share my LOD compilation method with you all, in the hope it proves useful to someone :lol:
Instead of using the buggy and ultra-slow make aircraft button in FSDS, I export each LOD to an individual x file, then compile them manually with MakeMDL.
I find this quicker, plus it also allows you far more control over the process. It's also much easier when you just want to make a change to a single LOD!

To start with, you'll need to have built an AI model, and also built the LODs for it. This is how I name my models within FSDS:
Image

Next you'll need to make yourself a new folder to export your LOD files to, something similar to this: (except your new folder will be empty)
Image

Export each model to it's appropriately named LOD x file:
Image

Now open MadeMDL and select as the Input File any one of your exported x files sitting in that folder you made, and the Output File should point to the mdl you want to create or overwrite:
Image

If you select the LOD tab in MakeMDL, you'll see that it automatically adds every x file in the folder, assuming they're named correctly:
Image

Now all you need to do is click Start, and your model with all LODs will be compiled :)

I'm not entirely sure I use the correct settings in MakeMDL, but for what it's worth, this is how mine are set:
Image

Now, once you have all that down pat, you may well want to make the process a tad faster. This is easily done by creating a batch file, which is really just a simple notepad text file with a .bat extension instead of .txt.
To make a completely automatic MakeMDL compiling bat file, paste the following code into a txt file and save it as, for example, "example.bat"
start "Makemdl Batch" "MAKEMDL PATH HERE" /BATCH /OUT:"OUTPUT PATH HERE" "INPUT PATH HERE"
The coloured parts are what you'll need to change for your particular project, as everyone's systems will likely have a different file path. Take care to put each path inside the quotation marks.
The red one should read something along the lines of C:\Program Files\FS9 SDK\MakeMDL_SDK\makemdl.exe
The green one D:\Flight Simulator 9\Aircraft\GAI DHC-4A Caribou\model\GAI_Caribou.mdl
And the blue one C:\Program Files\Abacus\FSDS_V3.5\Projects\Caribou\LODs\LOD_400.x
If you realise you've buggered it up after you've saved it already, right click on the bat file and click edit, this will open it in notepad again for you to edit.
Once you have the paths filled in correctly, and the bat file saved, all you need to do is double click it, and it will compile your model, complete with your LODs, and close itself. Nifty, huh? :D
This is brilliantly fast for experimenting with xml code - just edit your xml, hit the batch file, then restart your flight in fs to see the changes :wink:

There you go, thats how I compile an AI model with LODs. :wink:
Attachments
Example.zip
Example batch file
(187 Bytes) Downloaded 31 times
Drew >>

Image
sprocky
Major
Major
Posts: 765
Joined: 26 Feb 2007, 09:33
Version: FS9
Location: 40kms west of EDHI (Airbus)

Re: Drew's LOD compilation method

Post by sprocky »

Not sure if this is helpful to me. Have not gotten so far (yet) :wink: When I have reached this point I'll let ya know
Jan
Former technician in MFG2 at ETME (home base of PANAVIA The flying computer TORNADO. sadly closed now)
Post Reply