<nasal>
<script>
setprop("/controls/flight/elevator", -1);
setprop("/controls/engines/engine/throttle", 1);
</script>
</nasal>
<nasal>
<script>
if (getprop("/tutorial-props/max-altitude") == "")
setprop("/tutorial-props/max-altitude", 0);
if (getprop("/tutorial-props/max-altitude") < getprop("/instrumentation/altimeter/indicated-altitude-ft")){
setprop("/tutorial-props/max-altitude", getprop("/instrumentation/altimeter/indicated-altitude-ft"));
setprop("/tutorial-props/min-altitude", (getprop("/tutorial-props/max-altitude") - 100));
}
</script>
</nasal>
<nasal>
<script>
if (getprop("/instrumentation/altimeter/indicated-altitude-ft") < getprop("/tutorial-props/min-altitude")){
screen.log.write("You lost too much altitude. Climb back up to 3000 and try again.", 1, 1, 1);
previous([n=2])
}
</script>
</nasal>
<nasal>
<script>
if ((getprop("/gear/gear[1]/rollspeed-ms") == 0) and (getprop("/gear/gear[2]/rollspeed-ms") == 0))
setprop("/tutorial-props/landing-rate", getprop("/velocities/vertical-speed-fps"));
</script>
</nasal>
<nasal>
<script>
if (getprop("/tutorial-props/landing-rate") > -5)
screen.log.write("Great landing!", 1, 1, 1);
else
screen.log.write("Ouch! Terrible landing!", 1, 1, 1);
</script>
</nasal>
redneck wrote in Sun Mar 18, 2012 7:32 pm:The problem: The tutorial causes FG to crash on startup, UNLESS I comment out all the Nasal stuff.
Error reading aircraft: not well-formed
at C:/Program Files (x86)/FlightGear 2.4.0/data/Aircraft/Jabiru-j170/Tutorials/
power_on_stall.xml,
line 403, column 50
Config option parsing failed ...
if (getprop("/tutorial-props/max-altitude") < getprop("/instrumentation/altimeter/indicated-altitude-ft")){
connect wrote in Mon Mar 19, 2012 3:13 am:I've tested the FDM, its rather average at the current time. I'm in the process of getting git to work, and understanding how to use it in order to commit my updates.
<step>
<message>You are about to stall! Get ready!</message>
<error>
<message>You are now stalling. Lower the nose gently to increase speed.</message>
<condition>
<and>
<less-than>
<property>/instrumentation/altimeter/indicated-altitude-ft</property>
<property>/tutorial-props/max-altitude</property>
</less-than>
<less-than>
<property>/controls/flight/elevator</property>
<value>-0.75</value>
</less-than>
</and>
</condition>
</error>
<error>
<message>You are heading too far left, Turn right slightly to heading 090.</message>
<condition>
<less-than>
<property>/orientation/heading-magnetic-deg</property>
<value>80</value>
</less-than>
</condition>
</error>
<error>
<message>You are heading too far right, Turn left slightly to heading 090.</message>
<condition>
<greater-than>
<property>/orientation/heading-magnetic-deg</property>
<value>100</value>
</greater-than>
</condition>
<error>
<message>You lost too much altitude. Climb back up to 3000 and try again.</message>
<condition>
<less-than>
<property>/instrumentation/altimeter/indicated-altitude-ft</property>
<property>/tutorial-props/min-altitude</property>
</less-than>
<nasal>
<script>
<![CDATA[
previous([n=2]);
]]>
</script>
</nasal>
</condition>
</error>
</error>
<exit>
<condition>
<and>
<less-than>
<property>/fdm/jsbsim/aero/alpha-rad</property>
<value>0.0395415</value>
</less-than>
<greater-than>
<property>/velocities/vertical-speed-fps</property>
<value>-100</value>
</greater-than>
<greater-than>
<property>/instrumentation/altimeter/indicated-altitude-ft</property>
<property>/tutorial-props/min-altitude</property>
</greater-than>
</and>
</condition>
</exit>
</step>
Accurate and realistic cockpit with ambient occlusion and some photo textures used
Icecode GL wrote in Mon Mar 19, 2012 10:11 pm:Why to use ambient occlusion? Rembrandt is coming with AO and many other features.
connect wrote in Mon Mar 19, 2012 11:51 pm:But not just TheOmegaHangar it is, indeed, another collaboration between TheOmegaHangar and FlightGear Australia
Users browsing this forum: No registered users and 16 guests