![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
11-04-10, 07:49 PM
|
#11 |
|
Black Magic
![]() |
Greetings from Brazil! I'm currently just outside of Rio De Janiero on work (rough isn't it?
). Much better weather here than back home that's for sure v4.9.0 is now complete. I need to discuss some things about the main menu screen now: As you can see there is a new Tutorial button in the main menu. Clicking that button will display a list of all tutorials found in \data\Tutorials. One caveat to this: in order for the tutorial to show up in the list above (on the right hand side) it must have an exact filename match (minus extension) in \data\Automation. The names shown in the list are the title part of the tutorial. For example: I included a tutorial named '\data\Tutorials\How_to_use_tutorial.SHT'. In order for this tutorial to show up in the tutorial list I had to make an Automation file for it: \data\Automation\How_to_use_tutorial.SHA. Note: It is recommended that the automation file for the tutorial include just one command: the command to play the associated tutorial (for those wishing to be selected from the main menu) Now a tutorial file does not have to have an exact name match in \data\Automation to be usable. But if you want to be able to select the tutorial from the main menu it does. Tutorials can be included in Automation files as commands. For example: [AS] Dummy use of tutorials [DESCRIPTION] Testing purposes [DESCRIPTION_END] [CATEGORY] Tutorials [SUBCATEGORY] How-tos [COMMANDS] Set_Time_Compression,1,0,0,0,0,0,0 ; set time compression to 1 and wait 1 second before next command Rise_whole_obs_periscope,0,0,0,0,0,0,6 Play_tutorial,0,0,some_tutorial_1,0,0,0,0 Activate_Scope_Station,1,0,0,0,0,0,0 ; activate the UZO scope Sweep_Scope,1,0,360,120.0,0,0,1 ; sweep the scope from 0 to 360 in 30 seconds. Next command will be issued after sweep is finished Lower_whole_obs_periscope,0,0,0,0,0,0,0 Leave_Scope_Station,1,0,0,0,0,0,0 Play_tutorial,0,0,some_tutorial_2,0,0,0,0 [COMMANDS_END] the above is completely legal and allows you to be creative in your scripts. The names shown in the list to the right come from the [TITLE] header of the tutorial file. For example (from How_to_use_tutorial.SHT): ; title is a single line entry only! [TITLE] How to use Automation's new tutorial feature [TITLE_END] ; can be blank, i.e. nothing between the header tags, at which case no tooltip will be displayed [DESCRIPTION] Describes how to use the new Automation tutorial feature [DESCRIPTION_END] ; specify SH5Enhanced, SH3Style, SH4Style, or Any [UISTYLE] Any [UISTYLE_END] ; single line entry only! Specify Any for any single mission [HISTORICMISSION] Any [HISTORICMISSION_END] The tooltip text for the tutorial's title box comes from the [DESCRIPTION] header. The name of the currently selected tutorial is found under the Tutorial menu item in the main menu. The text in parenthesis after the currently selected tutorial is the historic mission name (which comes from the [HISTORICMISSION] header) recommended to be used with this tutorial. Any signifies any historic mission will do. The historic mission name should be pulled from the associated historic mission's .tsr file: [Text] MissionTitle=this name is to be used for the HISTORICMISSION header in the tutorial files. I've included two tutorials with the mod: How_to_use_tutorial.SHT (which is a tutorial on how to use the new tutorial feature) and Basic_sub_handling-depth_control.SHT (which describes basic sub handling - depth control). From these you all should be able to figure out how to make your own tutorials and I hope to see new tutorials from you all very soon! ![]() Finally you can specify a UI style that this tutorial is to be used with. This is specified in the [UISTYLE] header of the tutorial file. Specify Any for any UI style. I'll be packaging up v4.9.0 for release here very soon
|
|
|
| Tags |
| dbrn, favorite, new ui |
| Thread Tools | |
| Display Modes | |
|
|
