SUBSIM Radio Room Forums
Glue, paint, razors...what could go wrong?


SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 09-01-2010, 08:47 AM   #1
Abd_von_Mumit
The Old Man
 
Join Date: Jan 2007
Location: Warszawa, Polska
Posts: 1,453
Downloads: 46
Uploads: 4
Default [REL] Patrol Routine Scripts

This mod adds scripts to Silent Hunter 5 game which can be run by user any time he wants.
The scripts are intended to ease the tedious daily patrol routine, some of them simply remind you to do things a good Kaleun should regularly do but sometimes forgets, some assist in plotting. There's also one script for those who like surprises.


Download: Patrol Routine Scripts v. 01.02 by Avm [contains also v. 01.00]


Included scripts
Sonar scans
  • Regular economic speed sonar scan
    Runs at TC x128 in NavMap mode, every ~1 hour does a sonar scan at depth of 20 metres, then goes back to surface to fuel efficient speed.
    Intended to use in open waters for searching contacts. Runs until stopped by user.
  • Regular slow speed sonar scan
    Runs at TC x128 in NavMap mode, every ~1 hour does a sonar scan at depth of 20 metres, then goes back to surface to slow speed (bell 1).
    Intended to use in open waters for searching contacts. Runs until stopped by user.
  • Regular 1/3 speed sonar scan
    Runs at TC x128 in NavMap mode, every ~1 hour does a sonar scan at depth of 20 metres, then goes back to surface to one third speed (bell 2).
    Intended to use in open waters for searching contacts. Runs until stopped by user.
  • Regular standard speed sonar scan
    Runs at TC x128 in NavMap mode, every ~1 hour does a sonar scan at depth of 20 metres, then goes back to surface to standard speed (bell 3).
    Intended to use in open waters for searching contacts. Runs until stopped by user.
  • Regular full speed sonar scan
    Runs at TC x128 in NavMap mode, every ~1 hour does a sonar scan at depth of 20 metres, then goes back to surface to full speed (bell 4).
    Intended to use in open waters for searching contacts. Runs until stopped by user.
  • Frequent flank speed sonar scan
    Runs at TC x64 in NavMap mode, every 15 minutes does a very fast sonar check at depth of 20 metres, gives you a short period of TC x1 to adjust course, then goes back to surface to flank speed and TC x64.
    Intended to use for course adjustments when chasing already heard target. Runs until stopped by user. Running speed can by very easily modified to suit your needs.
  • Single cruise speed sonar scan
    Does a sonar scan at depth of 20 metres, then goes back to surface to fuel efficient speed.
    Runs once then stops, doesn't change TC or station, can be run in first person view.
