Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
Help With GMAX Exporting (Read 318 times)
Oct 2nd, 2004 at 9:41am

andyjohnston.net   Offline
Colonel
Good Grief!

Posts: 59
*****
 
Would some kind soul be able to give a quick step-by-step as to how I export a completed gmax object to a bgl?

I get a mdl and xml file, but I have know idea what to do from there.

It must be something simple but I just can't seem to figure it out.
 
IP Logged
 
Reply #1 - Oct 2nd, 2004 at 12:33pm

Travis   Offline
Colonel
Cannot find REALITY.SYS.
Universe halted.
Dripping Springs, TX

Gender: male
Posts: 4515
*****
 
Well, if you have an mdl file, you're done! Grin

I'm gonna explain how to get it into FS, in case you don't already know.  I'll go over most everything, since I don't know what you already have learned!

Just take a look at the setup of other FS aircraft folders.  Inside each folder (the default b737_400, for example) you'll find some other folders:

model
sound
panel
texture (several of these, labled with numbers)

And two other files:

aircraft.cfg
Boeing737-400.air

These are the basics for the aircraft folder.  There are other files which you can add in, but they are unimportant.

Take a look in the "model" folder.  You should see this:

B737_400.mdl ------> the *.mdl file that gmax creates
model.cfg ------> the configuration file that tells FS what to do with the model file.

For making your own aircraft, try this:

Create a new folder in the "aircraft" folder of FS.  Name it something similar to your plane.

Create the list of folders inside it, just like it is listed above.

Here's the tricky part: you'll need an airfile and aircraft.cfg file, but since you created your own aircraft, there isn't going to be one in the FS files that exactly matches your model (this is important).  So go find an aircraft of about the same size, weight, etc and copy the "aircraft.cfg" file and the airfile (the one with *.air at the end) and paste them into your new folder along with the model folder, etc.

To make them unique to your aircraft, open up the aircraft.cfg (with notepad) and check out the first section.  From the 737-400:

Quote:
[fltsim.0]
title=Boeing 737-400

sim=Boeing737-400

model=
panel=
sound=
texture=
kb_checklists=Boeing737-400_check ------> DELETE THIS INFO
kb_reference=Boeing737-400_ref ------> DELETE THIS INFO
atc_id=N737Z
atc_airline=American Pacific
atc_flight_number=1123
ui_manufacturer=Boeing

ui_type="737-400"

ui_variation="American Pacific Airways"

description="One should hardly be surprised that the world's most prolific manufacturer of commercial aircraft is also the producer of the world's most popular jetliner. The 737 became the best-selling commercial jetliner worldwide when orders for it hit 1,831 in June 1987 (surpassing Boeing's own 727 as the previous champ). However, it wasn't always that way\s in the first few years of production, there were so few orders that Boeing considered canceling the program. They didn't, and the airplane has more than proven itself in over three decades of service." ------> DELETE THIS INFO


Everything in red above must be changed.

Title= Change this to something you want your aircraft to be known as in FS.

sim= This is the name of the airfile in the folder.  Don't alter this just yet, we'll come back to it.

ui_manufacturer= This is how FS displays its categories.  Type in an existing one, or just make one up.  This is the name you will search for in FS when you want to fly this aircraft.

ui_type= Same as above, just the next step down.

ui_variation= Again, same as above, just the variation type.

We're almost done! Cheesy

Now save and close that file.

Click on the airfile that is in the same folder.  Change the name to something close to what your aircraft is called.

Okay, this is the important part: go into the aircraft.cfg and change the line that we skipped before (sim=) to the same name as the airfile.  If your airfile is named bogey.air, then the line should read:

sim=bogey

That's it!  Just save and exit and you should be able to see your aircraft in FS! Wink

But there is more to it.  Since your aircraft is entirely different from the one you copied the airfile and aircraft.cfg from, you will have to edit the aircraft.cfg to fit.  I'll cover this once you've gotten through the steps above.

Good Luck! 8)
 

...
IP Logged
 
Reply #2 - Oct 2nd, 2004 at 3:20pm

andyjohnston.net   Offline
Colonel
Good Grief!

Posts: 59
*****
 
