Hi all, I noticed today I get a nasal error on starting fgfs with the c172p:
Nasal runtime error: nil used in numeric context at /usr/share/FlightGear/data/Aircraft/Generic/kap140.nas, line 1438 called from: /usr/share/FlightGear/data/Aircraft/Generic/kap140.nas, line 287 Tracing through kap140.nas, line 1431 pressureAltitude = getprop(encoder, "pressure-alt-ft"); produces nil, as prop "/instrument/encoder/pressure-alt-ft" doesn't exist/isn't created, so therefore line 1438: altFt = pressureAltitude - baroOffset; becomes altFt = nil - baroOffset; I have looked through the code in encoder.cxx and transponder.cxx but can't see what the issue is - interestingly "pressure-alt-ft" only appears to be read in the entire code in encoder.cxx, but I cannot see where it is created. Nick ------------------------------------------------------------------------- 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-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-devel

