SUBSIM Radio Room Forums



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

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

Reply
 
Thread Tools Display Modes
Old 12-29-22, 05:08 PM   #1
vanjast
Sea Lord
 
Join Date: Jun 2006
Location: Somewhere else now
Posts: 1,660
Downloads: 783
Uploads: 4
Default 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.
Copy and paste into TDW '*.sha' file of your name choice.
Place in the ..../SH5/data/Automation folder
vanjast is offline   Reply With Quote
Old 12-30-22, 10:18 AM   #2
GrenSo
Grey Wolf
 
Join Date: Apr 2019
Location: Germany
Posts: 840
Downloads: 583
Uploads: 7


Default

Nice and many thanks.


I will try it the next time, if I have time, if I play SH5 again.
__________________
Best regards,
GrenSo


“Mankind must put an end to war, or war will put an end to mankind.” - J.F.K.
GrenSo is offline   Reply With Quote
Reply


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 11:21 PM.


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.