Plotting assist
  • Regular 3'15" (x1) range checks
    Runs at TC x64 in NavMap mode, and every 3 minutes 15 seconds lets you do your plotting on NavMap (doesn't do it for you).
    Only useful for so called 3'15" (3 minutes 15 seconds) method of determining target's accurate course and speed (for details check: http://www.paulwasserman.net/SHIII/).
    Runs until stopped by user.
  • Regular 6'30" (x2) range checks
    Runs at TC x128 in NavMap mode, and every 6 minutes 30 seconds lets you do your plotting on NavMap (doesn't do it for you).
    Only useful for so called 3'15" (3 minutes 15 seconds) method of determining target's accurate course and speed (for details check: http://www.paulwasserman.net/SHIII/).
    Runs until stopped by user.
  • Regular 13' (x4) range checks
    Runs at TC x128 in NavMap mode, and every 13 minutes lets you do your plotting on NavMap (doesn't do it for you).
    Only useful for so called 3'15" (3 minutes 15 seconds) method of determining target's accurate course and speed (for details check: http://www.paulwasserman.net/SHIII/).
    Runs until stopped by user.
  • Regular 32'30" (x10) range checks
    Runs at TC x128 in NavMap mode, and every 32 minutes 30 seconds lets you do your plotting on NavMap (doesn't do it for you).
    Only useful for so called 3'15" (3 minutes 15 seconds) method of determining target's accurate course and speed (for details check: http://www.paulwasserman.net/SHIII/).
    Runs until stopped by user.
Reminders
  • Reminder: Report to BdU
    Every 24 hours reminds to send a situational report to BdU, drops TC to x1. Activate at the time you want to send your reports at.
    Runs until stopped by user.
  • Reminder: Special Meal
    Every 2 and a half hours reminds that a Special Meal from the Cook is available, drops TC to x1. Activate when you order your Special Meal for the first time.
    Runs until stopped by user.
  • Reminder: News from Vaterland
    Every 24 and half hours reminds to order Radio News from Germany from the Radioman, drops TC to x1. Activate when you order your Fresh News for the first time.
    Runs until stopped by user.
Specials
  • Bernaaard!!!
    Let Bernard on your boat.
    Lives until you keelhaul him or he kills you and your crew.
    Use at your own risk.


What this mod won't ever do
It won't think instead of you.
It won't decide instead of you.
It won't assist you in attacking or avoiding enemy. The scripts are to stop (be stopped) upon detecting enemy contact - from this moment on it's all your call.


Requirements
Silent Hunter 5 v. 1.2 game
mod: Multiple UIs for SH5 with TDC by TheDarkWraith (http://www.subsim.com/radioroom/showthread.php?t=166093) v. 4.2 or higher (if you use obsolete version 4.1 of "Multple UIs", you need to install Patrol Routine Scripts v. 01.00, also included; the current version will likely crash your script engine).


Installation
Install using JSGME (http://www.subsim.com/radioroom/showthread.php?t=173323). For instructions check JSGME help files.
You may install this mod in any order - would be best to install it after "Multiple UIs" though, for logical reasons.
If you install it after other scriping mods (like "Multiple UIs") you may get a warning about overwriting an already existing folder - ignore it (click "Yes").
This mod doesn't modify any existing game files, it only adds new ones, so conflicts are extremely unlikely.
You can safely install this mod mid-patrol, even with game running (it won't work until game restart).
You can safely install this mod without having "Multiple UIs", but then it won't have any effect in game.


Updates
For newest version of this mod check: http://www.subsim.com/radioroom/show....php?p=1482536
To update remove any previous version of this mod and install the new one.


Known issues/conflicts
  1. Due to internal game bug that hasn't been fixed by the community yet some commands are _sometimes_ not performed properly when game runs in high TC (x128 and higher, possibly also lower). This may cause the Reminder scripts not to drop TC to x1 and not to remind you at all. Luckily this may also render Bernard presence on your boat less damaging. The scan scripts are not affected.
  2. In game clock and script clock are not perfectly synchronised, thus 3:15 minutes can be measured different by your Zentrale clock and by the script you use. Differences do not exceed 5%, so this only slightly affects 3'15" method scripts timing accuracy. Hopefully will be fixed by later versions of "Multiple UIs".
  3. Only applies to version 1.0: In "Multiple UIs" v. 4.1 pressing Esc while running "Regular cruise sonar scan" will drop you to TC x1, but the script will still run in TC x128. This doesn't cause real issues, only the next sonar check will be performed sooner than it should. Solution: Don't use Esc to drop TC, use - and + or \. Should be fixed in later versions of "Multiple UIs".

Documentation of the scripts
Scripts are self documented (descriptions of how they work and how to modify them are inside the scripts). The only exception is the Bernaaard!!! script, which is intended to be surprising. You can open and edit the mod's .sha file in any text editor (like Notepad).


License
You may choose one of these 2 licences: "GNU General Public License" v. 2 or later or "ShareAlike" License.
The above means: you are free to do whatever you want with this mod, but if you publish/distribute it or its derivatives, you must make it available under the same license I do (the mod is to stay free). For details check the license of your choice or contact me.


Credits
TheDarkWraith - for being amazing, putting enormous effort in developing SH5 mods, creating the scripting engine and his marvellous "Multiple UIs" mod
Trevally. - for showing me how this works and giving his permission to modify and publish his version of the script, which gave a start to this mod


All criticism, feedback, tips and requests welcome. Meet me on SubSim Forums (http://www.subsim.com/radioroom/).

(-) Abd_von_Mumit


-------------


Changelog
2010.09.01, v. 01.00
  • Added "Regular cruise sonar scan" script
  • Added "Single sonar scan" script
2010.09.02, v. 01.01
  • Added descriptions to all scripts (required by "Multiple UIs for SH5 with TDC" v. 4.2 and later)
  • Slightly modified existing scripts for better performance and user friendliness
  • Added "Bernaaard!!!" script
  • Added "Reminder: Report to BdU" script
  • Added "Reminder: Special Meal" script
  • Added "Reminder: News from Vaterland" script
2010.09.04, v. 01.02
  • Renamed script categories to be more self-descriptive
  • Renamed "Regular cruise sonar scan" to "Regular economic speed sonar scan"
  • Renamed "Single sonar scan" to "Single cruise speed sonar scan"
  • Added "Regular slow speed sonar scan" script
  • Added "Regular 1/3 speed sonar scan" script
  • Added "Regular standard speed sonar scan" script
  • Added "Regular full speed sonar scan" script
  • Added "Frequent flank speed sonar scan" script
  • Added "Patrol routine plotting" scipt category
  • Added "Regular 3'15" (x1) range checks" script
  • Added "Regular 6'30" (x2) range checks" script
  • Added "Regular 13' (x4) range checks" script
  • Added "Regular 32'30" (x10) range checks" script
__________________
Long, hard, wet and full of seamen. My precious.
SH3+GWX+OLC — sunk x4, retired x2; SH5+TDW — still exploring
My SH5 mods: EQuaTool - Elite Quality Map Tools, Patrol Routine Scripts, No Logo Intro Menu_Animation, Less Annoying Stopwatch
Links: SH5 mods I use, FileFront, Manual plotting how-to

Last edited by Abd_von_Mumit; 09-06-2010 at 06:12 AM.
Abd_von_Mumit is offline   Reply With Quote
Old 09-01-2010, 08:59 AM   #2
Abd_von_Mumit
The Old Man
 
Join Date: Jan 2007
Location: Warszawa, Polska
Posts: 1,453
Downloads: 46
Uploads: 4
Default

Code:
; Anything that follows a semicolon is a comment, i.e. is not executed by the script.
; To learn more about scripts check ./data/Automation/TDW_Automation.SHA

[AS]
Regular economic speed sonar scan	; Script name
[CATEGORY]
Patrol routine scans	; Script category name
[COMMANDS]
Activate_NavMap_Station,0,0,0,0,0,1,0	; Switch to Navigation Map, do it only once during whole script run, then immediately execute next line
Set_Time_Compression,128,0,0,0,0,1,0	; Set TC to x128, do it only once during whole script run, then immediately execute next line
Print_message,0,0,New depth 20 m!,0,0,0,0	; Display the specified message, then immediately execute next line. If TC is low this particular message can show twice in the message box.
Set_new_depth,20,0,0,0,0,0,60	; Go to 20 metres depth, after 60 seconds execute next line
All_stop,0,0,0,0,0,0,120	; Stop all engines, after 120 seconds execute next line
Report_nearest_sound_contact,0,0,0,0,0,0,60	; Report nearest sound contact, after 60 seconds execute next line
Surface,0,0,0,0,0,0,0	; Surface, then immediately execute next line
Ahead_slow,0,0,0,0,0,0,120	; Engines slow ahead bell, after 120 seconds execute next line
Set_new_speed,7.4,0,0,0,0,0,3240 ; Set speed as 7.4 knots (most fuel efficient), after 3240 seconds (54 minutes) execute next line
Loop,-1,0,0,0,0,0,0	; Loop the script, i.e. go again to execute first line. Do it indefinitely ("-1 times").
[COMMANDS_END]
[DESCRIPTION]
Runs at TC x128 in NavMap mode, every ~1 hour does a sonar scan at depth of 20 metres, then goes back to surface to economic (fuel efficient) speed of about 7.5 knots.
Intended to use in open waters for searching contacts. Runs until stopped by user.
[DESCRIPTION_END]


[AS]
Regular slow speed sonar scan	; Script name
[CATEGORY]
Patrol routine scans	; Script category name
[COMMANDS]
Activate_NavMap_Station,0,0,0,0,0,1,0	; Switch to Navigation Map, do it only once during whole script run, then immediately execute next line
Set_Time_Compression,128,0,0,0,0,1,0	; Set TC to x128, do it only once during whole script run, then immediately execute next line
Print_message,0,0,New depth 20 m!,0,0,0,0	; Display the specified message, then immediately execute next line. If TC is low this particular message can show twice in the message box.
Set_new_depth,20,0,0,0,0,0,60	; Go to 20 metres depth, after 60 seconds execute next line
All_stop,0,0,0,0,0,0,120	; Stop all engines, after 120 seconds execute next line
Report_nearest_sound_contact,0,0,0,0,0,0,60	; Report nearest sound contact, after 60 seconds execute next line
Surface,0,0,0,0,0,0,0	; Surface, then immediately execute next line
Ahead_slow,0,0,0,0,0,0,3360	; Engines standard ahead bell, after 3360 seconds (56 minutes) execute next line
Loop,-1,0,0,0,0,0,0	; Loop the script, i.e. go again to execute first line. Do it indefinitely ("-1 times").
[COMMANDS_END]
[DESCRIPTION]
Runs at TC x128 in NavMap mode, every ~1 hour does a sonar scan at depth of 20 metres, then goes back to surface to slow speed (bell 1).
Intended to use in open waters for searching contacts. Runs until stopped by user.
[DESCRIPTION_END]


[AS]
Regular 1/3 speed sonar scan	; Script name
[CATEGORY]
Patrol routine scans	; Script category name
[COMMANDS]
Activate_NavMap_Station,0,0,0,0,0,1,0	; Switch to Navigation Map, do it only once during whole script run, then immediately execute next line
Set_Time_Compression,128,0,0,0,0,1,0	; Set TC to x128, do it only once during whole script run, then immediately execute next line
Print_message,0,0,New depth 20 m!,0,0,0,0	; Display the specified message, then immediately execute next line. If TC is low this particular message can show twice in the message box.
Set_new_depth,20,0,0,0,0,0,60	; Go to 20 metres depth, after 60 seconds execute next line
All_stop,0,0,0,0,0,0,120	; Stop all engines, after 120 seconds execute next line
Report_nearest_sound_contact,0,0,0,0,0,0,60	; Report nearest sound contact, after 60 seconds execute next line
Surface,0,0,0,0,0,0,0	; Surface, then immediately execute next line
Ahead_one_third,0,0,0,0,0,0,3360	; Engines one third ahead bell, after 3360 seconds (56 minutes) execute next line
Loop,-1,0,0,0,0,0,0	; Loop the script, i.e. go again to execute first line. Do it indefinitely ("-1 times").
[COMMANDS_END]
[DESCRIPTION]
Runs at TC x128 in NavMap mode, every ~1 hour does a sonar scan at depth of 20 metres, then goes back to surface to one third speed (bell 2).
Intended to use in open waters for searching contacts. Runs until stopped by user.
[DESCRIPTION_END]

[AS]
Regular standard speed sonar scan	; Script name
[CATEGORY]
Patrol routine scans	; Script category name
[COMMANDS]
Activate_NavMap_Station,0,0,0,0,0,1,0	; Switch to Navigation Map, do it only once during whole script run, then immediately execute next line
Set_Time_Compression,128,0,0,0,0,1,0	; Set TC to x128, do it only once during whole script run, then immediately execute next line
Print_message,0,0,New depth 20 m!,0,0,0,0	; Display the specified message, then immediately execute next line. If TC is low this particular message can show twice in the message box.
Set_new_depth,20,0,0,0,0,0,60	; Go to 20 metres depth, after 60 seconds execute next line
All_stop,0,0,0,0,0,0,120	; Stop all engines, after 120 seconds execute next line
Report_nearest_sound_contact,0,0,0,0,0,0,60	; Report nearest sound contact, after 60 seconds execute next line
Surface,0,0,0,0,0,0,0	; Surface, then immediately execute next line
Ahead_standard,0,0,0,0,0,0,3360	; Engines one third ahead bell, after 3360 seconds (56 minutes) execute next line
Loop,-1,0,0,0,0,0,0	; Loop the script, i.e. go again to execute first line. Do it indefinitely ("-1 times").
[COMMANDS_END]
[DESCRIPTION]
Runs at TC x128 in NavMap mode, every ~1 hour does a sonar scan at depth of 20 metres, then goes back to surface to standard speed (bell 3).
Intended to use in open waters for searching contacts. Runs until stopped by user.
[DESCRIPTION_END]


[AS]
Regular full speed sonar scan	; Script name
[CATEGORY]
Patrol routine scans	; Script category name
[COMMANDS]
Activate_NavMap_Station,0,0,0,0,0,1,0	; Switch to Navigation Map, do it only once during whole script run, then immediately execute next line
Set_Time_Compression,128,0,0,0,0,1,0	; Set TC to x128, do it only once during whole script run, then immediately execute next line
Print_message,0,0,New depth 20 m!,0,0,0,0	; Display the specified message, then immediately execute next line. If TC is low this particular message can show twice in the message box.
Set_new_depth,20,0,0,0,0,0,60	; Go to 20 metres depth, after 60 seconds execute next line
All_stop,0,0,0,0,0,0,120	; Stop all engines, after 120 seconds execute next line
Report_nearest_sound_contact,0,0,0,0,0,0,60	; Report nearest sound contact, after 60 seconds execute next line
Surface,0,0,0,0,0,0,0	; Surface, then immediately execute next line
Ahead_full,0,0,0,0,0,0,3360	; Engines one third ahead bell, after 3360 seconds (56 minutes) execute next line
Loop,-1,0,0,0,0,0,0	; Loop the script, i.e. go again to execute first line. Do it indefinitely ("-1 times").
[COMMANDS_END]
[DESCRIPTION]
Runs at TC x128 in NavMap mode, every ~1 hour does a sonar scan at depth of 20 metres, then goes back to surface to full speed (bell 4).
Intended to use in open waters for searching contacts. Runs until stopped by user.
[DESCRIPTION_END]


[AS]
Frequent flank speed sonar scan	; Script name
[CATEGORY]
Patrol routine scans	; Script category name
[COMMANDS]
Activate_NavMap_Station,0,0,0,0,0,1,0	; Switch to Navigation Map, do it only once during whole script run, then immediately execute next line
Set_Time_Compression,64,0,0,0,0,1,0	; Set TC to x64, do it only once during whole script run, then immediately execute next line
Print_message,0,0,New depth 20 m!,0,0,0,0	; Display the specified message, then immediately execute next line. If TC is low this particular message can show twice in the message box.
Set_new_depth,20,0,0,0,0,0,50	; Go to 20 metres depth, after 50 seconds execute next line
All_stop,0,0,0,0,0,0,30	; Stop all engines, after 30 seconds execute next line
Set_Time_Compression,1,0,0,0,0,0,0; Set TC to x1, then immediately seconds execute next line
Print_message,0,0,Surface and go ahead flank in 30 seconds!,0,0,0,15	; Display the specified message, after 15 seconds execute next line.
Report_nearest_sound_contact,0,0,0,0,0,0,15	; Report nearest sound contact, after 15 seconds execute next line
Activate_NavMap_Station,0,0,0,0,0,0,0	; Switch to Navigation Map, then immediately execute next line
Set_Time_Compression,64,0,0,0,0,0,0; Set TC to x64, then immediately execute next line
Surface,0,0,0,0,0,0,0	; Surface, then immediately execute next line
Ahead_flank,0,0,0,0,0,0,780	; Engines flank ahead bell, after 13 minutes execute next line. (flank can be changed to slow, one_third, standard, full)
Loop,-1,0,0,0,0,0,0	; Loop the script, i.e. go again to execute first line. Do it indefinitely ("-1 times").
[COMMANDS_END]
[DESCRIPTION]
Runs at TC x64 in NavMap mode, every 15 minutes does a very fast sonar check at depth of 20 metres, gives you a short period of TC x1 to adjust course, then goes back to surface to flank speed and TC x64.
Intended to use for course adjustments when chasing already heard target. Runs until stopped by user. Running speed can by very easily modified to suit your needs.
[DESCRIPTION_END]


[AS]
Single cruise speed sonar scan	; Script name
[CATEGORY]
Patrol routine scans	; Script category name
[COMMANDS]
Print_message,0,0,New depth 20 m!,0,0,0,0	; Display the specified message, then immediately execute next line. If TC is low this particular message can show twice in the message box.
Set_new_depth,20,0,0,0,0,0,60	; Go to 20 metres depth, after 60 seconds execute next line
All_stop,0,0,0,0,0,0,120	; Stop all engines, after 120 seconds execute next line
Report_nearest_sound_contact,0,0,0,0,0,0,60	; Report nearest sound contact, after 60 seconds execute next line
Surface,0,0,0,0,0,0,0	; Surface, then immediately execute next line
Ahead_slow,0,0,0,0,0,0,120	; Engines slow ahead bell, after 120 seconds execute next line
Set_new_speed,7.4,0,0,0,0,0,0 ; Set speed as 7.4 knots (most fuel efficient)
[COMMANDS_END]	; End of the script
[DESCRIPTION]
Does a sonar scan at depth of 20 metres, then goes back to surface to fuel efficient speed.
Runs once then stops, doesn't change TC or station, can be run in first person view.
[DESCRIPTION_END]



[AS]
Regular 3'15" (x1) range checks	; Script name
[CATEGORY]
Patrol routine plotting	; Script category name
[COMMANDS]
Set_Time_Compression,1,0,0,0,0,0,0	; Set TC to x1, then immediately execute next line.
Activate_NavMap_Station,0,0,0,0,0,0,0	; Switch to Navigation Map, then immediately execute next line.
Print_message,0,0,New measurement in 15 seconds!,0,0,0,5	; Display the specified message, after 5 seconds execute next line.
Print_message,0,0,New measurement in 10 seconds!,0,0,0,4	; Display the specified message, after 4 seconds execute next line.
Print_message,0,0,Get ready!,0,0,0,1	; Display the specified message, after 1 second execute next line.
Print_message,0,0,Five!,0,0,0,1	; Display the specified message, after 1 second execute next line.
Print_message,0,0,Four!,0,0,0,1	; Display the specified message, after 1 second execute next line.
Print_message,0,0,Three!,0,0,0,1	; Display the specified message, after 1 second execute next line.
Print_message,0,0,Two!,0,0,0,1	; Display the specified message, after 1 second execute next line.
Print_message,0,0,One!,0,0,0,1	; Display the specified message, after 1 second  execute next line.
Report_nearest_visual_contact,0,0,0,0,0,0,45 ; Order WO to report range and bearing to nearest visual contact, after 45 seconds execute next line.
Print_message,0,0,15 more seconds to finish plotting!,0,0,0,15	; Display the specified message, after 15 seconds execute next line.
Set_Time_Compression,64,0,0,0,0,0,118	; Set TC to x64, after 2 minutes execute next line (with -2 s adjustment to compensate for game/script clock issues).
Loop,-1,0,0,0,0,0,0	; Loop the script, i.e. go again to execute first line. Do it indefinitely ("-1 times").
[COMMANDS_END]
[DESCRIPTION]
Runs at TC x64 in NavMap mode, and every 3 minutes 15 seconds lets you do your plotting on NavMap (doesn't do it for you).
Only useful for so called 3'15" (3 minutes 15 seconds) method of determining target's accurate course and speed (for details check: http://www.paulwasserman.net/SHIII/).
Runs until stopped by user.
[DESCRIPTION_END]



[AS]
Regular 6'30" (x2) range checks	; Script name
[CATEGORY]
Patrol routine plotting	; Script category name
[COMMANDS]
Set_Time_Compression,1,0,0,0,0,0,0	; Set TC to x1, then immediately execute next line.
Activate_NavMap_Station,0,0,0,0,0,0,0	; Switch to Navigation Map, then immediately execute next line.
Print_message,0,0,New measurement in 15 seconds!,0,0,0,5	; Display the specified message, after 5 seconds execute next line.
Print_message,0,0,New measurement in 10 seconds!,0,0,0,4	; Display the specified message, after 4 seconds execute next line.
Print_message,0,0,Get ready!,0,0,0,1	; Display the specified message, after 1 second execute next line.
Print_message,0,0,Five!,0,0,0,1	; Display the specified message, after 1 second execute next line.
Print_message,0,0,Four!,0,0,0,1	; Display the specified message, after 1 second execute next line.
Print_message,0,0,Three!,0,0,0,1	; Display the specified message, after 1 second execute next line.
Print_message,0,0,Two!,0,0,0,1	; Display the specified message, after 1 second execute next line.
Print_message,0,0,One!,0,0,0,1	; Display the specified message, after 1 second  execute next line.
Report_nearest_visual_contact,0,0,0,0,0,0,45 ; Order WO to report range and bearing to nearest visual contact, after 45 seconds execute next line.
Print_message,0,0,15 more seconds to finish plotting!,0,0,0,15	; Display the specified message, after 15 seconds execute next line.
Set_Time_Compression,128,0,0,0,0,0,310	; Set TC to x128, after 5 minutes 15 seconds execute next line (with -5 s adjustment to compensate for game/script clock issues).
Loop,-1,0,0,0,0,0,0	; Loop the script, i.e. go again to execute first line. Do it indefinitely ("-1 times").
[COMMANDS_END]
[DESCRIPTION]
Runs at TC x128 in NavMap mode, and every 6 minutes 30 seconds lets you do your plotting on NavMap (doesn't do it for you).
Only useful for so called 3'15" (3 minutes 15 seconds) method of determining target's accurate course and speed (for details check: http://www.paulwasserman.net/SHIII/).
Runs until stopped by user.
[DESCRIPTION_END]



[AS]
Regular 13' (x4) range checks	; Script name
[CATEGORY]
Patrol routine plotting	; Script category name
[COMMANDS]
Set_Time_Compression,1,0,0,0,0,0,0	; Set TC to x1, then immediately execute next line.
Activate_NavMap_Station,0,0,0,0,0,0,0	; Switch to Navigation Map, then immediately execute next line.
Print_message,0,0,New measurement in 15 seconds!,0,0,0,5	; Display the specified message, after 5 seconds execute next line.
Print_message,0,0,New measurement in 10 seconds!,0,0,0,4	; Display the specified message, after 4 seconds execute next line.
Print_message,0,0,Get ready!,0,0,0,1	; Display the specified message, after 1 second execute next line.
Print_message,0,0,Five!,0,0,0,1	; Display the specified message, after 1 second execute next line.
Print_message,0,0,Four!,0,0,0,1	; Display the specified message, after 1 second execute next line.
Print_message,0,0,Three!,0,0,0,1	; Display the specified message, after 1 second execute next line.
Print_message,0,0,Two!,0,0,0,1	; Display the specified message, after 1 second execute next line.
Print_message,0,0,One!,0,0,0,1	; Display the specified message, after 1 second  execute next line.
Report_nearest_visual_contact,0,0,0,0,0,0,45 ; Order WO to report range and bearing to nearest visual contact, after 45 seconds execute next line.
Print_message,0,0,15 more seconds to finish plotting!,0,0,0,15	; Display the specified message, after 15 seconds execute next line.
Set_Time_Compression,128,0,0,0,0,0,695	; Set TC to x128, after 11 minutes 45 seconds execute next line (with -10 s adjustment to compensate for game/script clock issues).
Loop,-1,0,0,0,0,0,0	; Loop the script, i.e. go again to execute first line. Do it indefinitely ("-1 times").
[COMMANDS_END]
[DESCRIPTION]
Runs at TC x128 in NavMap mode, and every 13 minutes lets you do your plotting on NavMap (doesn't do it for you).
Only useful for so called 3'15" (3 minutes 15 seconds) method of determining target's accurate course and speed (for details check: http://www.paulwasserman.net/SHIII/).
Runs until stopped by user.
[DESCRIPTION_END]



[AS]
Regular 32'30" (x10) range checks	; Script name
[CATEGORY]
Patrol routine plotting	; Script category name
[COMMANDS]
Set_Time_Compression,1,0,0,0,0,0,0	; Set TC to x1, then immediately execute next line.
Activate_NavMap_Station,0,0,0,0,0,0,0	; Switch to Navigation Map, then immediately execute next line.
Print_message,0,0,New measurement in 15 seconds!,0,0,0,5	; Display the specified message, after 5 seconds execute next line.
Print_message,0,0,New measurement in 10 seconds!,0,0,0,4	; Display the specified message, after 4 seconds execute next line.
Print_message,0,0,Get ready!,0,0,0,1	; Display the specified message, after 1 second execute next line.
Print_message,0,0,Five!,0,0,0,1	; Display the specified message, after 1 second execute next line.
Print_message,0,0,Four!,0,0,0,1	; Display the specified message, after 1 second execute next line.
Print_message,0,0,Three!,0,0,0,1	; Display the specified message, after 1 second execute next line.
Print_message,0,0,Two!,0,0,0,1	; Display the specified message, after 1 second execute next line.
Print_message,0,0,One!,0,0,0,1	; Display the specified message, after 1 second  execute next line.
Report_nearest_visual_contact,0,0,0,0,0,0,45 ; Order WO to report range and bearing to nearest visual contact, after 45 seconds execute next line.
Print_message,0,0,15 more seconds to finish plotting!,0,0,0,15	; Display the specified message, after 15 seconds execute next line.
Set_Time_Compression,128,0,0,0,0,0,1850	; Set TC to x128, after 31 minutes 15 seconds execute next line (with -25 s adjustment to compensate for game/script clock issues).
Loop,-1,0,0,0,0,0,0	; Loop the script, i.e. go again to execute first line. Do it indefinitely ("-1 times").
[COMMANDS_END]
[DESCRIPTION]
Runs at TC x128 in NavMap mode, and every 32 minutes 30 seconds lets you do your plotting on NavMap (doesn't do it for you).
Only useful for so called 3'15" (3 minutes 15 seconds) method of determining target's accurate course and speed (for details check: http://www.paulwasserman.net/SHIII/).
Runs until stopped by user.
[DESCRIPTION_END]



[AS]
Reminder: Report to BdU	; Script name
[CATEGORY]
Patrol routine reminders	; Script category name
[COMMANDS]
Wait,0,0,0,0,0,0,86400	; Wait 24 hours, then execute the next line. 
Set_Time_Compression,1,0,0,0,0,0,0	; Set TC to x1, then immediately execute next line
Print_message,0,0,Time to send situation report to BdU Herr Kaleun!,0,0,0,86400	; Display the specified message, then wait 24 hours and execute next line. 
Loop,-1,0,0,0,0,0,0	; Loop the script, i.e. go again to execute first line. Do it indefinitely ("-1 times").
[COMMANDS_END]	; End of the script
[DESCRIPTION]
Every 24 hours reminds to send a situational report to BdU, drops TC to x1. Activate at the time you want to send your reports at.
Runs until stopped by user.
[DESCRIPTION_END]


[AS]
Reminder: Special Meal	; Script name
[CATEGORY]
Patrol routine reminders	; Script category name
[COMMANDS]
Wait,0,0,0,0,0,0,9000	; Wait 2.5 hours, then execute the next line. 
Set_Time_Compression,1,0,0,0,0,0,0	; Set TC to x1, then immediately execute next line
Print_message,0,0,Olaf caught some fresh fish to cook Herr Kaleun!,0,0,0,9000	; Display the specified message, then wait 2.5 hours and execute next line. 
Loop,-1,0,0,0,0,0,0	; Loop the script, i.e. go again to execute first line. Do it indefinitely ("-1 times").
[COMMANDS_END]	; End of the script
[DESCRIPTION]
Every 2 and a half hours reminds that a Special Meal from the Cook is available, drops TC to x1. Activate when you order your Special Meal for the first time.
Runs until stopped by user.
[DESCRIPTION_END]


[AS]
Reminder: News from Vaterland	; Script name
[CATEGORY]
Patrol routine reminders	; Script category name
[COMMANDS]
Wait,0,0,0,0,0,0,88200	; Wait 24.5 hours, then execute the next line. 
Set_Time_Compression,1,0,0,0,0,0,0	; Set TC to x1, then immediately execute next line
Print_message,0,0,Let's ask Wolfi for some radio news from Vaterland Herr Kaleun!,0,0,0,88200	; Display the specified message, then wait 24.5 hours and execute next line. 
Loop,-1,0,0,0,0,0,0	; Loop the script, i.e. go again to execute first line. Do it indefinitely ("-1 times").
[COMMANDS_END]	; End of the script
[DESCRIPTION]
Every 24 and half hours reminds to order Radio News from Germany from the Radioman, drops TC to x1. Activate when you order your Fresh News for the first time.
Runs until stopped by user.
[DESCRIPTION_END]


[AS]
Bernaaard!!!	; Script name
[CATEGORY]
Patrol routine specials	; Script category name
[COMMANDS]
Wait,0,0,0,0,0,0,61920
Surface,0,0,0,0,0,0,180
Print_message,0,0,Bernaaard!!!,0,0,0,61920
All_stop,0,0,0,0,0,0,180
Print_message,0,0,Bernaaard!!!,0,0,0,61920
Set_new_course,249,0,0,0,0,0,180
Print_message,0,0,Bernaaard!!!,0,0,0,61920
Rise_whole_periscope,0,0,0,0,0,0,180
Print_message,0,0,Bernaaard!!!,0,0,0,61920
Get_depth_under_sub_keel,0,0,0,0,0,0,180
Print_message,0,0,Bernaaard!!!,0,0,0,61920
Disable_silent_running,0,0,0,0,0,0,180
Print_message,0,0,Bernaaard!!!,0,0,0,61920
Set_new_course,71,0,0,0,0,0,180
Print_message,0,0,Bernaaard!!!,0,0,0,61920
Ahead_slow,0,0,0,0,0,0,180
Print_message,0,0,Bernaaard!!!,0,0,0,61920
Print_message,0,0,He's sleeping... Let's paint his face.,0,0,0,61920
Ahead_flank,0,0,0,0,0,0,180
Print_message,0,0,Bernaaard!!!,0,0,0,61920
Periscope_depth,0,0,0,0,0,0,180
Print_message,0,0,Bernaaard!!!,0,0,0,61920
Back_full,0,0,0,0,0,0,180
Print_message,0,0,Bernaaard!!!,0,0,0,61920
Set_guns,2,1,0,1,4,0,0
Print_message,0,0,Bernaaard!!!,0,0,0,61920
Rise_whole_obs_periscope,0,0,0,0,0,0,180
Print_message,0,0,Bernaaard!!!,0,0,0,61920
All_stop,0,0,0,0,0,0,180
Print_message,0,0,Bernaaard!!!,0,0,0,61920
Set_new_depth_relative,30,0,0,0,0,0,180
Print_message,0,0,Bernaaard!!!,0,0,0,61920
Knuckle_port,0,0,0,0,0,0,180
Print_message,0,0,Bernaaard!!!,0,0,0,61920
Set_new_course,180,0,0,0,0,0,180
Print_message,0,0,Bernaaard!!!,0,0,0,61920
Surface,0,0,0,0,0,0,180
Print_message,0,0,Bernaaard!!!,0,0,0,61920
Disable_silent_running,0,0,0,0,0,0,180
Print_message,0,0,Bernaaard!!!,0,0,0,61920
Loop,-1,0,0,0,0,0,0
[COMMANDS_END]	; End of the script
[DESCRIPTION]
Let Bernard on your boat.
Lives until you keelhaul him or he kills you and your crew.
Use at your own risk.
[DESCRIPTION_END]
__________________
Long, hard, wet and full of seamen. My precious.
SH3+GWX+OLC — sunk x4, retired x2; SH5+TDW — still exploring
My SH5 mods: EQuaTool - Elite Quality Map Tools, Patrol Routine Scripts, No Logo Intro Menu_Animation, Less Annoying Stopwatch
Links: SH5 mods I use, FileFront, Manual plotting how-to

Last edited by Abd_von_Mumit; 09-04-2010 at 11:16 AM.
Abd_von_Mumit is offline   Reply With Quote
Old 09-01-2010, 09:06 AM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

just a question: why have the scripts run indefinitely until stopped by user? I put bits in them to have them stop, pause, pause game, or terminate script on contact spotted to avoid user intervention required. What you've done isn't incorrect or wrong in any way. I'm just curious as to why you set them up that way.
TheDarkWraith is offline   Reply With Quote
Old 09-01-2010, 09:10 AM   #4
Abd_von_Mumit
The Old Man
 
Join Date: Jan 2007
Location: Warszawa, Polska
Posts: 1,453
Downloads: 46
Uploads: 4
Default

Quote:
Originally Posted by TheDarkWraith View Post
just a question: why have the scripts run indefinitely until stopped by user? I put bits in them to have them stop, pause, pause game, or terminate script on contact spotted to avoid user intervention required. What you've done isn't incorrect or wrong in any way. I'm just curious as to why you set them up that way.
I see an update for this micro mod coming.

The answer to your question is - I didn't know. Must check the documentation again. Is it in ./data/Automation/TDW_Automation.SHA or some other place?
__________________
Long, hard, wet and full of seamen. My precious.
SH3+GWX+OLC — sunk x4, retired x2; SH5+TDW — still exploring
My SH5 mods: EQuaTool - Elite Quality Map Tools, Patrol Routine Scripts, No Logo Intro Menu_Animation, Less Annoying Stopwatch
Links: SH5 mods I use, FileFront, Manual plotting how-to
Abd_von_Mumit is offline   Reply With Quote
Old 09-01-2010, 09:14 AM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Abd_von_Mumit View Post
I see an update for this micro mod coming.

The answer to your question is - I didn't know. Must check the documentation again. Is it in ./data/Automation/TDW_Automation.SHA or some other place?
yes it's in the TDW_Automation.SHA fie:

; Sweep_Scope,x,y,a,b,c,0,t - sweep the scope from a start of y degrees to an end of a degrees. Time to sweep from y to a determined by b. Next command will be issued after time t (time t doesn't start until sweeping complete). x = the scope station number (0=attack, 1=obs, 2=UZO). c is a decimal number representing the bits set for the following options (use windows calc to input binary number then convert to decimal):
; this function will wait for scope station to be visible (will wait for 15 seconds and if not visible then a skip command will be issued)
; bit 0 = lock the contact on contact spotted (if bit 2,3,4, or 5 isn't set then contact will be immediately unlocked)
; bit 1 = set current heading for contact on contact spotted
; bit 2 = stop sweep on contact spotted
; bit 3 = stop sweep and follow target on contact spotted
; bit 4 = pause sweep on contact spotted
; bit 5 = pause sweep and follow target on contact spotted
; bit 6 = pause game (and either also pause sweep) on contact spotted
; bit 7 = abort script on contact spotted
; bit 8 = inform user that contact was detected


; Sweep_hydrophone,x,y,a,b - sweep the hydrophone from a start of x degrees to an end of y degrees. Time to sweep from x to y determined by a. Next command will be issued after time t (time t doesn't start until sweeping complete). b is a decimal number representing the bits set for the following options (use windows calc to input binary number then convert to decimal):
; this function will wait for scope station to be visible (will wait for 15 seconds and if not visible then a skip command will be issued)
; bit 0 = inform user that contact was detected
; bit 1 = set current heading for contact on Unknown contact detected
; bit 2 = set current heading for contact on Warship contact detected
; bit 3 = set current heading for contact on Merchant contact detected
; bit 4 = stop sweep on Unknown contact detected
; bit 5 = stop sweep on Warship contact detected
; bit 6 = stop sweep on Merchant contact detected
; bit 7 = pause sweep on Unknown contact detected
; bit 8 = pause sweep on Warship contact detected
; bit 9 = pause sweep on Merchant contact detected
; bit 10 = pause game (and either also pause sweep) on contact detected
; bit 11 = abort script on contact detected
; bit 12 = set time compression to 1 on contact detected

bit 12 of Sweep_hydrophone will be in v4.2.0
TheDarkWraith is offline   Reply With Quote
Old 09-01-2010, 09:21 AM   #6
Abd_von_Mumit
The Old Man
 
Join Date: Jan 2007
Location: Warszawa, Polska
Posts: 1,453
Downloads: 46
Uploads: 4
Default

I didn't use the Sweep commands as I understood that they move the player to the station instead of doing the sweep in background. I'll now check them. Thanks.
__________________
Long, hard, wet and full of seamen. My precious.
SH3+GWX+OLC — sunk x4, retired x2; SH5+TDW — still exploring
My SH5 mods: EQuaTool - Elite Quality Map Tools, Patrol Routine Scripts, No Logo Intro Menu_Animation, Less Annoying Stopwatch
Links: SH5 mods I use, FileFront, Manual plotting how-to
Abd_von_Mumit is offline   Reply With Quote
Old 09-01-2010, 09:49 AM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Abd_von_Mumit View Post
I didn't use the Sweep commands as I understood that they move the player to the station instead of doing the sweep in background. I'll now check them. Thanks.
they will not work unless you have the station activated. I made the activate stations commands 'move' you there and then 'move' you back to where you were when you leave them.
TheDarkWraith is offline   Reply With Quote
Old 09-01-2010, 10:02 AM   #8
Abd_von_Mumit
The Old Man
 
Join Date: Jan 2007
Location: Warszawa, Polska
Posts: 1,453
Downloads: 46
Uploads: 4
Default

Quote:
Originally Posted by TheDarkWraith View Post
they will not work unless you have the station activated. I made the activate stations commands 'move' you there and then 'move' you back to where you were when you leave them.
So this is the answer to your question - I can't use these two commands as the script is intended to run "silently" in high TC. However I'll test them a bit and consider making alternative scripts for those who don't mind going to lower TC and manning the station themselves as well. Maybe we'll find some more issues to fix.
__________________
Long, hard, wet and full of seamen. My precious.
SH3+GWX+OLC — sunk x4, retired x2; SH5+TDW — still exploring
My SH5 mods: EQuaTool - Elite Quality Map Tools, Patrol Routine Scripts, No Logo Intro Menu_Animation, Less Annoying Stopwatch
Links: SH5 mods I use, FileFront, Manual plotting how-to
Abd_von_Mumit is offline   Reply With Quote
Old 09-01-2010, 10:11 AM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Abd_von_Mumit View Post
So this is the answer to your question - I can't use these two commands as the script is intended to run "silently" in high TC. However I'll test them a bit and consider making alternative scripts for those who don't mind going to lower TC and manning the station themselves as well. Maybe we'll find some more issues to fix.
there are commands available to automatically man and disman the stations in Automation
TheDarkWraith is offline   Reply With Quote
Old 09-01-2010, 10:39 AM   #10
Abd_von_Mumit
The Old Man
 
Join Date: Jan 2007
Location: Warszawa, Polska
Posts: 1,453
Downloads: 46
Uploads: 4
Default

Quote:
Originally Posted by TheDarkWraith View Post
there are commands available to automatically man and disman the stations in Automation
But would Sweep_hydrophone,x,y,a,b work as intended if the station was unmanned immediately upon command start and TC x128 restored? As I understand manning the station drops TC to 1, so I would then have to:
1. switch to NavMap (TC x128 is not possible in first person view),
2. Restore TC x128
__________________
Long, hard, wet and full of seamen. My precious.
SH3+GWX+OLC — sunk x4, retired x2; SH5+TDW — still exploring
My SH5 mods: EQuaTool - Elite Quality Map Tools, Patrol Routine Scripts, No Logo Intro Menu_Animation, Less Annoying Stopwatch
Links: SH5 mods I use, FileFront, Manual plotting how-to
Abd_von_Mumit is offline   Reply With Quote
Old 09-01-2010, 10:47 AM   #11
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Abd_von_Mumit View Post
But would Sweep_hydrophone,x,y,a,b work as intended if the station was unmanned immediately upon command start and TC x128 restored?
nope. I have condition in the Sweep_hydrophone command that says if station is not manned in 15 seconds to order a skip command.
TheDarkWraith is offline   Reply With Quote
Old 09-01-2010, 10:54 AM   #12
Abd_von_Mumit
The Old Man
 
Join Date: Jan 2007
Location: Warszawa, Polska
Posts: 1,453
Downloads: 46
Uploads: 4
Default

Quote:
Originally Posted by TheDarkWraith View Post
nope. I have condition in the Sweep_hydrophone command that says if station is not manned in 15 seconds to order a skip command.
So conclusion is I can't use the two Sweep commands without interrupting TC x128, is that correct?

Btw, while testing the scripts I came to conclusion that there should be a "Description" tag that would show its value on hover in game. Well, also a "Print" would be good, that sends its value to message box, possibly with some parameters... I know, I know... :P
__________________
Long, hard, wet and full of seamen. My precious.
SH3+GWX+OLC — sunk x4, retired x2; SH5+TDW — still exploring
My SH5 mods: EQuaTool - Elite Quality Map Tools, Patrol Routine Scripts, No Logo Intro Menu_Animation, Less Annoying Stopwatch
Links: SH5 mods I use, FileFront, Manual plotting how-to
Abd_von_Mumit is offline   Reply With Quote
Old 09-01-2010, 10:59 AM   #13
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Abd_von_Mumit View Post
So conclusion is I can't use the two Sweep commands without interrupting TC x128, is that correct?

Btw, while testing the scripts I came to conclusion that there should be a "Description" tag that would show its value on hover in game. Well, also a "Print" would be good, that sends its value to message box, possibly with some parameters... I know, I know... :P
manning hydrophone doesn't drop your TC level to 1. Just tried it at TC32 and it stayed at 32.

You can exceed 32 inside the sub but you have to edit your \Documents\SH5\data\cfg\main.cfg file:

[TIME COMPRESSION]
; The first value is the default one, the second value is used when 'travel mode' is activated.
; The two values should be separated by a comma.
; If only one value is specified, that value is used for both default and travel mode.
TimeStop=0
RealTime=1
LandProximity=8,8192
CriticalDamage=1,1024
CrewEfficiency=128
AirEnemyDetected=1,8
SoundEffects=2
CharacterAnim=32
FriendDetected=32,8192
EnemyDetected=8,64
RadioReport=32,8192
Particles=32
PrayState=8,32
HunterState=8,32
3DRender=32
Maximum=8192

I believe 3DRender is the value that will need to be changed to be able to exceed 32 inside the sub.

What is this "Description" tag and "Print" that you are referencing? What would they do?
TheDarkWraith is offline   Reply With Quote
Old 09-01-2010, 11:11 AM   #14
Abd_von_Mumit
The Old Man
 
Join Date: Jan 2007
Location: Warszawa, Polska
Posts: 1,453
Downloads: 46
Uploads: 4
Default

Quote:
Originally Posted by TheDarkWraith View Post
[...] I believe 3DRender is the value that will need to be changed to be able to exceed 32 inside the sub.
I understand that, but that would require players to manually edit the file if they wanted the TC to be higher than x32, which kind of defeats the purpose of this simple little mod. I'll think about it though.

Quote:
Originally Posted by TheDarkWraith View Post
What is this "Description" tag and "Print" that you are referencing? What would they do?
Description would be to tell player what the automation script does or whatever else the author would need to include in it. This would serve user friendliness - I assume the number of user scripts will grow fast as time passes, and one day people will have too many of them to remember what each one of them is for (name is too short to include all details). As an example for my main script the value of Description would say something like:
Runs at TC x128 in NavMap mode,
every ~1 hour does a sonar scan at depth of 20 metres
then goes back to surface to fuel efficient speed,
intended to use in open waters for searching contacts.
Runs until stopped by user.
This would show on mouse hover in Automation window.

Print would just post a message in message box, for example I would add a line that says "New depth 20 metres", as for a reason I don't know Set_new_depth doesn't give a message in message box at all.

It could serve other purposes, like a script that reminds you every X hours to do something ("Herr Kaleun, time to clean the toilet Sir!", "Talk to Cook for another Special Meal", "Past Midnight, time to update your ChalkBoard!") and so on.


Another suggestion is: the message box info about a loop being started again is a bit of an immersion killer. Players use scripts, but do they want to be reminded about that in the message box?
__________________
Long, hard, wet and full of seamen. My precious.
SH3+GWX+OLC — sunk x4, retired x2; SH5+TDW — still exploring
My SH5 mods: EQuaTool - Elite Quality Map Tools, Patrol Routine Scripts, No Logo Intro Menu_Animation, Less Annoying Stopwatch
Links: SH5 mods I use, FileFront, Manual plotting how-to

Last edited by Abd_von_Mumit; 09-01-2010 at 11:22 AM.
Abd_von_Mumit is offline   Reply With Quote
Old 09-01-2010, 11:16 AM   #15
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Abd_von_Mumit View Post
Description would be to tell player what the automation script does or whatever else the author would need to include in it. This would serve user friendliness - I assume the number of user scripts will grow fast as time passes, and one day people will have too many of them to remember what each one of them is for (name is too short to include all details). As an example for my main script the value of Description would say something like:
Runs at TC x128 in NavMap mode,
every ~1 hour does a sonar scan at depth of 20 metres
then goes back to surface to fuel efficient speed,
intended to use in open waters for searching contacts.
Runs until stopped by user.
This would show on mouse hover in Automation window.

Print would just post a message in message box, for example I would add a line that says "New depth 20 metres", as for a reason I don't know Set_new_depth doesn't give a message in message box at all.

It could serve other purposes, like a script that reminds you every X hours to do something ("Herr Kaleun, time to clean the toilet Sir!", "Talk to Cook for another Special Meal", "Past Midnight, time to update your ChalkBoard!") and so on.

Another suggestion is: the message box info about a loop being started again is a bit of an immersion killer. Players use scripts, but do they want to be reminded about that in the message box?
I like the Print thing...I'll add a new command in Automation for this

Description I like also but it would fundamentally change the script parser....I'll see what I can do.

What I'll do about the start, stop, and loop message box messages from Automation is to define a user option so you can control if they are all displayed or not.
TheDarkWraith is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 08:32 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Copyright © 1995- 2022 Subsim®
"Subsim" is a registered trademark, all rights reserved.