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 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 08-14-10, 11:28 AM   #1
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default Automation

Big thanks to TDW for this new feature in hid UI mod.

I am still trying to create one. Here is what I have so far:-

[AS]
patrol
[CATEGORY]
Search on patrol
[COMMANDS]
Set_Time_Compression,1,0,0,0,0,0,0
Activate_Radar_Station,0,0,0,0,0,0,5 (this does not work)
Wait,0,0,0,0,0,0,2
Radar_turn_on,0,0,0,0,0,0,0
Radar_set_continuous_sweep_mode,0,0,0,0,0,0,60
Radar_toggle_range,0,0,0,0,0,0,60
Camera_on_next_unit,0,0,0,0,0,0,5
Wait,0,0,0,0,0,0,2
Get_depth_under_sub_keel,0,0,0,0,0,0,2
Periscope_depth,0,0,0,0,0,0,60
Ahead_slow,0,0,0,0,0,0,0
Activate_Hydrophone_Station,0,0,0,0,0,0,2 (this does not work)
Wait,0,0,0,0,0,0,2
Hydrophone_normal_sweep,0,0,0,0,0,0,90
Report_nearest_sound_contact,0,0,0,0,0,0,10
Rise_whole_periscope,0,0,0,0,0,0,6
Activate_Scope_Station,0,0,0,0,0,0,0
Wait,0,0,0,0,0,0,2
Sweep_Scope,0,0,360,120.0,0,0,1
Report_nearest_visual_contact,0,0,0,0,0,0,1
Leave_Scope_Station,0,0,0,0,0,0,0
Lower_whole_periscope,0,0,0,0,0,0,0
Wait,0,0,0,0,0,0,10
Camera_on_next_unit,0,0,0,0,0,0,5
Wait,0,0,0,0,0,0,2
Surface,0,0,0,0,0,0,60
Ahead_standard,0,0,0,0,0,0,5
Return_to_course,0,0,0,0,0,0,5
Activate_NavMap_Station,0,0,0,0,0,0,15
Set_Time_Compression,512,0,0,0,0,0,0
Wait,0,0,0,0,0,0,9000
Leave_NavMap_Station,0,0,0,0,0,0,0
Loop,2,0,0,0,0,0,0
[COMMANDS_END]


I have not been at this for very long but I was wondering what others are automating?

Also any tips would be great

Edit: To make your own or use automations you need TDW UI Mod v4.03 or higher.

Open your SilentHunter5\Date\Automation folder.
Create new text document and open it. You should also open TDW_Automation to get a list of commands to use.
Start with:-

[AS]
enter script name here
[CATEGORY]
enter category name here
[COMMANDS]
enter your first command here
take a new line for each command
[COMMANDS_END] to finish

; at start of line stops it form being used (handy if tou are testing)
every thing you need to know is in the TDW_Automation.SHA

Once you are finished save the text file as .SHA (select save as and under typr choose all then add .SHA to the file name)
__________________
Trevally Mods for SH5

Last edited by Trevally.; 08-16-10 at 01:00 PM.
Trevally. is offline   Reply With Quote
Old 08-14-10, 11:31 AM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

from the TDW_Automation.SHA file:

; Do not use the below as they cause problems!
; Activate_radar,0,0,0,0,0,0,t - activate radar (turn on) if installed
; Deactivate_radar,0,0,0,0,0,0,t - deactivate radar (turn off) if installed
; Radar_continuous_sweep,0,0,0,0,0,0,t
; Radar_one_sweep,0,0,0,0,0,0,t
; Rig_for_silent_running,0,0,0,0,0,0,t
; Secure_from_silent_running,0,0,0,0,0,0,t - secure from silent running
TheDarkWraith is offline   Reply With Quote
Old 08-14-10, 11:36 AM   #3
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default

Thanks TDW, i should pay more attention
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 08-14-10, 11:54 AM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Trevally. View Post
Thanks TDW, i should pay more attention
you did give me some good ideas for commands to add though I should add a hydrophone station command that will place you in front of the hydrophone station and another command to sweep the hydrophone like I did for the scope. Should do the same for radar
TheDarkWraith is offline   Reply With Quote
Old 08-14-10, 12:05 PM   #5
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default

Thanks TDW that would be great.

At this stage:-

Camera_on_next_unit,0,0,0,0,0,0,5
Wait,0,0,0,0,0,0,2
Get_depth_under_sub_keel,0,0,0,0,0,0,2
Periscope_depth,0,0,0,0,0,0,60

I wanted the camera to view the sub during the dive but the boat wont dive as it says "crew still on deck". Any way around this anyone?
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 08-14-10, 12:09 PM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Trevally. View Post
Thanks TDW that would be great.

At this stage:-

Camera_on_next_unit,0,0,0,0,0,0,5
Wait,0,0,0,0,0,0,2
Get_depth_under_sub_keel,0,0,0,0,0,0,2
Periscope_depth,0,0,0,0,0,0,60

I wanted the camera to view the sub during the dive but the boat wont dive as it says "crew still on deck". Any way around this anyone?
you need to be below decks for the periscope depth. Hmm, I should let you pass parameter 1 a value of 1 as to teleport if you're not below decks
TheDarkWraith is offline   Reply With Quote
Old 08-14-10, 01:04 PM   #7
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default

