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-31-10, 10:20 AM   #1
Abd_von_Mumit
The Old Man
 
Join Date: Jan 2007
Location: Warszawa, Polska
Posts: 1,453
Downloads: 46
Uploads: 4
Default [REQ] User script for regular sonar checks

<EDIT>
The script is ready and works well, check the thread further.
</EDIT>



I can't script. I just can't. I would love to have this script though:

1. Every [period] if not submerged, dive to 20 m depth.
2. When at 18m depth, switch engines off.
3. Wait 2 minutes.
3a OPTIONAL, if possible: if sonar guy detects anything, do something (like 'play a sound', 'go to TC1')
4. Surface.
5. When on surface, switch engines on for speed of X.

What you think? Anybody capable and willing to make it?
__________________
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; 08-31-10 at 10:04 PM.
Abd_von_Mumit is offline   Reply With Quote
Old 08-31-10, 10:51 AM   #2
KarlKoch
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Just look at the automation feature in TheDarkWraith's UI mod. I think this will do just what you want.
  Reply With Quote
Old 08-31-10, 02:15 PM   #3
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 KarlKoch View Post
Just look at the automation feature in TheDarkWraith's UI mod. I think this will do just what you want.
Well, just looked. Now I'll repost what I said in my first post: "I can't script. I just can't." I see bunch of defs and other thingies and I don't know what do do with them. This is why I started this thread.
__________________
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 08-31-10, 02:28 PM   #4
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default

[AS]
No hassle Hydrophone check
[CATEGORY]
Search on patrol
[COMMANDS]
Set_Time_Compression,2,0,0,0,0,0,0
Ahead_standard,0,0,0,0,0,0,0
Activate_NavMap_Station,0,0,0,0,0,0,0
Set_new_depth,30,0,0,0,0,0,40
All_stop,0,0,0,0,0,0,5
Hydrophone_normal_sweep,0,0,0,0,0,0,20
Report_nearest_sound_contact,0,0,0,0,0,0,20
Ahead_standard,0,0,0,0,0,0,1
Surface,0,0,0,0,0,0,5
Set_Time_Compression,128,0,0,0,0,0,7200
Loop,12,0,0,0,0,0,0
Set_Time_Compression,0,0,0,0,0,0,5
[COMMANDS_END]

Copy and paste this into sh5\data\automation\?????.sha

remember to save


Or install this http://www.filefront.com/17252061/So...eck Script.rar Check Script.rar
__________________
Trevally Mods for SH5

Last edited by Trevally.; 08-31-10 at 04:18 PM.
Trevally. is offline   Reply With Quote
Old 08-31-10, 04:23 PM   #5
Abd_von_Mumit
The Old Man
 
Join Date: Jan 2007
Location: Warszawa, Polska
Posts: 1,453
Downloads: 46
Uploads: 4
Default

Thank you VERY much.

Will try it as it is, but I already see I have some doubts, If you don't mind I'd like to understand it before I demand my men understand it as well.

Set_Time_Compression,2,0,0,0,0,0,0
Why set time compression? Couldn't it just run in any time compression user started it?

Ahead_standard,0,0,0,0,0,0,0
Could it be speed given in knots instead of steps? I travel at most fuel efficient speed of 7.5 and I want it to stay this way. How to specify it?

Activate_NavMap_Station,0,0,0,0,0,0,0
Why activate? Couldn't the script just run in any station I'm currently in? I hate when scripts move me.

Set_new_depth,30,0,0,0,0,0,40
Which values do I change to set it to 20 metres?

All_stop,0,0,0,0,0,0,5
Seems clear, but what is the 5 in the end?

Hydrophone_normal_sweep,0,0,0,0,0,0,20
Report_nearest_sound_contact,0,0,0,0,0,0,20
20?

Ahead_standard,0,0,0,0,0,0,1
1?

Surface,0,0,0,0,0,0,5
5?

Set_Time_Compression,128,0,0,0,0,0,7200
Seems I understand the 128 value. But what is 7200? Looks like 2 hours expressed in seconds.

Loop,12,0,0,0,0,0,0
12?

Set_Time_Compression,0,0,0,0,0,0,5

Also - can it be made to drop TC to 1 and/or play a sound when anything is heard in hydrophone?

I'd love to understand more of this, but I don't even know where to look for info.


EDIT: I chose the easy way and installed your mod. Thanks again. Will probably corrupt it by trying to edit, hehe.
__________________
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 08-31-10, 05:24 PM   #6
Abd_von_Mumit
The Old Man
 
Join Date: Jan 2007
Location: Warszawa, Polska
Posts: 1,453
Downloads: 46
Uploads: 4
Default

Testing happily. Still don't understand it all. As for now I shortened it to this:

Set_new_depth,30,0,0,0,0,0,50
All_stop,0,0,0,0,0,0,5
Hydrophone_normal_sweep,0,0,0,0,0,0,20
Report_nearest_sound_contact,0,0,0,0,0,0,20
Surface,0,0,0,0,0,0,50
Ahead_standard,0,0,0,0,0,0,1
Loop,12,0,0,0,0,0,0
Set_Time_Compression,1,0,0,0,0,0,5

EDIT: And it simply doesn't work at all. I must have messed it up too much.
__________________
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; 08-31-10 at 05:35 PM.
Abd_von_Mumit is offline   Reply With Quote
Old 08-31-10, 05:26 PM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

look in the file \data\Automation\TDW_Automation.SHA (you can open it with Notepad). It will explain every command, the syntax of the commands, and tell you how to make your own scripts.
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 09:06 AM.


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