Re: [Flightgear-devel] Patch for XML-based tutorial system
Hi All, I have a new, improved patch for the tutorial system available from http://www.nanjika.co.uk/flightgear/tutorial2.tar.gz. This makes use of Melchior's Nasal display code instead of the Nasal display patch I previously submitted. As before, it provides a series of tutorials for the c172p, as well as a framework for further tutorials written in XML. Can I suggest that my previous patch for Nasal display and speed warnings is backed out from CVS and replaced with Melchior's? I think Melchior's solution for displaying text through Nasal is superior, and we don't need two different approaches :). I'm not aware of anyone else using it, so backing out the fix should be fairly low risk. I'm currently working on an improved version of the speed warning patch that makes use of the property listeners, but hitting some crashes, so am not ready to submit. 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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Patch for XML-based tutorial system and C172 tutorials.
> - I need to write a tutorial on writing tutorials, though there is a > description in tutorial.nas How will you do that? Are there any tutorials on writing tutorials on tutorials on the net? Oops, my grammar checker just segfaulted. Josh --- 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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Patch for XML-based tutorial system and C172 tutorials.
Hi All, I've uploaded an updated patch for a tutorial system to http://www.nanjika.co.uk/flightgear/tutorial.tar.gz It contains the following pieces. 1) A patch to apply-presets so the engines are running if you start in mid-air. Previously I had to perform a mid-air restart in the c172p... 2) A modification to the sounds dialog, including a new checkbox for tutorial instructions, which (like ATC chatter) are independent of the Mute option. 3) A new Tutorials item under the Help menu. 4) A "tutorial wizard", allowing the user to select from the available tutorials, and then view a description of the tutorial. 5) A library of Nasal functions that reads a tree of properties underneath /tutorial to run a tutorial. 6) XML tutorial file for the Cessna 172p consisting of tutorials for take-off, landing, flying the pattern, and emergency landing. Issues: - My modification to presets_commit is very piston-centric (i.e. it sets the magnetos). Does anyone have a suggestion on how to start the engines more generically? - I haven't yet recorded voice instructions for the Cessna tutorials (though I have tested they work). I intend to do so once people have had the chance to critique the FG CFI ;) - The text on the tutorial instructions page extends past the end of the textarea boundary. Looks like some sort of GUI bug. - I'm not sure if my pattern description is OK. Specifically, I've got the user turning to crosswind at 500ft AGL. - I need to write a tutorial on writing tutorials, though there is a description in tutorial.nas Feedback welcome. -Stuart ___ Yahoo! Photos NEW, now offering a quality print service from just 8p a photo http://uk.photos.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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Patch for XML-based tutorial system
--- Cyprien wrote: > Ok, i have patch all the files... but when i select Help/tutorial, i > still have no tutorial available for this aircraft :( > i've used the command lince > > fgfs --aircraft=c172p --airport=KHAF > but it said to me that the runway 10 doesn't exist, i've used the 12 > instead... where i'm wrong ?? The error message is purely because your default run is 10. Personally, I use runway 30. It shouldn't make any difference to the tutorial. Maybe your c172p-set.xml file hasn't included the c172p-tutorial.xml file correctly? Can you use the internal property browser to check that there is a /tutorial/tutorial[0] node? -Stuart ___ NEW Yahoo! Cars - sell your car and browse thousands of new and used cars online! http://uk.cars.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
Re: [Flightgear-devel] Patch for XML-based tutorial system
Ok, i have patch all the files... but when i select Help/tutorial, i still have no tutorial available for this aircraft :( i've used the command lince fgfs --aircraft=c172p --airport=KHAF but it said to me that the runway 10 doesn't exist, i've used the 12 instead... where i'm wrong ?? regards, Cyprien Buchanan, Stuart a écrit : --- Cyprien wrote: hi stuart, sorry for that question but do i need the cvs to apply your patch ??? what's the command line you use ? Yes, you'll need the current cvs version of FlightGear and cvs itself. I _think_ you need to use the "cvs patch" command to apply the patches to the cvs files, though they are simple enough that you could patch them manually using a text editor. To run the tutorials, use the following command line: fgfs --aircraft=c172p --airport=KHAF Hope that helps. -Stuart ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.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 --- 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_idv37&alloc_id865&op=click ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Patch for XML-based tutorial system
--- Cyprien wrote: > hi stuart, > sorry for that question but do i need the cvs to apply your patch ??? > what's the command line you use ? Yes, you'll need the current cvs version of FlightGear and cvs itself. I _think_ you need to use the "cvs patch" command to apply the patches to the cvs files, though they are simple enough that you could patch them manually using a text editor. To run the tutorials, use the following command line: fgfs --aircraft=c172p --airport=KHAF Hope that helps. -Stuart ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.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
Re: [Flightgear-devel] Patch for XML-based tutorial system
hi stuart, sorry for that question but do i need the cvs to apply your patch ??? what's the command line you use ? Cyprien Buchanan, Stuart a écrit : 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 --- 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_idv37&alloc_id865&op=click ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Patch for XML-based tutorial system
Buchanan, Stuart a écrit : 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 Hi Stuart ! No problems if you've get my idea, I'm just happy you've used it :) i will try your patch as soon as possible and tell you what i'm thinking about. Thank you for your work ! Regards, Cyprien --- 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_idv37&alloc_id865&op=click ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Patch for XML-based tutorial system
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Buchanan, Stuart schrieb: > Hi All, > > Based on the discussions started by Paul and Cyprien, I had a go at > writing an XML-based tutorial system in Nasal. > > [...] > > Let me know what you think. The files are looking like a great start. I can't try it as I don't have a diff tool around though (WinXP). What seems missing, is that the instructor flys the scenario for you first. That can be quite hard to implement (at least for the later stages with cross wind that has wind gusts). Perhaps a prerecorded, manually flown and played back flight can help. Thanks for the great work, Christian -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (MingW32) iD8DBQFDwX/8lhWtxOxWNFcRArYfAJ0ZTmZgHL5m7MFU7hfUXTE/N89OpQCcDOvp EMpNL2OmU97y1sel9Ohmbmw= =dGpq -END PGP SIGNATURE- --- 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
[Flightgear-devel] Patch for XML-based tutorial system
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