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, 08:01 PM   #31
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default

Thanks again I will sort that.

As for new commands the teleporting would really great.
As before more stations with sweep features.
Some control over the camera movement (if poss)

Not sure on this but if the script could react to information gained ie:-
I am patroling on surface as part of script and aircraft is spotted. Automate then issues command-
x1 time sclae
battle stations
ahead full
Dive 50m
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 08-14-10, 10:16 PM   #32
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   #33
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   #34
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   #35
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   #36
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   #37
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
Old 08-15-10, 07:41 PM   #38
Krauter
Ocean Warrior
 
Join Date: Aug 2007
Location: Montreal, Canada
Posts: 2,983
Downloads: 102
Uploads: 1
Default

I was just wondering because I wanted to release some scripts I've created to see if there would be any interest in the population to create more.
__________________
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-16-10, 10:29 AM   #39
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default

Hi Krauter

I would be interested in what you have written.
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 08-16-10, 10:50 AM   #40
Nufsed
Sparky
 
Join Date: Aug 2005
Posts: 156
Downloads: 500
Uploads: 0
Default

Quote:
Originally Posted by Krauter View Post
I was just wondering because I wanted to release some scripts I've created to see if there would be any interest in the population to create more.
Yes Please
__________________
Mike Collins
Nullius in Verba

Nufsed is offline   Reply With Quote
Old 08-16-10, 11:34 AM   #41
sentenc3
Helmsman
 
Join Date: Mar 2010
Location: España
Posts: 105
Downloads: 472
Uploads: 0
Default

Quote:
Originally Posted by Krauter View Post
I was just wondering because I wanted to release some scripts I've created to see if there would be any interest in the population to create more.
sentenc3 is offline   Reply With Quote
Old 08-16-10, 01:09 PM   #42
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default

Here is my search on patrol script from the first page.
It now works quite well.

[AS]
patrol
[CATEGORY]
Search on patrol
[COMMANDS]
Set_Time_Compression,1,0,0,0,0,0,0
Get_depth_under_sub_keel,0,0,0,0,0,0,2
Periscope_depth,0,0,0,0,0,0,0
Toggle_free_camera,0,0,0,0,0,0,5
Camera_on_next_unit,0,0,0,0,0,0,45
Toggle_free_camera,0,0,0,0,0,0,0
Ahead_slow,0,0,0,0,0,0,0
Activate_NavMap_Station,0,0,0,0,0,0,0
Set_Time_Compression,2,0,0,0,0,0,0
Hydrophone_normal_sweep,0,0,0,0,0,0,60
Report_nearest_sound_contact,0,0,0,0,0,0,0
Knuckle_starboard,0,0,0,0,0,0,90
Hydrophone_normal_sweep,0,0,0,0,0,0,60
Report_nearest_sound_contact,0,0,0,0,0,0,0
Rise_whole_periscope,0,0,0,0,0,0,6
Activate_Scope_Station,0,0,0,0,0,0,0
Periscope_depth,0,0,0,0,0,0,30
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,10
Toggle_free_camera,0,0,0,0,0,0,0
Camera_on_next_unit,0,0,0,0,0,0,5
Set_Time_Compression,1,0,0,0,0,0,0
Ahead_full,0,0,0,0,0,0,0
Surface,0,0,0,0,0,0,0
Return_to_course,0,0,0,0,0,0,45
Ahead_standard,0,0,0,0,0,0,0
Activate_NavMap_Station,0,0,0,0,0,0,10
Leave_NavMap_Station,0,0,0,0,0,0,0
Surface,0,0,0,0,0,0,0
Activate_NavMap_Station,0,0,0,0,0,0,60
[COMMANDS_END]

Note that I have used cameras to view the dive and surface.
At he moment this may cause you to end up swimming when script ends.
If it does you can teleport back to the bridge using UI commands.
Adding the double surface at the end was due to my sub being stuck at 7m for some reason.
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 08-16-10, 07:30 PM   #43
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

fixed the looping problem with Sweep_scope. I've also 'beefed up' Sweep_scope:

parameter 5 will determine the options below:

# available options (parameter 5):
#
# bit 0 = lock the contact on contact spotted (if bit 2,3,4, or 5 isn't set then contact will be immediately unlocked)
# bit 1 = set current heading for contact on contact spotted
# bit 2 = stop sweep on contact spotted
# bit 3 = stop sweep and follow target on contact spotted
# bit 4 = pause script on contact spotted
# bit 5 = abort script on contact spotted

you have to do bitwise addition (you can use the calculator in Windows to do this - set it to Binary mode and enter the bit pattern wanted (1 for enabled and 0 for disabled) and then click on decimal to get your number to put into parameter 5)

i.e.: we want bit 0, bit 1, and bit 4. This would be 10011 in binary. This would equal 1 + 2 + 16 = 19. Parameter 5 would be 19.
Sweep_scope,0,0,360,90.0,19,0,5

So depending on how you set the options you can have the scope sweeping and reporting every new contact every time it spots one by locking it and unlocking it.
TheDarkWraith is offline   Reply With Quote
Old 08-16-10, 07:42 PM   #44
Krauter
Ocean Warrior
 
Join Date: Aug 2007
Location: Montreal, Canada
Posts: 2,983
Downloads: 102
Uploads: 1
Default

How would you guys like me to release the current scripts? just Copy and paste onto a post? Or Upload the document they're written on? I currently do not know how to upload files to subsim, nor do I own a filefront account.

Also, how do I package the mod so that it does not overwrite TDWs Scripts?

data\Automation\KrautersScripts.SHA?
__________________
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-16-10, 07:47 PM   #45
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Krauter View Post
Also, how do I package the mod so that it does not overwrite TDWs Scripts?

data\Automation\KrautersScripts.SHA?
sounds and looks good to me.
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:34 PM.


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.