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-15-10, 07:41 PM   #1
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   #2
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   #3
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   #4
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   #5
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   #6
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   #7
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   #8
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
Old 08-16-10, 07:52 PM   #9
Krauter
Ocean Warrior
 
Join Date: Aug 2007
Location: Montreal, Canada
Posts: 2,983
Downloads: 102
Uploads: 1
Default

OK, how do I upload them to subsim.com?
__________________
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, 09:56 PM   #10
Freelanca
Swabbie
 
Join Date: Jan 2009
Location: Australia
Posts: 10
Downloads: 163
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
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.
This sounds awesome!!!

I had an idea and was wondering if it was possible to do for the lazy skipper ( IE, me)to add pause game on sound contact spotted. Say on a patrol I wanted to go and make some lunch or have a shower I could come back and see game is paused and then set up my solution.
Freelanca is offline   Reply With Quote
Old 08-16-10, 10:19 PM   #11
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Freelanca View Post
This sounds awesome!!!

I had an idea and was wondering if it was possible to do for the lazy skipper ( IE, me)to add pause game on sound contact spotted. Say on a patrol I wanted to go and make some lunch or have a shower I could come back and see game is paused and then set up my solution.
yes that is possible. This would be perfect for those 'hard core' people who only play at 1TC all game. I'll add it to my list of commands to add.
TheDarkWraith is offline   Reply With Quote
Old 08-16-10, 10:34 PM   #12
Freelanca
Swabbie
 
Join Date: Jan 2009
Location: Australia
Posts: 10
Downloads: 163
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
yes that is possible. This would be perfect for those 'hard core' people who only play at 1TC all game. I'll add it to my list of commands to add.
Thanks TDW. Im loving the addition of automation in SH5. Before this I was using my Logitech g15 keyboard to do macros for alot of my automation but this has taken it to the next level.
Freelanca 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:18 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.