Tutorials: Difference between revisions

Jump to navigation Jump to search
157 bytes removed ,  17 August 2012
m
Wiki syntax please
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 http://wiki.flightgear.org/index.php/Category:Interactive_Tutorial_Support
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: http://wiki.flightgear.org/Tutorials
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: http://wiki.flightgear.org/Nasal#Nasal_sub_modules
Please see the Nasal documentation on sub modules for details: [[Nasal#Nasal sub modules]].


Regarding suggested coding practices, you should check out: http://wiki.flightgear.org/Nasal_scripting_language#Memory_management and http://wiki.flightgear.org/Nasal#Managing_timers_and_listeners
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: http://wiki.flightgear.org/Namespaces_and_Methods
For additional information on namespace, I suggest to have a look at: [[Namespaces and Methods]]


== Using tutorials ==
== Using tutorials ==

Navigation menu