Since the original post on this was getting so cluttered with suggestions and
re-posts, I thought it would simplify things to start anew.
I hacked the working files from Dene, and my current ones look like this...
PA - Victoria Ferry
_____________________
Preferences.xml file snippet
-----------------------
<ai>
<enabled type="bool">true</enabled>
<scenario>PAVictoria_demo</scenario>
<scenario>nimitz_demo</scenario>
<!--<scenario>aircraft_demo</scenario>
<scenario>ship_demo</scenario>
<!--<scenario>ferryboat1_demo</scenario>
<scenario>sea-bnbrdg_demo</scenario>
</ai>
___________________
AI FILE
-------
PAVictoria_demo.xml
<?xml version="1.0"?>
<!--
x, y, z-offset-m The distance in meters of the Fresnel Lens Optical
Landing System
(FLOLS) from the carrier model origin.
-->
<PropertyList>
<scenario>
<entry>
<type>aircraft</type>
<model>Models/fgfsdb/Models/fgfsdb/FerryBoat1.xml</model>
<latitude>48.1225</latitude>
<longitude>-123.44398</longitude>
<flightplan>PA_Victoria.xml</flightplan>
</entry>
<entry>
<type>aircraft</type>
<model>Models/fgfsdb/Models/fgfsdb/FerryBoat1.xml</model>
<flightplan>PA_Victoria</flightplan>
</entry>
</scenario>
</PropertyList>
______________________________________________________________
FLIGHTPLAN FILE
----------------
PA_Victoria.xml
<?xml version="1.0"?>
<!-- Departs Port Angeles ferry terminal
sails ENE out of the harbour, turns N across the tip of Ediz Hook
into Strait of Juan deFuca, crosses to Victoria, enters inner harbor to
terminal dock.
Format:
<name> Waypoint name. When a waypoint named END is reached
the AI airplane will delete itself.
<lat> latitude, degrees (-90 to 90)
<lon> Longitude, degrees (-180 to 180)
<alt> altitude above sea level, feet
<crossat> Crossing altitude, feet
<ktas> Knots true airspeed
<on-ground> set true if on the ground
<gear-down> set true for gear down, false for gear up
<flaps-down> set true for flaps down, false for flaps up
-->
<PropertyList>
<flightplan>
<wpt>
<name>Hook</name>
<lat>48.1337</lat>
<lon>-123.3991</lon>
<alt>0.0</alt>
<ktas>10</ktas>
<on-ground>true</on-ground>
</wpt>
<wpt>
<name>VicHarbor</name>
<lat>48.417766</lat>
<lon>-123.39265</lon>
<alt>0.0</alt>
<ktas>15</ktas>
<on-ground>true</on-ground>
</wpt>
<wpt>
<name>InHarbor</name>
<lat>48.42435</lat>
<lon>-123.375783</lon>
<alt>0.0</alt>
<ktas>10</ktas>
<on-ground>true</on-ground>
</wpt>
<wpt>
<name>Dock</name>
<lat>48.42348</lat>
<lon>-123.3718833</lon>
<alt>0.0</alt>
<ktas>7</ktas>
<on-ground>true</on-ground>
</wpt>
<wpt>
<name>END</name>
</wpt>
<wpt>
<name>EOF</name>
</wpt>
</flightplan>
</PropertyList>
________________________________________________________________
ERROR REPORT
-------------------
Error reading AI flight plan: C:/Program Files/FlightGear910/data/AI/FlightPlans
/PA_Victoria
Unknown exception in the main loop. Aborting...
_________________________________________________________________
I get essentially the same error whenever the AI file has a flightplan entry.
Without a flightplan, but with type entered as aircraft and a ship as the model
the program starts as normal, but the model is not in the scene. Enter type as
ship, and no flightplan, the model appears.
When I get my mind straightened out on this dilemma I'll activate Dene's files
and look at ferry boats cruising around NZ at least.:)
Also at that time I'll try Georg's suggestion
From: Georg Vollnhals
>Hi Neil,
>sorry, I did not read this very long main in detail. But I understand
>that it is still not working for you.
>Therefore I created some stuff with my FGTools program which should work
>pretty well - at least on my PC.
>I only viewed the Ferry start (on land :-/) and then going the right
>direction, did some screenshots and shut FG.
>But the rest should also work, you have to try it.
>Screenshots:
>http://home.arcor.de/vollnhals-bremen/FerryBoat/fgfs-screen-034.jpg
>http://home.arcor.de/vollnhals-bremen/FerryBoat/fgfs-screen-039.jpg
>ZIP-File:
>http://home.arcor.de/vollnhals-bremen/FerryBoat/FerryBoat.zip
>Just decompress, go into the folder, copy the "data" folder, go into
>your FlightGear folder where the "data" folder is, copy it over the
>existing data -folder (no harm is done).
>Then make your preferences.xml entries/activation.
>Make sure your FerryBoat1.ac is in "Models/fgsdb" !!! (this is the
>normal place and the path I put into my files) and not in
>"Models/fgsdb/Models/f00gsdb" as you set it.
When I unpacked it somehow the directories repeated - It's actually
"Models/fgfsdb/Models/fgfsdb". I'm not at all sure how it happened, but since
it works I've let well enough alone.
>When it works for you, have a look at the differences.
>If you are interested to create more AI-files, do it the easy way. Have
>a look at FGTools, the AI-page. Use the Ufo to make waypoints (just by
>setting the cursor there), then read the ufo-xml-file with FGTools and
>convert it into an AI-File. You can set some parameters and edit it by
>hand later, if you want (ie different speed per waypoint).
>Creating the other file and handling preferences.xml is also done pretty
>easy with FGTools.
>Also it is not up-to-date anymore (development has been stopped last
>summer) and also the Manual is a little difficult to read as I did no
>more real work on it, only some additions as there were some people
>requesting the tool, it could be a great help.
>http://home.arcor.de/vollnhals-bremen/FGTools-Win/FGTools14-1346.zip
>Hope this helps (and works for you)
>Regards
>Georg EDDW
Thanks for the info Georg. I'll download the zip files, but it may be some
time before I can do anything with them.
Cheers, Neil-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Flightgear-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-users