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, 02:31 PM   #1
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   #2
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
Old 08-14-10, 02:46 PM   #3
BowfinSS287
Planesman
 
Join Date: Apr 2007
Location: Canada
Posts: 185
Downloads: 223
Uploads: 0
Default

the reason i set my depth this way, was to stop the crash dive
from activating....is there a better way to do this ?
thanks for tip.....i'll lose the wait command
BowfinSS287 is offline   Reply With Quote
Old 08-14-10, 02:48 PM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

crash dive from activating? How? Try the Set_new_depth command, it should work perfectly.
TheDarkWraith is offline   Reply With Quote
Old 08-14-10, 02:53 PM   #5
BowfinSS287
Planesman
 
Join Date: Apr 2007
Location: Canada
Posts: 185
Downloads: 223
Uploads: 0
Default

i also use MightyFine Crew Version: 1.2....

***NOTE 2***
The Crash dive command has a problem and does not trigger the crash dive script, so my crash dive behaviors will not trigger. I have included an optional workaround that uses the set depth command to trigger crash dive. Using that option, changing depth via the dive gauge will trigger a crash dive if the boat is on the surface, no matter what depth you click, so use with caution.
BowfinSS287 is offline   Reply With Quote
Old 08-14-10, 02:59 PM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

well if you're not triggering the crash dive with the way you have the commands now you shouldn't with just the one command I mentioned. Both commands you're using use the 'Set_depth' command of the game. So you should be fine.
TheDarkWraith is offline   Reply With Quote
Old 08-14-10, 03:44 PM   #7
BowfinSS287
Planesman
 
Join Date: Apr 2007
Location: Canada
Posts: 185
Downloads: 223
Uploads: 0
Default

i used the Set_new_depth command and it activated the crash dive alarm
but when i use the two commands together

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

i can get around this action...i bet it has something to do with all my mods
you name it......i have it.....
BowfinSS287 is offline   Reply With Quote
Old 08-14-10, 10:16 PM   #8
DavyJonesFootlocker
The Old Man
 
Join Date: Dec 2007
Location: Stink Drunk in Trinidad
Posts: 1,572
Downloads: 138
Uploads: 0
Default

Erm, how do you make custom scripts?
__________________
"Silence means death. Stand on your feet. Inner fear your worst enemy."- Sepultura.
My Silent Hunter 5 mantra is this......"Torpedo missed, sir!"
A P-400 is a P-40 with a Zero after it.
A proud member of the Wikipedia Haters Club
DavyJonesFootlocker is offline   Reply With Quote
Old 08-14-10, 10:39 PM   #9
BowfinSS287
Planesman
 
Join Date: Apr 2007
Location: Canada
Posts: 185
Downloads: 223
Uploads: 0
Default

i found another problem that i can't explain why it happens
but i found a way around it....here is what happens

i want this script to run 12 times,but when i use the Loop,12,0,0,0,0,0,0
command....all works fine but the 2nd time around the Sweep_Scope,x,y,z,zz,0,0,t
exits the station b4 it has completed the 360 scan....so to fix this
i just copied the script 12 times within the same file and dropped the
loop command.....now it works fine

this new feature is really great....starting to feel like i have a crew
thanks TDW
BowfinSS287 is offline   Reply With Quote
Old 08-15-10, 04:44 AM   #10
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BowfinSS287 View Post
i found another problem that i can't explain why it happens
but i found a way around it....here is what happens

i want this script to run 12 times,but when i use the Loop,12,0,0,0,0,0,0
command....all works fine but the 2nd time around the Sweep_Scope,x,y,z,zz,0,0,t
exits the station b4 it has completed the 360 scan....
you shouldn't have to do that, that's what the loop command is for....I think I know why this is happening and I'll fix it.
TheDarkWraith is offline   Reply With Quote
Old 08-15-10, 06:53 AM   #11
Freelanca
Swabbie
 
Join Date: Jan 2009
Location: Australia
Posts: 10
Downloads: 163
Uploads: 0
Default

Quote:
Originally Posted by BowfinSS287 View Post
i found another problem that i can't explain why it happens
but i found a way around it....here is what happens

i want this script to run 12 times,but when i use the Loop,12,0,0,0,0,0,0
command....all works fine but the 2nd time around the Sweep_Scope,x,y,z,zz,0,0,t
exits the station b4 it has completed the 360 scan....so to fix this
i just copied the script 12 times within the same file and dropped the
loop command.....now it works fine

this new feature is really great....starting to feel like i have a crew
thanks TDW
yeah I have the same problem as well when looping, I wasn't sure if it was just my PC chugging along but good to hear a fix is on the way. DARK to rescue again lol.
Freelanca is offline   Reply With Quote
Old 08-15-10, 01:03 PM   #12
Krauter
Ocean Warrior
 
Join Date: Aug 2007
Location: Montreal, Canada
Posts: 2,983
Downloads: 102
Uploads: 1
Default

TDW; how would I package my scripts into folders so that they don't conflict with yours (ie: Like how I packaged them earlier, the game just ignored them completely).

Also, How do I upload onto subsim?
__________________
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-15-10, 01:20 PM   #13
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Krauter View Post
TDW; how would I package my scripts into folders so that they don't conflict with yours (ie: Like how I packaged them earlier, the game just ignored them completely).

Also, How do I upload onto subsim?
open notepad and copy your script code into it. Save as a .SHA file in the \data\Automation folder.
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 08:58 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.