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


Default

Thanks TDW,

Could someone check my sums to ensure I have this right.

Ok I want to
"inform user that contact was detected"
"pause game"

So that would be 10000000001 = 1025 ?

This is for hydrophone
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 08-26-10, 02:15 PM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Trevally. View Post
Thanks TDW,

Could someone check my sums to ensure I have this right.

Ok I want to
"inform user that contact was detected"
"pause game"

So that would be 10000000001 = 1025 ?

This is for hydrophone
correct
TheDarkWraith is offline   Reply With Quote
Old 08-29-10, 04:35 PM   #3
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default

Hi Krauter,

Just wondering if you have any updates since TDW added new commands. The new advanced knuckle really can add to the ones you have made.

I have just finished one for aeroplane attacks:-

[AS]
Pesky Aeroplanes!
[CATEGORY]
Evasion
[COMMANDS]
crash_dive,0,0,0,0,0,0,0
Get_depth_under_sub_keel,0,0,0,0,0,0,40
Set_new_depth,50,0,0,0,0,0,1
Ahead_one_third,0,0,0,0,0,0,5
Activate_hydrophone_station,0,0,0,0,0,0,10
Sweep_hydrophone,0,360,120.0,897,0,0,1
Report_nearest_sound_contact,0,0,0,0,0,0,10
Leave_hydrophone_station,0,0,0,0,0,0,10
Activate_NavMap_Station,0,0,0,0,0,0,0
Wait,0,0,0,0,0,0,1800
Periscope_depth,0,0,0,0,0,0,60
Activate_Scope_Station,1,0,0,0,0,0,2
Rise_whole_obs_periscope,0,0,0,0,0,0,10
Sweep_Scope,1,0,360,60.0,192,0,10; (11000000)
Report_nearest_visual_contact,0,0,0,0,0,0,10
Lower_whole_obs_periscope,0,0,0,0,0,0,0
Leave_Scope_Station,1,0,0,0,0,0,0
Ahead_standard,0,0,0,0,0,0,0
Surface,0,0,0,0,0,0,90
Radar_turn_on,0,0,0,0,0,0,5
Radar_set_continuous_sweep_mode,0,0,0,0,0,0,20
Report_nearest_radio_contact,0,0,0,0,0,0,0
Activate_NavMap_Station,0,0,0,0,0,0,10
[COMMANDS_END]

I had to add "crash dive" to the \scripts\menu\TheDarkWraithAutomation.py

class AutomationCrashDive( TDWAutomation.AutomationScriptInFile.BaseAutomatio nCommandUndefined ):
def Execute( self, elapsedtime ):
if GetSubIsUnderwater():
return "skip"
else:
Game.SubmarineCommands.ExecuteCommand( "Crash_dive" )
return True

and:-

,[ "Crash_dive", AutomationCrashDive ]


Commands I am going to try to add next are:-

Man deck and flak guns
fire at will etc
__________________
Trevally Mods for SH5

Last edited by Trevally.; 08-29-10 at 04:47 PM.
Trevally. is offline   Reply With Quote
Old 08-29-10, 05:10 PM   #4
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,226
Downloads: 901
Uploads: 73


Default

Quote:
Originally Posted by Trevally. View Post
Hi Krauter,

Just wondering if you have any updates since TDW added new commands. The new advanced knuckle really can add to the ones you have made.

I have just finished one for aeroplane attacks:-

