Sign in to follow this  
Guest

Debugging AI Traffic

Recommended Posts

Hi! I was wondering if there was a utility to debug (remove the duplicate flights) before compiling the traffic.bgl? The reason why I ask is because some of the AI flight plans at Avsim are duplicates. Thank you for your time. Julian

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

No utility that I know of, but if you know how to use MicrosoftExcell then you could open a file with excell as FlightPlans.CSV file and using sortfeature of excell sort flights in this order:1. Sort By Column F (which is initial departure time)2. Then By Column Q (which is the first departure Airport of this flight)3. Then By Column K (which is the first destination airport of this flight)Then you will just look and comapre if you see 2 flights that seem to match. Not the easiest way but it works :-)This method works best when you have flights that only have 2 Legs, because after you checked it all then saved it and renamed it back to *.txt file if your plans have different number of legs then you may find in Notepad that some of your flights have a lot of commas after the flgiht entry and you'd have to manually delete these commas it would look like that:AC#8,IAYK30,50%,24Hr,IFR,00:29:53,00:54:30,180,F,0214,CYKZ,01:59:53,02:24:30,180,F,0416,KIAG,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,AC#2,IAYK45,50%,24Hr,IFR,00:45:00,01:09:37,180,F,0315,CYKZ,02:15:00,02:39:37,180,F,0517,KIAG,03:45:00,04:09:37,180,F,0719,CYKZ,05:15:00,05:39:37,180,F,0921,KIAGAC#7,YY0000,50%,4Hr,IFR,00:00:00,01:04:44,312,F,1000,1YYZ,01:45:00,02:49:44,321,F,5000,1YUL,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,AC#7,YY0005,50%,4Hr,IFR,00:04:58,01:09:42,313,F,1001,1YYZ,01:49:59,02:54:42,320,F,5001,1YUL,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

Share this post


Link to post
Share on other sites

Thanks Andy, I'll try that. It's going to be "long" night. :(

Share this post


Link to post
Share on other sites

>AC#7,YY0005,50%,4Hr,IFR,00:04:58,01:09:42,313,F,1001,1YYZ,01:49:59,02:54:42,320,F,5001,1YUL,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, The extra commas are easily deleted en masse by loading the flightplans.txt into Wordpad (or Word) and doing a Replace operation.Just have it look for,,,,,,and replace with nothing.The commas are produced in 'sets' of six to represent the empty fields in the spreadsheet.Bill

Share this post


Link to post
Share on other sites

>Thanks for n4gix. You are most welcome!"That's what friends are for..."Hmmm, wasn't there a song with those lyrics? :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this