Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
Swift AI (Read 519 times)
Apr 9th, 2011 at 9:36pm

Dickert   Offline
Colonel
Does it ever fly fast
enough?
Ontario Canada

Gender: male
Posts: 170
*****
 
Another milestone for me and this project.
Finally learned how to program AI versions of the swift, still need to do more LOD, but this is just a test.
...
Can't seem to get the various paint versions to show up, only get the white one.
Followed the tutorial to the letter (I think).  and here is a sample of the Aircraft file.

AC#1,1350,"HD - 1 Swift (Civil in white)"
AC#2,1350,"HD - 1 Swift (Military Radar Runner) Paint1"
AC#3,1350,"HD - 1 Swift (Civil in Black) Paint2"
AC#4,1350,"HD - 1 Swift (Snow Bird - Canadian Military Aerobatic Display Team) Paint3"

and the flight plan file

AC#10,C-GWWW,10%,4,VFR,09:05:10,09:21:34,80,R,0000,CYOW,10:00:12,10:29:36,90,R,0
000,CYKZ
AC#7,C-GWWW,10%,4,VFR,10:05:10,10:21:34,80,R,0000,CYOW,11:00:12,11:29:36,90,R,00
00,CYKZ
AC#8,C-GWWW,10%,4,VFR,11:05:10,11:21:34,80,R,0000,CYOW,12:00:12,12:29:36,90,R,00
00,CYKZ
AC#3,C-GWWW,10%,4,VFR,12:05:10,12:21:34,80,R,0000,CYOW,13:00:12,13:29:36,90,R,00
00,CYKZ
AC#4,C-GWWW,10%,4,VFR,13:05:10,13:21:34,80,R,0000,CYOW,14:00:12,14:29:36,90,R,00
00,CYKZ
AC#2,C-GWWW,10%,4,VFR,14:05:10,14:21:34,80,R,0000,CYOW,15:00:12,15:29:36,90,R,00
00,CYKZ
AC#5,C-GWWW,10%,4,VFR,15:05:10,15:21:34,80,R,0000,CYOW,16:00:12,16:29:36,90,R,00
00,CYKZ

So any one know what the problem is?


 

...
IP Logged
 
Reply #1 - Apr 11th, 2011 at 9:44pm

Capt.Propwash   Offline
Colonel
Let's get a little mud
on the tires!
KCHS, Charleston, SC, USA

Gender: male
Posts: 1958
*****
 
copy/paste the aircraft folders that you want to use to your desktop.

rename EACH folder AI-(aircraft name)


open each .AIR file using AirEd (http://hsors.pagesperso-orange.fr/fsairfile.html ; -- left side of the screen at the top) and look for [int32] 105 Aircraft Type=1   
Change the 1 to 2
This will cause it to become AI.

close each window (saving if asked).

Move all AI-(aircraft name) folders to your FS2004/Aircraft folder....... or FSX/SIM OBJECTS/AIRPLANES folder.


.... you will need to adjust the Flight plan information  (aircraft file) to point to your new AI craft.



Try your flight again with the AI present
 

The thoughts and expressions contained in the post above are solely my own, and not necessarily those of Simviation.com, its Moderators, its Staff, its Members, or other guests. They can not, are not, and will not be held liable for any thoughts, or expressions, or posts that I have made, or will make in the future.

Computer Specs:: Acer Aspire Laptop..Win7 Home Premium 64-bit (sp1), AMD Athlon II X2 P340 (Dual Core) [2.2 Ghz], ATI Mobility Radeon HD 4250 (256mb), 4GB DDR3......FS9.1(sp3) / FSX (sp2)..... Ultimate Terrain X, Ground Environment X, REX, FTX ORBX PNW-PFJ-NRM-CRM, OZx, Tongass Fjords, Misty Moorings
IP Logged
 
Reply #2 - Apr 12th, 2011 at 12:01am

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

Gender: male
Posts: 3077
*****
 
No need to go thru those steps. In fact it will cause problems.  Both FS9 and FSX will use any aircraft as ai regardless of whether it is a user or AI model.

Aircraft file-Make sure the aircraft title (between the "") is identical to the appropriate title= strings in the aircraft.cfg file. Reduce the cruise speed. 1350 will cause the compiler to calculate unrealistic TOAs which could cause the aircraft to go missing until re-spawned at it's next departure time.  200 would be a good starting point.

Flight plan file-You specify a 4hr repeat periods. All leg times (1st departure to last arrival) should therefore fall withn the 1st period of the 24 hr day, 00:00:00 to 03:59:59GMT. The flight plans will then repeat every 4 hours.  If you want to keep the schedules as you have them you'll have to use 24hr repeat periods.

Also you could be at the wrong place/wrong time. You may not see all aircraft at the same time/place. Check for each aircraft at its 1st departure time and location. Be sure to use GMT time.

Capt.Propwash,

The steps you outline will cause errors in the sim because you will then have seperate aircraft with duplicate 'title=' lines in their aircraft.cfg files. Title=' string is how the sim 'catalogs' aircraft, it doesn't care about folder names. The only thing line 105 Aircraft Type=2 does is remove the aircraft from the 'Select Aircraft' listings, in FS9 only. FSX handles it differently.
 

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
 
Reply #3 - Apr 12th, 2011 at 12:12am

Capt.Propwash   Offline
Colonel
Let's get a little mud
on the tires!
KCHS, Charleston, SC, USA

Gender: male
Posts: 1958
*****
 
sorry. I forgot that if you do it the way that I said, then you have to change the Title= line in the config file as well.   ....  again sorry, and disregard my rambling.
 

The thoughts and expressions contained in the post above are solely my own, and not necessarily those of Simviation.com, its Moderators, its Staff, its Members, or other guests. They can not, are not, and will not be held liable for any thoughts, or expressions, or posts that I have made, or will make in the future.

Computer Specs:: Acer Aspire Laptop..Win7 Home Premium 64-bit (sp1), AMD Athlon II X2 P340 (Dual Core) [2.2 Ghz], ATI Mobility Radeon HD 4250 (256mb), 4GB DDR3......FS9.1(sp3) / FSX (sp2)..... Ultimate Terrain X, Ground Environment X, REX, FTX ORBX PNW-PFJ-NRM-CRM, OZx, Tongass Fjords, Misty Moorings
IP Logged
 
Reply #4 - Apr 12th, 2011 at 2:27am

Dickert   Offline
Colonel
Does it ever fly fast
enough?
Ontario Canada

Gender: male
Posts: 170
*****
 
Hi Dave3cu
Thanks for your help.  Turns out it was a naming problem.  I had thought that "paint1, paint2, paint3, etc" was part of a code.  I didn't see that it was actually part of the title of the stock FS9 aircraft.  I had added the "paint" line to each line in the aircraft text file and that was the problem.  I removed it since I didn't use those names in my "Titles" of each version of the aircraft.  Problem solved.  All the versions showed up.  Thanks again.
Harold
...
 

...
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print