Lee wrote > Subject: Re: [Flightgear-devel] Nasal error with YASim > aircraft having < 4fuel tanks > > > On Friday 04 January 2008 19:59, LeeE wrote: > > Hi all, > > > > I just noticed I was getting a Nasal error with a YASim > aircraft I was > > working on that had only three fuel tanks. The error is: > > > > Nasal runtime error: props.setDoubleValue() with non-number > > at /usr/local/share/FlightGear/Nasal/props.nas, line 26 > > called from: /usr/local/share/FlightGear/Nasal/fuel.nas, line 93 > > called from: /usr/local/share/FlightGear/Nasal/fuel.nas, line 125 > > > > I also got the same error when I tried an aircraft that has > only one > > fuel tank. > > > > I don't think that the problem is actually with the Nasal > scripts but > > with something else that creates four incomplete fuel tank nodes by > > default at start-up. If there are < 4 fuel tank elements > in the YASim > > config the last tank's details are left incomplete and I think that > > this is what the Nasal script is borking on. > > > > With a zero capacity dummy tank in the YASim config the problem > > doesn't occur. > > > > I had a quick look in options.xml & preferences.xml, aw well as my > > .fgfsrc but didn't find anything - can't think of anywhere else to > > look:( > > > > LeeE > > I thought I'd re-post this as no-one seems to have noticed it and it > seems like quite a big problem to me. > > I also started testing the FG aircraft that have < 3 fuel tanks > defined and found the same problem with the following aircraft > before I decided that there wasn't any point in testing all of > them: > > 737-300 > 747 > a24-yasim (A24-Viking) > A320 > a4 > A6M2 > ... > > Out of the candidates I tested only the a4f, which appears to be > based on the a4, didn't have the problem - I haven't looked into > this discrepancy yet. > > That isn't even all of the 'A's though and one of them, the A320, is > a JSBSim aircraft. With these aircraft it's not possible to change > the initial fuel loads via the menu and there are no values in the > tree for the /consumables/fuel/total-* nodes. > > Can anyone else confirm this problem on the OSG cvs branch? >
The A4F doesn't use the generic fuel script (or didn't last time I looked) so that might explain why it still works. Vivian ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel