I am having difficulty getting the railway_demo to work in FG2017.3.1. The fgfs_log is below and also the railway_demo scenario which is as per the original install.
The long/lat of the AI models in the property tree update correctly but the models do not show on the scene. However the models are all present and correct on the path, FG_ROOT/Models/Transport/foo.xml
What does the error 'Parent not set' mean?
Is the <model> path in the railway_demo.xml correct?
Any help would be much appreciated. What is Wakefield without its buses and trains
Many thanks
planeTalk
fgfs.log
ai:3:G:\Jenkins\workspace\Windows-release\flightgear\src\AIModel\AIManager.cxx:161:loading scenario 'nimitz_demo'
ai:3:G:\Jenkins\workspace\Windows-release\flightgear\src\AIModel\AIManager.cxx:161:loading scenario 'railway_demo'
ai:5:G:\Jenkins\workspace\Windows-release\flightgear\src\AIModel\AIShip.cxx:109:getting flightplan: Train-1
ai:5:G:\Jenkins\workspace\Windows-release\flightgear\src\AIModel\AIBase.cxx:701:AIBase: Train-1 parent not set
ai:5:G:\Jenkins\workspace\Windows-release\flightgear\src\AIModel\AIShip.cxx:804:AIShip: Train-1 initializing waypoints
ai:5:G:\Jenkins\workspace\Windows-release\flightgear\src\AIModel\AIShip.cxx:866:AIShip: Train-1 done initialising waypoints 0
ai:5:G:\Jenkins\workspace\Windows-release\flightgear\src\AIModel\AIBase.cxx:701:AIBase: Train-1 parent not set
ai:5:G:\Jenkins\workspace\Windows-release\flightgear\src\AIModel\AIShip.cxx:804:AIShip: Train-1 initializing waypoints
ai:5:G:\Jenkins\workspace\Windows-release\flightgear\src\AIModel\AIShip.cxx:866:AIShip: Train-1 done initialising waypoints 0
ai:5:G:\Jenkins\workspace\Windows-release\flightgear\src\AIModel\AIShip.cxx:109:getting flightplan: Train-11
ai:5:G:\Jenkins\workspace\Windows-release\flightgear\src\AIModel\AIShip.cxx:804:AIShip: Train-11 initializing waypoints
ai:5:G:\Jenkins\workspace\Windows-release\flightgear\src\AIModel\AIShip.cxx:866:AIShip: Train-11 done initialising waypoints 0
ai:5:G:\Jenkins\workspace\Windows-release\flightgear\src\AIModel\AIShip.cxx:804:AIShip: Train-11 initializing waypoints
ai:5:G:\Jenkins\workspace\Windows-release\flightgear\src\AIModel\AIShip.cxx:866:AIShip: Train-11 done initialising waypoints 0
ai:5:G:\Jenkins\workspace\Windows-release\flightgear\src\AIModel\AIShip.cxx:109:getting flightplan: Train-2
ai:5:G:\Jenkins\workspace\Windows-release\flightgear\src\AIModel\AIBase.cxx:701:AIBase: Train-2 parent not set
ai:5:G:\Jenkins\workspace\Windows-release\flightgear\src\AIModel\AIShip.cxx:804:AIShip: Train-2 initializing waypoints
ai:5:G:\Jenkins\workspace\Windows-release\flightgear\src\AIModel\AIShip.cxx:866:AIShip: Train-2 done initialising waypoints 0
ai:5:G:\Jenkins\workspace\Windows-release\flightgear\src\AIModel\AIBase.cxx:701:AIBase: Train-2 parent not set
ai:5:G:\Jenkins\workspace\Windows-release\flightgear\src\AIModel\AIShip.cxx:804:AIShip: Train-2 initializing waypoints
ai:5:G:\Jenkins\workspace\Windows-release\flightgear\src\AIModel\AIShip.cxx:866:AIShip: Train-2 done initialising waypoints 0
. . .
railway_demo.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<PropertyList>
<name>Trains and Buses (Wakefield, UK)</name>
<description>
This scenario runs a variety of trains and buses along
tracks or roads near Wakefield, Yorshire, UK
Note:
1. Units are ft, lbs, deg.
2. Lead Angle Gain is a dimensionless multiplication factor.
3. Lead Angle Limit Deg is the max excursion either side of
the target heading
4. Rudder Constant is rudder increase/decrease in degrees/sec.
5. Speed Constant is increase/decrease in kts/sec.
6. contact_x(1/2)_offset define the points at which ground elevation
is measured for pitch calulations in ft from the origin. Negative
is forward. z and y components are not (yet) available. When x = 0 no pitch
calculations are performed
7. Pitch Coefficient is a dimensionless damping factor for pitch (0.5)
8. Elevation Coefficient is a dimensionless damping factor for
elevation (0.5)
Vivian Meazza
</description>
<scenario>
<parameters>
<flightplan>streethousetowestgate.xml</flightplan>
<tunnel>false</tunnel>
<repeat>1</repeat>
<turn-radius-ft>200</turn-radius-ft>
<fixed-turn-radius-ft>200</fixed-turn-radius-ft>
<lead-angle-gain>1</lead-angle-gain>
<lead-angle-limit-deg>5.0</lead-angle-limit-deg>
<lead-angle-proportion>0.5</lead-angle-proportion>
<rudder-constant>50</rudder-constant>
<speed-constant>3</speed-constant>
<pitch-coefficient>0.1</pitch-coefficient>
<elevation-coefficient>0.1</elevation-coefficient>
<tow-angle-gain>0.25</tow-angle-gain>
<tow-angle-limit-deg>1.0</tow-angle-limit-deg>
</parameters>
<parameters>
<flightplan>Railway_1.xml</flightplan>
<tunnel>false</tunnel>
<repeat>1</repeat>
<turn-radius-ft>200</turn-radius-ft>
<fixed-turn-radius-ft>200</fixed-turn-radius-ft>
<lead-angle-gain>1</lead-angle-gain>
<lead-angle-limit-deg>5.0</lead-angle-limit-deg>
<lead-angle-proportion>0.5</lead-angle-proportion>
<rudder-constant>50</rudder-constant>
<speed-constant>3</speed-constant>
<pitch-coefficient>0.1</pitch-coefficient>
<elevation-coefficient>0.1</elevation-coefficient>
<tow-angle-gain>0.25</tow-angle-gain>
<tow-angle-limit-deg>1.0</tow-angle-limit-deg>
</parameters>
<entry>
<type>groundvehicle</type>
<model>Models/Transport/diesel_T153.xml</model>
<name>Train-1</name>
<flightplan alias="../../parameters/flightplan"/>
<tunnel alias="../../parameters/tunnel"/>
<repeat alias="../../parameters/repeat"/>
<turn-radius-ft alias="../../parameters/turn-radius-ft"/>
<fixed-turn-radius-ft alias="../../parameters/fixed-turn-radius-ft"/>
<lead-angle-gain alias="../../parameters/lead-angle-gain"/>
<lead-angle-limit-deg alias="../../parameters/lead-angle-limit-deg"/>
<lead-angle-proportion alias="../../parameters/lead-angle-proportion"/>
<rudder-constant alias="../../parameters/rudder-constant"/>
<speed-constant alias="../../parameters/speed-constant"/>
<pitch-coefficient alias="../../parameters/pitch-coefficient"/>
<elevation-coefficient alias="../../parameters/elevation-coefficient"/>
<contact-x1-offset>-31.21</contact-x1-offset>
<contact-x2-offset>31.21</contact-x2-offset>
<hitch-x-offset>38.392389</hitch-x-offset>
</entry>