SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   Silent Hunter 5 (https://www.subsim.com/radioroom/forumdisplay.php?f=244)
-   -   Two Hydrophone Automation scripts (https://www.subsim.com/radioroom/showthread.php?t=254293)

vanjast 12-29-22 05:08 PM

Two Hydrophone Automation scripts
 
Some might like to be moving while listening.
This script runs for 12 hours game time.
3 sessions of 4 hours each, coming up to refresh Oxygen and compressed air.

Code:

[AS]
12 Hour Hydrophone Loop
[DESCRIPTION]
Ahead Slow Hydraphone Loop
May start surfaced or submerged
[DESCRIPTION_END]
[CATEGORY]
Search
[SUBCATEGORY]
Hydrophone Search
[COMMANDS]
Ahead_slow,0,0,0,0,0,0,0                                        ;Go slow
Activate_hydrophone_station,0,0,0,0,0,0,10        ;Goto Hydrophone
Set_new_depth,25,0,0,0,0,0,0                                ;25m depth
Set_Time_Compression,128,0,0,0,0,0,0                ;add some caffeine
;1 hour = 12 x 5 minute sweeps
Sweep_hydrophone,0,360,300,7281,0,0,0                ;Sweep 360 degrees
Sweep_hydrophone,0,360,300,7281,0,0,0                ;Do sweep in 5 minutes
Sweep_hydrophone,0,360,300,7281,0,0,0                ;On contact...
Sweep_hydrophone,0,360,300,7281,0,0,0                ;- Inform Kaleun
Sweep_hydrophone,0,360,300,7281,0,0,0                ;- Stop sweep on unknown
Sweep_hydrophone,0,360,300,7281,0,0,0                ;- Stop sweep on merchant
Sweep_hydrophone,0,360,300,7281,0,0,0                ;- Stop sweep on warship
Sweep_hydrophone,0,360,300,7281,0,0,0                ;- Pause game
Sweep_hydrophone,0,360,300,7281,0,0,0                ;- abort script
Sweep_hydrophone,0,360,300,7281,0,0,0                ;- Set TC=1
Sweep_hydrophone,0,360,300,7281,0,0,0
;1 hour = 12 x 5 minute sweeps
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
;1 hour = 12 x 5 minute sweeps
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
;1 hour = 12 x 5 minute sweeps
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
;
Set_new_depth,12,0,0,0,0,0,300                                ;Scope depth for a sweep
Activate_Scope_Station,1,0,0,0,0,0,20                ;Obs Scope
Rise_whole_obs_periscope,0,0,0,0,0,0,10                ;Raise it of course
Sweep_Scope,1,0,360,60,197,0                                ;Sweep/On contact TC=1, Abort Script, Report
Lower_whole_obs_periscope,0,0,0,0,0,0,10        ;Lower scope
Activate_hydrophone_station,0,0,0,0,0,0,10        ;Back to hyrophone
Surface,0,0,0,0,0,0,180                                                ;Surface
Report_nearest_visual_contact,0,0,0,0,0,0,1        ;Any surface contacts
Wait,0,0,0,0,0,0,300                                                ;5 min to replenish Compressed air and O2
Set_Time_Compression,1,0,0,0,0,0,0                        ;TC=1
Loop,3,0,0,0,0,0,0                                                        ;12 hour cycle
[COMMANDS_END]


Some like to just hang around (like me) waiting for some action.
Same script as above, but a 24 hour session.
Usefull when you suspect ships travelling past an area.
You can sit close to airbases spring the trap on unsuspecting ships.
Code:

[AS]
24 Hour Hydrophone Loop
[DESCRIPTION]
Stationary Hydrophone search
May start surfaced or submerged
[DESCRIPTION_END]
[CATEGORY]
Search
[SUBCATEGORY]
Hydrophone Search
[COMMANDS]
All_stop,0,0,0,0,0,0,0                                                ;Stop
Activate_hydrophone_station,0,0,0,0,0,0,15        ;Goto Hydrophone       
Set_new_depth,30,0,0,0,0,0,0                                ;30m depth
Set_Time_Compression,128,0,0,0,0,0,0                ;add some caffeine
;1 hour = 12 x 5 minute sweeps
Sweep_hydrophone,0,360,300,7281,0,0,0                ;Sweep 360 degrees
Sweep_hydrophone,0,360,300,7281,0,0,0                ;Do sweep in 5 minutes
Sweep_hydrophone,0,360,300,7281,0,0,0                ;On contact...
Sweep_hydrophone,0,360,300,7281,0,0,0                ;- Inform Kaleun
Sweep_hydrophone,0,360,300,7281,0,0,0                ;- Stop sweep on unknown
Sweep_hydrophone,0,360,300,7281,0,0,0                ;- Stop sweep on merchant
Sweep_hydrophone,0,360,300,7281,0,0,0                ;- Stop sweep on warship
Sweep_hydrophone,0,360,300,7281,0,0,0                ;- Pause game
Sweep_hydrophone,0,360,300,7281,0,0,0                ;- abort script
Sweep_hydrophone,0,360,300,7281,0,0,0                ;- Set TC=1
Sweep_hydrophone,0,360,300,7281,0,0,0
;1 hour = 12 x 5 minute sweeps
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
;1 hour = 12 x 5 minute sweeps
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
;1 hour = 12 x 5 minute sweeps
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
Sweep_hydrophone,0,360,300,7281,0,0,0
;
Set_new_depth,12,0,0,0,0,0,300                                ;5min to Scope depth for a sweep
Activate_Scope_Station,1,0,0,0,0,0,20                ;Obs Scope
Rise_whole_obs_periscope,0,0,0,0,0,0,10                ;Raise it of course
Sweep_Scope,1,0,360,60,197,0                                ;Sweep/On contact TC=1, Abort Script, Report
Lower_whole_obs_periscope,0,0,0,0,0,0,10        ;Lower scope
Activate_hydrophone_station,0,0,0,0,0,0,10        ;Back to hyrophone
Surface,0,0,0,0,0,0,180                                                ;Surface
Report_nearest_visual_contact,0,0,0,0,0,0,1        ;Any surface contacts
Wait,0,0,0,0,0,0,300                                                ;5min to replenish Compressed air and O2
Set_Time_Compression,1,0,0,0,0,0,0                        ;TC=1
Loop,6,0,0,0,0,0,0                                                        ;24 hour cycle
[COMMANDS_END]

On any contact, the game pauses/TC=1, and the script aborts leaving you to take control.
I made it so that all you need is a pair of headphones, or roam around the house doing other things.

No licenses, no restrictions... free to do what you want.:up:
Copy and paste into TDW '*.sha' file of your name choice.
Place in the ..../SH5/data/Automation folder

GrenSo 12-30-22 10:18 AM

Nice and many thanks. :salute:


I will try it the next time, if I have time, if I play SH5 again.


All times are GMT -5. The time now is 03:45 AM.

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