See that's the whole problem.  I use FSDS2 for my aircraft, and I'm more than happy to stick with that.  I'm trying to use Gmax for *scenery,* and when I export I have the option to export as scenery mdl or aircraft mdl.  I export as scenery.  Maybe even that part is wrong.  My understanding is makemdl should then launch, but it doesn't (I've copied the exe and ini to the plugins folder.)

What do I do for scenery?
 
IP Logged
 
Reply #3 - Oct 2nd, 2004 at 8:49pm

Firestriker   Offline
Colonel
Gearhart, Oregon

Gender: male
Posts: 274
*****
 
Andy,

I assume this is for FS2004.

After you export your scene you need to compile it to a *.bgl file with bglcomp.exe. Here are some steps to follow.

1.  Have your latitude and longitude coordinates for the location of your scene handy in degrees and decimal minutes.

2.  Open the xml file with a program like notepad and replace the default location with your coodinates. Also remove the comments. Something like this:

Before...

<?xml version="1.0" encoding="ISO-8859-1"?>
<FSData version="9.0" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation="bglcomp.xsd">

     <!-- Sample object placement.  Remove comment markers to place object east of 34R at Sea Tac. -->
     
<!--

     <SceneryObject
lat="47 25.89" lon="-122 18.43"
alt="0" pitch="0" bank="0" heading="0" altitudeIsAgl="TRUE" imageComplexity="NORMAL">
           <LibraryObject name="9B3319954F76985611E870876ED076A3" scale="1.0" />
     </SceneryObject>

     
-->


     <!-- Inclusion of model data.  Use the 'Name' of this object to place -->
     <!-- it in other locations.                                           -->
     <ModelData name="9B3319954F76985611E870876ED076A3" sourceFile="my_scene.mdl" />
</FSData>

After...

<?xml version="1.0" encoding="ISO-8859-1"?>
<FSData version="9.0" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation="bglcomp.xsd">

     <!-- Sample object placement.  Remove comment markers to place object east of 34R at Sea Tac. -->
     
     <SceneryObject lat="41 51.45" lon="-087 36.58" alt="0" pitch="0" bank="0" heading="0" altitudeIsAgl="TRUE" imageComplexity="NORMAL">
           <LibraryObject name="9B3319954F76985611E870876ED076A3" scale="1.0" />
     </SceneryObject>

     

     <!-- Inclusion of model data.  Use the 'Name' of this object to place -->
     <!-- it in other locations.                                           -->
     <ModelData name="9B3319954F76985611E870876ED076A3" sourceFile="my_scene.mdl" />
</FSData>


Then save the file.

3.  Compile the file to my_scene.bgl with bglcomp.exe. The compiler must be either in the directory you are working in or in a directory in your search PATH. I find it best to open a command prompt in the directory I am compiling in so I can see if there are any errors and then I type in:

bglcomp.exe my_scene.xml

If all goes well, you should now have a file named my_scene.bgl in this directory. Copy/Move it to your Addon Scenery\scenery directory. If there are textures, besure to copy/move them to the AddonScenery\texture and remember they CAN NOT be 24 bit.

Lou
 
IP Logged
 
Reply #4 - Oct 2nd, 2004 at 10:24pm

andyjohnston.net   Offline
Colonel
Good Grief!

Posts: 59
*****
 
Thanks so much for you help.  I now have one exremely ugly lookin' test building sitting in among my detailed airport.  Exactly what I was hoping for.
 
IP Logged
 
Reply #5 - Oct 2nd, 2004 at 11:09pm

Travis   Offline
Colonel
Cannot find REALITY.SYS.
Universe halted.
Dripping Springs, TX

Gender: male
Posts: 4515
*****
 
Quote:
I now have one exremely ugly lookin' test building sitting in among my detailed airport.  Exactly what I was hoping for.


LOL!
 

...
IP Logged
 
Reply #6 - Jan 12th, 2005 at 4:08am

Eskimo   Offline
Colonel
I'm not speeding officer
-- I'm just flying low.
YBAF - Archerfield, Brisbane

Gender: male
Posts: 287
*****
 
I managed to get the XML file and put the BGL in the Addon Scenery --> Scenery Folder.  But it is not in FS at all.  Do I have to put the MDL file anywhere, and how do the coordinates work in the XML file.  Because there are pluses and minuses there.  I'm guessing they're for North and South etc but which is which.
 

IP Logged
 
Reply #7 - Jan 12th, 2005 at 6:09am

Firestriker   Offline
Colonel
Gearhart, Oregon

Gender: male
Posts: 274
*****
 
Lat= Positive numbers are north of the equator, negative are south. Lon= Positive numbers are east of prime meridian, negative are west. Values should be degrees and decimal minutes.

Lou
 
IP Logged
 
Reply #8 - Jan 12th, 2005 at 6:39am

Eskimo   Offline
Colonel
I'm not speeding officer
-- I'm just flying low.
YBAF - Archerfield, Brisbane

Gender: male
Posts: 287
*****
 
Okay, the coordinates are correct, but why isn't it showing up in FS?
 

IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print