[AS]
Pesky Aeroplanes!
[CATEGORY]
Evasion
[COMMANDS]
crash_dive,0,0,0,0,0,0,0
Get_depth_under_sub_keel,0,0,0,0,0,0,40
Set_new_depth,50,0,0,0,0,0,1
Ahead_one_third,0,0,0,0,0,0,5
Activate_hydrophone_station,0,0,0,0,0,0,10
Sweep_hydrophone,0,360,120.0,897,0,0,1
Report_nearest_sound_contact,0,0,0,0,0,0,10
Leave_hydrophone_station,0,0,0,0,0,0,10
Activate_NavMap_Station,0,0,0,0,0,0,0
Wait,0,0,0,0,0,0,1800
Periscope_depth,0,0,0,0,0,0,60
Activate_Scope_Station,1,0,0,0,0,0,2
Rise_whole_obs_periscope,0,0,0,0,0,0,10
Sweep_Scope,1,0,360,60.0,192,0,10; (11000000)
Report_nearest_visual_contact,0,0,0,0,0,0,10
Lower_whole_obs_periscope,0,0,0,0,0,0,0
Leave_Scope_Station,1,0,0,0,0,0,0
Ahead_standard,0,0,0,0,0,0,0
Surface,0,0,0,0,0,0,90
Radar_turn_on,0,0,0,0,0,0,5
Radar_set_continuous_sweep_mode,0,0,0,0,0,0,20
Report_nearest_radio_contact,0,0,0,0,0,0,0
Activate_NavMap_Station,0,0,0,0,0,0,10
[COMMANDS_END]

I had to add "crash dive" to the \scripts\menu\TheDarkWraithAutomation.py

class AutomationCrashDive( TDWAutomation.AutomationScriptInFile.BaseAutomatio nCommandUndefined ):
def Execute( self, elapsedtime ):
if GetSubIsUnderwater():
return "skip"
else:
Game.SubmarineCommands.ExecuteCommand( "Crash_dive" )
return True

and:-

,[ "Crash_dive", AutomationCrashDive ]


Commands I am going to try to add next are:-

Man deck and flak guns
fire at will etc
Nice , is there a teleport function in the automated scripts ? Teleport to inside sub first maybe .
THE_MASK is offline   Reply With Quote
Old 08-29-10, 06:08 PM   #5
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default

Hadnt thought of that.

There are some teleports:-

mav map
hydrophone station
scope stations

If I jump to a station, crashdive and then exit station.

I will test and see if that works.

Edit: With the station jump, you end up on the bridge underwater (where you start from). So its down the hatch only.
__________________
Trevally Mods for SH5

Last edited by Trevally.; 08-29-10 at 06:39 PM.
Trevally. is offline   Reply With Quote
Old 08-29-10, 07:07 PM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Trevally. View Post
I had to add "crash dive" to the \scripts\menu\TheDarkWraithAutomation.py

class AutomationCrashDive( TDWAutomation.AutomationScriptInFile.BaseAutomatio nCommandUndefined ):
def Execute( self, elapsedtime ):
if GetSubIsUnderwater():
return "skip"
else:
Game.SubmarineCommands.ExecuteCommand( "Crash_dive" )
return True

and:-

,[ "Crash_dive", AutomationCrashDive ]


Commands I am going to try to add next are:-

Man deck and flak guns
fire at will etc
I like to see that others have figured out how to add their own commands. I made it as simple as possible but still giving you the power of scripts in SH5. Though I would recommend giving the new automation command a different name than the built in command - something like Crash_dive_now for instance
TheDarkWraith is offline   Reply With Quote
Old 09-14-10, 12:44 AM   #7
Abd_von_Mumit
The Old Man
 
Join Date: Jan 2007
Location: Warszawa, Polska
Posts: 1,453
Downloads: 46
Uploads: 4
Default

Will you be releasing version updated to wirk with TDW 4.3.0 and later versions? (every script has a new obligatory field "Description" from 4.3.0 on, as per TDW's post scripts without this field will cease working).
__________________
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 09-14-10, 05:36 AM   #8
DavyJonesFootlocker
The Old Man
 
Join Date: Dec 2007
Location: Stink Drunk in Trinidad
Posts: 1,572
Downloads: 138
Uploads: 0
Default

Cool
__________________
"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 09-14-10, 06:23 AM   #9
Krauter
Ocean Warrior
 
Join Date: Aug 2007
Location: Montreal, Canada
Posts: 2,983
Downloads: 102
Uploads: 1
Default

Unfortunately this mod is on hiatus until I get back to my regular Home PC (as I'm at University and am running a Mac -.-...)

However, I will download the files I made and try to tweak them and send them to a few people. If it works then I will distribute that material.

Cheers,

Krauter
__________________
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
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 07:50 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.