Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
Adding AI Aircraft (Read 1815 times)
Jul 3rd, 2007 at 3:52pm

Maiden666   Offline
2nd Lieutenant
I Fly Sim!
UK

Gender: male
Posts: 1
**
 
Evening all.I'm new to adding scenery,aircraft etc etc. I'd like to know if I can increase the amount of ai aircraft that fly around as LHR with only a few take offs and landings just aint right. I've heard about using real schedules but have no idea how this would work!! Can someone tell me? Thanks in advance.  Undecided
 
IP Logged
 
Reply #1 - Jul 6th, 2007 at 12:52pm

Virtual_Pilot   Offline
Colonel
Future 787 Pilot
Wentzville, Missouri

Gender: male
Posts: 63
*****
 
Hey there.

I am a little new too, but I figure things out fast.  Tongue

Here are easy to read and follow step by step instructions.

You will want the Service Pack of the SDK, so go to FSInsider.com. Find the downloads section. If you do not have the SP1 of FSX, download it. If you do not have the updated SDK, download it. I think that should all work out just fine.

Moving on. Once you have all of that done, then go to the SDK folder. By default, it will be in C:\Program Files\Microsoft Games\Microsoft Flight Simulator X SDK\SDK. Go to the folder called ENVIRONMENT KIT. Then go to the folder called TRAFFIC TOOLBOX SDK. Thats the folder for the traffic SDK thing, so you know. If you want a neat tool to have in FSX, then follow these instructions. If you do not want a fun tool, then go to the next paragraph. To get that nifty tool, you must put an entry into DLL.XML. It will be in Users\Application Data\Microsoft\FSX. Open it with text. make sure that the code below is in it. Then once you have done that, then WHEN YOU ARE FLYING IN THE GAME, then on the toolbar you will see "Tools". Hover over it and it will go down. You then have some neat tools there. In TRAFFIC EXPLORER, then you can create aircraft at any position you want by right clicking and clicking CREATE.... It is a little complicated at first, but you can figure that out.
Code:
- <Launch.Addon>
  <Name>Traffic Toolbox</Name>
  <Disabled>False</Disabled>
  <ManualLoad>False</ManualLoad>
  <Path>..\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Traffic Toolbox SDK\traffictoolbox.dll</Path>
  </Launch.Addon>
 


Alright, now this is where we learn how to schedule AI Traffic into the game.
You can go into the .csv files, BY OPENING THEM WITH EXCEL. First, go into the one called fs10.aircrafttypes.csv. That has a list of all the aircraft that are in the traffic. Most of it should be easy to figure out. The second collumn to the end is notable, as it tells it whether to autoroute it or not. Autoroute is VERY HELPFUL if you dont want to spend a whole bunch of time making your own routes. It simply makes random routes FOR YOU. If it is set to NO, then it will look for routes in a file that you specify somewhere else. (We will get to that later.)  Since you have no file that lists certain routes, then if AUTOROUTE is set to no, that plane will simply not be in the game. If it is set to YES, it WILL be in the game, using random routes. The way it determines the routes that it uses is by the things you put in the fs10.AircraftTypes.csv file, such as Minimum Runway Length and Radius and such. About RADIUS, it is very important. That tells it what type of parking to put the plane in. The bigger it is, the bigger parking spot is gets, like gate or ramp!

Now is where we make the .BGL file, which is the file that contains ALL of the traffic.
Hold the windows key and hit R. It will open the RUN dialog box. type in CMD and click OK. This is like DOS. Type this in:
Code:
CHDIR C:\Program Files\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Traffic Toolbox SDK 


Hit ENTER. If you did not install FSX to the default location, type in where you installed it. If you did, then keep on going.
So now you type in:
Code:
TrafficDatabaseBuilder 


Hit ENTER.
There will be a big menu that appears.
Now, type in the following code.

