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

AI doesn't show up

Messages
110
Country
unitedkingdom
In FSX I am trying to add an AI addon aircraft as traffic in my RAF Tangmere add-on scenery. I am using the SDK Traffic Toolbox. I have dumped the airfields in order to obtain the data for Tangmere and created the following files. They compile ok using Trafficbuilder. Here are my files including the log, I wonder if anyone can see what I am doing wrong?

CustomAircraftTypes.csv (as seen in Notepad):-
LightningF.53,EE_Lightning F.53,477,10,350,25,800,4000,HARD,18,MIL_COMBAT,100,yes,yes

CustomAirports.dat
EGUT,50.850382671,-0.708076805,17.0,D,1,0.41,United Kingdom
{
RUNWAY,6054,164,HARD
RUNWAY,4776,164,HARD
PARKING,18.0,MIL_COMBAT
PARKING,18.0,MIL_COMBAT
PARKING,18.0,MIL_COMBAT
PARKING,18.0,MIL_COMBAT
PARKING,18.0,MIL_COMBAT
PARKING,18.0,MIL_COMBAT
PARKING,18.0,MIL_COMBAT
PARKING,18.0,MIL_COMBAT
PARKING,18.0,MIL_COMBAT
PARKING,14.9,MIL_COMBAT
PARKING,14.9,MIL_COMBAT
PARKING,14.9,MIL_COMBAT
PARKING,14.9,MIL_COMBAT
PARKING,14.9,MIL_COMBAT
PARKING,14.9,MIL_COMBAT
PARKING,14.9,MIL_COMBAT
PARKING,14.9,MIL_COMBAT
}

CustomCountries.csv (as seen in Notepad)
United Kingdom,G-@@@@

CustomSchedules.dat
# Aircraft type: Lightning F.53
# Tail number: XR753
# Traffic density: 1%
# Repeats every: one day
# Flight rules: VFR
# Schedule:
# Time Departure Destination Altitude FlightNumber
LightningF.53,XR753,1,ONE_DAY,VFR
{
1115,EGUT,3,753,circuitEndTime = 1145
}

Batchfile to run the Trafficbuilder....
CustomTrafficBuilder.bat:-

CD\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Traffic Toolbox SDK

TrafficDatabaseBuilder /AircraftTypes=CustomAircraftTypes.csv /Airports=CustomAirports.dat /Countries=CustomCountries.csv /Schedules=CustomSchedules.dat /AutoSchedule=No /Output=traffic_tangmere.bgl /Log=CustomTrafficBuilderLog.txt

CustomTrafficBuilderLog.txt (output log):-
E:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Traffic Toolbox SDK\CustomCountries.csv : Reading country data...
E:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Traffic Toolbox SDK\CustomAirports.dat : Reading airport data...
E:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Traffic Toolbox SDK\traffic_tangmere.bgl : Saving airport data...
E:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Traffic Toolbox SDK\traffic_tangmere.bgl : Saving object types...
E:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Traffic Toolbox SDK\traffic_tangmere.bgl : Saving object instances...
E:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Traffic Toolbox SDK\traffic_tangmere.bgl : Saving spatial cells...
E:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Traffic Toolbox SDK\traffic_tangmere.bgl : Saving boat routes...

The schedule is set to start at 11:15 UTC, my loaded flight starts at 12:13 British Summer Time (11:13 UTC)

With the flight loaded I wait until 12:15BST (11:13UTC) when I expect the AI simulation to start but nothing happens, there is no sign of the aircraft. I have tried putting the traffic_tangmere.bgl in both the addon Tangmere Scenery folder and the World/Scenery folder but no luck.

It is not listed in the Toolbox Explorer but I can "Create" the aircraft there and then assign it a Flight Plan I have created which it seems happy to follow, taxying from its ramp to the runway, getting ATC interaction, taking off and picking up the correct route out.

It just doesn't work as a .bgl.

Can anyone help me with this?

klem
 
Last edited:
Hi robystar

it is intended to take off from Tangmere (EGUT), make circuits then land. It should then repeat each hour.

I see I made a mistake with the flihgt level, presumably it should be 30? The example in the SDK help says:
"flightLevel = the flight level, for example 20 = 20,000 feet "
so I thought 3000 feet was 3 but now I think of it I believe FLs are given in hundreds of feet.

Its funny how you can look at something several times and not see it.

I found this in the SDK Help (eventualy)
# Aircraft type: C172-1
# Tail number: N172SP
# Traffic density: 33%
# Repeats every: 2 hours
# Flight rules: VFR
# Schedule:
# Time Departure Destination Altitude FlightNumber Circuits?
# 0010Z KEUG KEUG 12 (none) until 0030Z
# 0100Z KEUG KEUG 12 (none) until 0130Z

C172-1,N172SP,33,TWO_HOURS,VFR
{
0010,KEUG,12,,0030
0100,KEUG,12,,0130
}

and my schedule now looks like
LightningF.53,XR753,1,TWO_HOURS,VFR
{
0015,EGUT,30,753, 0045
0115,EGUT,30,753, 0145
}

Works a treat. Thanks for at least causing me to look again :)

klem
 
Back
Top