Hi All, Based on the discussions started by Paul and Cyprien, I had a go at writing an XML-based tutorial system in Nasal.
It is still fairly rough, but is available as a patch here: http://www.nanjika.co.uk/flightgear/tutorial.tar.gz. The patch consists of: - a simple "take-off" tutorial for the C172p, as an XML file. The XML defines a number of tutorials, each of which consists of - an initialization state - a number of steps, each of which has - text displayed when the step begins - exit criteria to move to the next step - error criteria, displaying warning messages. - a tutorial library (tutorial.nas) that runs the tutorial. - a new Tutorial dialog, accessed from the Help menu, that dynamically works out the tutorials that are available. The most obvious omissions currently are: - The dialog box isn't great. It would be great if a description for each tutorial was displayed when the tutorial was selected. - Currently the end of the tutorial displays a message with the number of errors. This should probably be a dialog. - You cannot set properties outside of the initialization. This is almost trivial to add, and would be great for engine-out tutorials. - No audio instructions, though I think I now know how to add them to Nasal and therefore to the tutorial system. - I'd like to be able to run Nasal scripts defined within the tutorial XML file. Let me know what you think. Paul, Cyprien: Apologies if I've stepped on your toes by putting this together. If either of you would like to take the patch onwards, I'm happy to leave you to it. Regards, -Stuart ___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel