Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
Custom AI Ground Vehicles (Read 2894 times)
Oct 19th, 2009 at 10:45pm

CAFedm   Offline
Colonel
I love YaBB 1G - SP1!
Between CYXD & CYEG, Alberta

Gender: male
Posts: 623
*****
 
So I've decided to try adding some moving cars/buses to a custom airport project, hope to get it working for both FS9 and FSX. The airport's visible "roads" were created in the original Afcad file, and ported over to FSX using ADE. A duplicate Afcad/ADE was created with a unique name, and keeping only the roads along with taxi links and parking spots that have unique parking codes. Flightplans would then have to be created to have the AI vehicles functioning. Now the question - there is one default vehicle I would like to use as "AI" on these roads, namely the Aviator SUV. It appears the .mdl file has to be used and employed in aircraft format, e.g., with an airfile, aircraft.cfg, model and texture folders. After having added these files/folders, the vehicle cannot be loaded in FS to test it out. Maybe I'm going about it wrong and thus thought to post here, once again ideally this will be effective for both versions of FS. Many thanks.
 

Brian
IP Logged
 
Reply #1 - Oct 19th, 2009 at 11:48pm

MIKE JG   Offline
Colonel
Gravity Always Wins...
Ohio

Posts: 845
*****
 
Brian you are on the right track.  The vehicles you use are essentially aircraft in disguise.  I don't know about FSX, don't own it, what I do know about is FS9.

You can use any vehicle in FS9 as ground based AI.  Now for all practical purposes, you want a custom designed vehicle that was meant to be used as a vehicle in FS9, not an aircraft.  The reason being you want an vehicle type FDE so the model behaves like a vehicle, not an aircraft as it "taxis" around on your AI routing. 

So to start, find yourself a custom designed user vehicle for FSX or FS9 and try to use that as your AI vehicle for starters.  Get that working so you can iron out all the kinks in the system.  Then you can try different vehicle models and go from there.  Just know that in order to get the vehicle to "taxi" like a vehicle should, you may have to make changes to the FDE setup, which if you don't know what you are doing, will only make things worse.
 

-Mike G.

...

Military AI traffic packages and scenery for the Microsoft Flight Simulator series.
IP Logged
 
Reply #2 - Oct 20th, 2009 at 2:27pm

CAFedm   Offline
Colonel
I love YaBB 1G - SP1!
Between CYXD & CYEG, Alberta

Gender: male
Posts: 623
*****
 
Thanks for the info, at least it's all going the right way (not the wrong-way road). I suppose it's not possible to use vehicles compiled originally as .bgl format, e.g., if decompiled and then using the resultant .mdl file. Might just go ahead and create some unique items, that way they will have moving wheels & such.

Regards
 

Brian
IP Logged
 
Reply #3 - Oct 22nd, 2009 at 8:12pm

MIKE JG   Offline
Colonel
Gravity Always Wins...
Ohio

Posts: 845
*****
 
No, that would be nice though if we could do that, but those are two different animals, bgl and mdl files.  If you have the source files then yes, you could recompile it as a mdl, but that's the only way I know of.
 

-Mike G.

...

Military AI traffic packages and scenery for the Microsoft Flight Simulator series.
IP Logged
 
Reply #4 - Nov 2nd, 2009 at 9:35pm

CAFedm   Offline
Colonel
I love YaBB 1G - SP1!
Between CYXD & CYEG, Alberta

Gender: male
Posts: 623
*****
 
Back again,

Seems there is still something I am doing wrong as it doesn't work as planned. I took the original airport Afcad, which contains taxiways that represent the visual roads, deleted everything except for those taxiways, created a small runway along the longest taxi link, and added parking nodes at either end. This was saved as another airport with a unique name. Test flightplans employ an aircraft (with speed reduced to 15 kts) as the vehicle models are still being worked on. The aircraft shows up at one parking node, then disappears, only to reappear at the exact same spot later. Wondering how to get the aircraft/vehicle to follow the taxi links to the airport, then across to the other side - any ideas appreciated.

Original airport Afcad & ground vehicle Afcad pics below:

...
...
 

Brian
IP Logged
 
Reply #5 - Nov 3rd, 2009 at 2:33pm

MIKE JG   Offline
Colonel
Gravity Always Wins...
Ohio

Posts: 845
*****
 
Without being able to analyze the afcad first hand, it's hard to say what might be occurring.  Can you send me the AFCAD via PM?

I can PM you my email addy and maybe you can send it to me for a look.

 

-Mike G.

...

Military AI traffic packages and scenery for the Microsoft Flight Simulator series.
IP Logged
 
Reply #6 - Nov 5th, 2009 at 9:54am

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

Gender: male
Posts: 3077
*****
 
These comments are from experimenting with Afcad and traffic files for FS9. I placed them in FSX also and behavior was similar. For the test veh I used FS9 and FSX versions of the hama's Mitsubishi PAJERO available at SimV downloads.

For the ai not moving, just disappearing from the parking spot....run the Afcad Fault Finder. Check that the taxi link on the runway is set to 'Link type=Runway' or look for open links. 

Quote:
Wondering how to get the aircraft/vehicle to follow the taxi links to the airport, then across to the other side - any ideas appreciated.


That isn't going to happen. The 'ground bound' ai will never get past trying to take off on the first leg. The ai will taxi and then start take off roll. As it never gets airborn it will normally just roll off into the distance, eventually disappearing. It's never aware of the 'other side'.

The only elements needed in your afcad:

Parking------->taxiway--------->short runway (50' is fine). Mark the far end of the runway 'closed  for takeoff'.

Start Locations not needed, and do not place a hold short node. The lack of a hold short node creates an 'error' which should cause the ai to stop somewhere on it's take off and then disappear after several minutes. Where it stops will not be known 'till you try it. In my exerience, it can be anywhere from the 1st runway taxi node to somewhere past the end of the runway. Once you see where the ai stops you can adjust the runway location to get the desired stop point.

Edit: I've since found that if you connect to the runway at the reciprocal end the ai will stop on the 1st runway node. Just swap the base/recip ends in the runway properties as needed. Make sure to close the other end for takeoff.

For a return route you'll have to create another airport and flightplan.

Dave
« Last Edit: Nov 5th, 2009 at 5:29pm by dave3cu »  

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 #7 - Nov 6th, 2009 at 11:50pm

CAFedm   Offline
Colonel
I love YaBB 1G - SP1!
Between CYXD & CYEG, Alberta

Gender: male
Posts: 623
*****
 
Thanks to everyone for the info. Will give it a go tomorrow, after a good night's sleep, some Saturday chores, followed by a cold one with the computer ready to go. Once everything gets up & running, I'll post an update. Appreciate the help.
 

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