Hello all,
if try to set the fuel and payload with the menu-entry EQUIPMENT/FUEL and PAYLOAD
I get an error:
Nasal runtime error: nil used in numeric context at /Debian/Flightgear/FlightGear-0.9.5/data/Nasal/gui.nas, line 166 called from: <command>, line 1
Failed to execute command nasal
The error is in Nasal/Gui.nas
163 cap = t.getNode("capacity-gal_us", 1).getValue();
164
165 # Hack, to ignore the "ghost" tanks created by the C++ code.
166 if(cap < 1) { continue; }The property /consumables/fuel/tank/capacity-gal_us exists only for yasim fdm.
183 lbs.set("property", tankprop ~ "/level-lbs");
Same for /consumables/fuel/tank/level-lbs. For jsbsim the name is /consumables/fuel/tank/level-lb. :(
And so on ..
115 txt.set("property", "/yasim/gross-weight-lbs");
/consumables/fuel/tank/level-lb
The nasal-script gui.nas works only with yasim-fdm.What is the right way to change this behaviour ??
a.) Different nasal-script for different fdm ??
b.) Translation layer like /consumables/fuel/tank/level-lb =
/consumables/fuel/tank/level-lbs
c.) if-construct in the nasal-script like if fdm = yasim
then ...d.) A subset of basic properties, which must be served by all fdm ??
Is there already a way defined ???
Hans-Georg
_______________________________________________ Flightgear-users mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-users 2f585eeea02e2c79d7b1d8c4963bae2d
