Page 1 of 1

I'm experimenting with adding AI...

PostPosted: Sun Mar 25, 2007 8:04 pm
by Draconiator
...so I've created a small G.A. airport which is below here...


Image

Anyway, I read the TrafficTools tutorial, and went at it.   But when it came time to compile it, TT gave me (and is still giving me) a strange error (complete with colors):

ERROR in file E:\TrafficTools\FlightPlans240307.txt
Line 1 (error location shown in red) :


AC#23,2894,15%,6Hr,VFR,21:53:30,22:10:40,001,F,8984,KSAN,00:43:00,01:06:35,001,F,KPAR

The flight number format is bad (should be 0000 to 16383)

It was named KPA1 before, and I figured that 4-space ICAOs that start with K and contain a number were not allowed, so I changed the identifier, and as you can see I STILL get this problem.
I don't know what's going on.  It's in the Airport list:

KPAN,N34* 15.41',W111* 20.35',5154
KPAO,N37* 27.66',W122* 6.90',3
KPAR,N32* 26.35',W117* 17.76',3
KPB ,N56* 21.11',W133* 37.35',0
KPBF,N34* 10.49',W91* 56.08',203

Here's the contents of the seperate file I made too:

AC#23,2894,15%,6Hr,VFR,21:53:30,22:10:40,001,F,8984,KSAN,00:43:00,01:06:35,001,F,KPAR
AC#24,8838,15%,12Hr,VFR,01:30:00,01:53:45,002,F,8372,KSAN,04:00:04,04:23:00,001,F,KPAR

Annnnnnd....the route in question:

Image



so, what is going on here?

Re: I'm experimenting with adding AI...

PostPosted: Sun Mar 25, 2007 9:28 pm
by ashaman
I think you have an error in the flight plan.


Example on one of the simplest of mine:

AC#3,N1382,80%,6Hr,IFR,14:00,,060,R,0000,LIRN,17:00,,070,R,0000,LIRB


legenda

AC#3   - Number aircraft,
N1382 - tail number airplane,
80%   - min traffic level to engage,
6Hr    - time between iterations,
IFR    - IFR or VFR, your choice
14:00 - time flight start,
,,       - time arrival (usually left blank, TTools will calculate that for you),
060    - flight level,
R       - R (ATC will use the tail# instead of a flight#)  F (ATC will use flight#),
0000  - A flight#, if used, would go here
LIRN  - Arrival Airport
17:00 - Time return flight start,
,,       - Time return flight arrival (usually left blank, TTools will calculate that for you),
070    - Flight Level,
R       - R (ATC will use the tail# instead of a flight#)  F (ATC will use flight#),
0000  - A flight#, if used, would go here
LIRB  - Starting Airport


Forgive me, I can't hack your flight plans at all. Surely my fault.

Re: I'm experimenting with adding AI...

PostPosted: Sun Mar 25, 2007 9:30 pm
by Gypsy_Baron
...so I've created a small G.A. airport which is below here...


-SNIP-

Anyway, I read the TrafficTools tutorial, and went at it.   But when it came time to compile it, TT gave me (and is still giving me) a strange error (complete with colors):

ERROR in file E:\TrafficTools\FlightPlans240307.txt
Line 1 (error location shown in red) :


AC#23,2894,15%,6Hr,VFR,21:53:30,22:10:40,001,F,8984,KSAN,00:43:00,01:06:35,001,F,KPAR

The flight number format is bad (should be 0000 to 16383)

It was named KPA1 before, and I figured that 4-space ICAOs that start with K and contain a number were not allowed, so I changed the identifier, and as you can see I STILL get this problem.
I don't know what's going on.  It's in the Airport list:

KPAN,N34* 15.41',W111* 20.35',5154
KPAO,N37* 27.66',W122* 6.90',3
KPAR,N32* 26.35',W117* 17.76',3
KPB ,N56* 21.11',W133* 37.35',0
KPBF,N34* 10.49',W91* 56.08',203

Here's the contents of the seperate file I made too:

AC#23,2894,15%,6Hr,VFR,21:53:30,22:10:40,001,F,8984,KSAN,00:43:00,01:06:35,001,F,KPAR
AC#24,8838,15%,12Hr,VFR,01:30:00,01:53:45,002,F,8372,KSAN,04:00:04,04:23:00,001,F,KPAR

Annnnnnd....the route in question:
-SNIP-



so, what is going on here?




The first thing I see is that you are missing a parameter after the "F" and before the
airport (KPAR)...TTools is expecting a numeric value where you have "KPAR".

Looking more closely,  the flight number should follow the "F".


Should be ",001,F,8984,KSAN,00:43:00,01:06:35,001,F,8984,KPAR" assuming that you
meant to have a cruise of 1000'.

   
 Paul