I swapped the comands over and this time I could watch the boat go to Periscope depth.

Get_depth_under_sub_keel,0,0,0,0,0,0,2
Periscope_depth,0,0,0,0,0,0,0
Camera_on_next_unit,0,0,0,0,0,0,5
Wait,0,0,0,0,0,0,2

The next stage was to listen, so far so good. two contacts.

Next was goto scope station - this did not work, I was stuck on the external camera.
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 08-14-10, 01:21 PM   #8
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Trevally. View Post
I swapped the comands over and this time I could watch the boat go to Periscope depth.

Get_depth_under_sub_keel,0,0,0,0,0,0,2
Periscope_depth,0,0,0,0,0,0,0
Camera_on_next_unit,0,0,0,0,0,0,5
Wait,0,0,0,0,0,0,2

The next stage was to listen, so far so good. two contacts.

Next was goto scope station - this did not work, I was stuck on the external camera.
yes because you went to external cam from the camera on next unit. Give the command 'Toggle_free_camera'
TheDarkWraith is offline   Reply With Quote
Old 08-14-10, 01:22 PM   #9
Krauter
Ocean Warrior
 
Join Date: Aug 2007
Location: Montreal, Canada
Posts: 2,983
Downloads: 102
Uploads: 1
Default

I still can't get mine working
__________________
Quote:
The U.S almost went to war over some missles in Cuba... Thank god the X-Men were there to save us right?
Krauter is offline   Reply With Quote
Old 08-14-10, 01:32 PM   #10
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Krauter View Post
I still can't get mine working
then I would suggest turning the user option on for Automation debugging, enabling script debugging in your \Documents\SH5\cfg\main.cfg file and see what it tells you at game start.
TheDarkWraith is offline   Reply With Quote
Old 08-14-10, 01:35 PM   #11
Krauter
Ocean Warrior
 
Join Date: Aug 2007
Location: Montreal, Canada
Posts: 2,983
Downloads: 102
Uploads: 1
Default

I did lol.. can't understand what it is telling me
__________________
Quote:
The U.S almost went to war over some missles in Cuba... Thank god the X-Men were there to save us right?
Krauter is offline   Reply With Quote
Old 08-14-10, 01:41 PM   #12
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Krauter View Post
I did lol.. can't understand what it is telling me
post a screenshot
TheDarkWraith is offline   Reply With Quote
Old 08-14-10, 01:44 PM   #13
Krauter
Ocean Warrior
 
Join Date: Aug 2007
Location: Montreal, Canada
Posts: 2,983
Downloads: 102
Uploads: 1
Default

Aye sir, I ill post one when I do another try

I think it has to do with the t value that you were telling me about, yet from what I've tried it doesnt matter if I set it to 0, delete it or set it from a value of 0.1 all the way to 899
__________________
Quote:
The U.S almost went to war over some missles in Cuba... Thank god the X-Men were there to save us right?
Krauter is offline   Reply With Quote
Old 08-14-10, 02:31 PM   #14
BowfinSS287
Planesman
 
Join Date: Apr 2007
Location: Canada
Posts: 185
Downloads: 223
Uploads: 0
Default

here is one i built...starts on surface...boat goes to 28 meters
then does a hydrophone check for 5 mins, then comes to
periscope depth and does a 360 search....then surfaces


[AS]
Bowfin_Hydrophone_Check
[CATEGORY]
Surfaced
[COMMANDS]
Set_Time_Compression,1,0,0,0,0,0,0
Ahead_full,0,0,0,0,0,0,10
Periscope_depth,0,0,0,0,0,0,40
Set_new_depth_relative,18,0,0,0,0,0,30
Ahead_slow,0,0,0,0,0,0,2
Hydrophone_normal_sweep,0,0,0,0,0,0,300
Ahead_full,0,0,0,0,0,0,10
Periscope_depth,0,0,0,0,0,0,30
Ahead_slow,0,0,0,0,0,0,5
Rise_whole_periscope,0,0,0,0,0,0,5
Activate_Scope_Station,0,0,0,0,0,0,0
Wait,0,0,0,0,0,0,2
Sweep_Scope,0,0,360,120.0,0,0,1
Leave_Scope_Station,0,0,0,0,0,0,1
Lower_whole_periscope,0,0,0,0,0,0,1
Ahead_standard,0,0,0,0,0,0,5
Surface,0,0,0,0,0,0,0
[COMMANDS_END]
BowfinSS287 is offline   Reply With Quote
Old 08-14-10, 02:36 PM   #15
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BowfinSS287 View Post
here is one i built...starts on surface...boat goes to 28 meters
then does a hydrophone check for 5 mins, then comes to
periscope depth and does a 360 search....then surfaces
excellent. I see most everyone is figuring out how to make their own scripts

I do have one question:

Periscope_depth,0,0,0,0,0,0,40
Set_new_depth_relative,18,0,0,0,0,0,30

why don't you just issue the command 'Set_new_depth,28,0,0,0,0,0,70'?

you can also do away with the Wait command and tack a 2 onto the end of Activate_Scope_Station. Would accomplish same thing.
TheDarkWraith 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 06:23 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.