Neil Smith
The WAIT entry in the flight plan looks like this:
<wpt>
<name>WAIT</name>
<wait-time-sec>1800</wait-time-sec>
</wpt>
and should be placed immediately after the waypoint at which you want the
AIShip to pause. Note that when the WAIT token is encountered, speed is
immediately set to 0: you will need to ensure that speed is lost beforehand.
I've also added a manoeuvring turning radius of 500ft for ships if the speed
is <= 5kts and >= -5kts . These values are hard coded, but could be settable
in the scenario file if there is enough demand for it.
You can find the flight plan in:
~/data/AI/FlightPlans/PA_PA-Victoria.xml
Send any new plans you have to me, and I'll either upload them to cvs, or
make them available on a website.
I'm now working on adding submodels to all AI Objects, so that we can have
better wakes etc. (at the cost of frame rate - about 10 here).
Vivian
> Date: Mon, 5 Mar 2007 22:31:14 -0000
> From: "Vivian Meazza"
>
> A long time ago, or so it seems, I wrote:
>
>> >
>> > Hi Vivian
>> >
>> > Vivian Meazza wrote:
>> > >
>> > > I've got the code for AIShips to follow a flightplan working. I've
>> > > done a little testing on Dene's data. Seems OK, except more
>> > realistic
>> > > turning circles make the ships run aground from time to time - the
>> > > waypoints need adjusting, and perhaps a few more would help.
>
> It turned out to be more complex than I thought - just moving the
> AIAircraft
> code over to AIShips exposed all manner of bugs and unwanted features.
> Finally a fully working version is in cvs, together with some updated
> routes
> for Port Angeles - Victoria (British Columbia). The new code introduces
> the
> concept of the WAIT token: when this token is reached in the flightplan,
> the
> AIShip stops for the specified time.
I'm anxious to see the format for the WAIT token. This will solve all sorts
of route problems for me, especially for the last of the Puget Sound ferries
"to do". Starting April 1 there will be four ships servicing the same
terminals in the San Juan Islands with the mainland, with at least one
including Sidney, British Columbia.
> I've also added some eye-candy to Dene's very nice ferry.
>
> For those who don't use cvs, the new route files can be adapted to for use
> with 0.9.10 or earlier by following the instructions in the file.
I don't use cvs and have one BIG problem - I can't find the navigation route
in FlightGear to your new files for AIShips. Please specify for this
knothead :)
Also, I would like to share my ferry routes with anyone interested, but
without a website I don't know the best way to do this.
Thank you Vivian for your efforts on this problem with non-aviation aspects
of the sim.
Cheers, Neil Smith
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-users