Code:
TrafficDatabaseBuilder /Airports=fs10.airports.dat /AircraftTypes=fs10.aircrafttypes.csv /countries=countries_regions.csv /output=my_very_own_traffic_that_I_made_all_by_myself.bgl 



Hit ENTER.
It will be typing things really fast for like a minute, but thats a good thing. When it's done, you will have a .bgl file with that really long name (lol) in the TRAFFIC TOOLBOX SDK folder. If you want it in the game, then go to this location:
...\Microsoft Flight Simulator X\Scenery\world\scenery
take the trafficAircraft.bgl file out of the whole fsx directory and put in that .bgl file with the really long name that you make in there.

Load up the game and you should have it all right there!

Alright, well if you have any questions, look in the Traffic Toolbox SDK guide, found in the Traffic Toolbox SDK folder. If you can't find answers there, PLEASE don't hesitate to contanct me on AIM, MSN, E-Mail, or on this thread.

There will be alot that I can't entirely explain, as I have not done some things, like schedule my own routes, or there is just too much to explain.

For most of it, your probably best off experimenting with it all. It only took me two days to figure out all of that, but I was at my computer for like 10 hours each day, I'm just some 12 year old kid who has a lot of time in his summer days.  Tongue

Your welcome in advance.  Smiley


 

...
IP Logged
 
Reply #2 - Dec 12th, 2007 at 10:49pm

Jamie   Offline
Colonel
I love YaBB 1G - SP1!

Posts: 284
*****
 
I know one thing .  I surely don't want to be on that TV program " are you smarter than a 12 yr. old " !!  HA !!!!!

Jamie
 
IP Logged
 
Reply #3 - Dec 12th, 2007 at 11:55pm

Gypsy_Baron   Offline
Colonel
USS Dewey DGL-14 &  VX-8
Daly City, California

Gender: male
Posts: 467
*****
 
Jamie wrote on Dec 12th, 2007 at 10:49pm:
I know one thing .  I surely don't want to be on that TV program " are you smarter than a 12 yr. old " !!  HA !!!!!

Jamie


I would suggest you look into World of AI ( WOAI ) for adding traffic as
one possibility. I would caution you to stay away from TDBB!

The Traffic Database Builder is guaranteed to give one nothing but ALOT
of unneccesary frustration. It's a poorly designed tool and overly restrictive.
I've been doing my own AI since the early days of FS9 and thus have a good
deal of experience and I will not bother with TDBB after having spent several
fruitles, frustrating, unproductive hours attempting to satisfy that %%$#$&^!

There are also some payware AI packages available but the freeware ones
thata re available are more than adequate for filling your virtual skies with AI.

    Paul
 

...
IP Logged
 
Reply #4 - Dec 13th, 2007 at 8:39am

dave3cu   Offline
Colonel
Procrastinate now, don't
put it off.
3CU, Northern Wisconsin, USA

Gender: male
Posts: 3077
*****
 
If you wish to create your own traffic files, here is an alternative to the SDK/TDBB.  

http://www.fsdeveloper.com/forum/showthread.php?t=4746&page=3&highlight=AIFPC--This link is to the discussion forum, at fsdeveloper.com, for the utility named AIFPC, by Peter van der Veen. You'll find the link to download 'AIFPC.zip' in the 4th reply from the bottom (#57-by Garfield X).

AIFPC will compile a TTools set of source .txt files into a traffic.bgl file in either FS9 or FSX format. It will also decompile either FS9 or FSX traffic.bgl files into the TTools source set.

Follow the instructions in  the  TrafficTools v2.02 Help file (Readme.htm) to create/edit your source .txt files and then compile with AIFPC into FSX format.

AIFPC is still in developement so if you have any questions or problems using AIFPC you should ask your questions in the fsdeveloper.com-AIFPC forum.

Dave
 

At that time [1909] the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation.          Igor Sikorsky

I intend to live forever....so far, so good.         Steven Wright

You know....you can just rip up a to-do list.
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print