Board index FlightGear Support

'Parent not set' when loading railway_demo

All general support: help on flying, installation, hardware, getting online etc. There are lots of users and developers to help you out.
Forum rules
In order to help you, we need to know a lot of information. Make sure to include answers to at least the following questions in your initial post.

- what OS (Windows Xp/Vista, Mac etc.) are you running?
- what FlightGear version do you use?
- what graphics card do you have?
- does the problem occur with any aircraft, at any airport?
- where did you download your aircraft/scenery from?
- is there any output printed to the console (black window)?
- copy&paste your commandline (tick the "Show commandline box on the last page of FGRun or the "Others" section on the Mac launcher).

Please report any bugs not specific to an aircraft on the issue tracker.
To run FlightGear on old computers with bad OpenGL support, please take a look at this wiki article.

Note: If you did not get a reponse, even after 7 days, you may want to check out the FlightGear mailing lists to ask your question there.

'Parent not set' when loading railway_demo

Postby planeTalk » Mon Feb 12, 2018 9:18 pm

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>
planeTalk
 
Posts: 20
Joined: Tue Dec 19, 2017 10:00 am

Re: 'Parent not set' when loading railway_demo

Postby wkitty42 » Tue Feb 13, 2018 3:35 pm

you really really really should use code tags when posting code... it preserves the spaces and tabs in the formatting... but there really wasn't any need to post the code since it is on everyone's system already ;)

aside from that, this looks to be a code problem internal to FG... possibly due to some changes in the way code objects are handled?
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: 'Parent not set' when loading railway_demo

Postby planeTalk » Tue Feb 13, 2018 6:26 pm

Good advice and on both counts.

The trouble is there is so much code on people's systems it is sometimes difficult to know which bit is of relevance

I'm beginning to believe that there is a problem with the model since I am lacking a texture and effect file. From FGviewer for diesel_T153.xml:
osgDB ac3d reader: could not find texture "train.png"
can't find "Effects/model-default.eff"

Cheers

planeTalk
planeTalk
 
Posts: 20
Joined: Tue Dec 19, 2017 10:00 am

Re: 'Parent not set' when loading railway_demo

Postby wkitty42 » Tue Feb 13, 2018 9:06 pm

ahhh... train.png may have been moved when stuff was moved from fgdata to terrasync/Models... or it may have been left behind in fgdata... i think some of this came about before textures needed to be named the same as the object they are used on... not sure but that's possible based on other similar problems seen in the recent past...

i'm not sure why the eff isn't being found... possibly a path problem (eg: starting or not the path with a '/')... that's a really old demo, too... it isn't surprising that some things are breaking with the new changes and no one going back to check that they are still working properly...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: 'Parent not set' when loading railway_demo

Postby planeTalk » Sat Mar 03, 2018 10:03 am

Thanks for the reply. It gives me some insight into the evolution of the Flightgear platform
planeTalk
 
Posts: 20
Joined: Tue Dec 19, 2017 10:00 am

Re: 'Parent not set' when loading railway_demo

Postby wkitty42 » Sat Mar 03, 2018 8:09 pm

you're welcome... the thing is that changes are made and the project moves forward... some things are checked that they don't break anything but everything can't be checked... there's just not enough folks for that... but that's where folks like you and i come in... we do try and play with some of these other things... reporting them is how they get fixed... someone still has to do the work of finding the problem and coming up with a fix, though...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04


Return to Support

Who is online

Users browsing this forum: No registered users and 8 guests