8,567
edits
m (Wiki syntax please) |
|||
Line 1: | Line 1: | ||
[[FlightGear]] offers a flexible '''tutorial''' system, entirely written in the [[Nasal]] scripting language. | [[FlightGear]] offers a flexible '''tutorial''' system, entirely written in the [[Nasal]] scripting language. | ||
Aircraft that provide support for these scripted tutorials can be found in | Aircraft that provide support for these scripted tutorials can be found in [[:Category:Interactive Tutorial Support]]. | ||
== Some Background Info == | == Some Background Info == | ||
The tutorial system itself was largely developed by Stuart | The tutorial system itself was largely developed by Stuart. | ||
In recent FGDATA, the Nasal "tutorial" module has become a so called "Nasal sub module", which means that the "tutorial.nas" module now resides in its own sub folder inside $FG_ROOT/Nasal: http://gitorious.org/fg/fgdata/trees/master/Nasal/tutorial | In recent FGDATA, the Nasal "tutorial" module has become a so called "Nasal sub module", which means that the "tutorial.nas" module now resides in its own sub folder inside $FG_ROOT/Nasal: http://gitorious.org/fg/fgdata/trees/master/Nasal/tutorial. | ||
Support for Nasal sub modules was added by ThorstenB. Modules loaded as Nasal sub modules do automatically support reloading, because they are loaded via a listener. | Support for Nasal sub modules was added by ThorstenB. Modules loaded as Nasal sub modules do automatically support reloading, because they are loaded via a listener. | ||
Please see the Nasal documentation on sub modules for details: | Please see the Nasal documentation on sub modules for details: [[Nasal#Nasal sub modules]]. | ||
Regarding suggested coding practices, you should check out: | Regarding suggested coding practices, you should check out: [[Nasal scripting language#Memory management]] and [[Nasal#Managing timers and listeners]]. | ||
To learn more about translating tutorials, please see: http://flightgear.org/forums/viewtopic.php?f=42&t=16876&p=164407&hilit=tutorials#p164407 | To learn more about translating tutorials, please see: http://flightgear.org/forums/viewtopic.php?f=42&t=16876&p=164407&hilit=tutorials#p164407 | ||
Line 33: | Line 33: | ||
Also, see line 450-463 of tutorial.nas in $FG_ROOT/Nasal/tutorial to see how the namespace is initialized. | Also, see line 450-463 of tutorial.nas in $FG_ROOT/Nasal/tutorial to see how the namespace is initialized. | ||
For additional information on namespace, I suggest to have a look at: | For additional information on namespace, I suggest to have a look at: [[Namespaces and Methods]] | ||
== Using tutorials == | == Using tutorials == |