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-27-10, 09:50 PM   #1
Fearless
Ace of the Deep
 
Join Date: Feb 2007
Location: Adelaide, Australia
Posts: 1,048
Downloads: 367
Uploads: 1
Default

The sweep script that was already available when I Installed v404.
__________________
Fearless

System Specs: AMD Ryzen 7 5800X 8 Core 16 Thread CPU, 3.8GHz Base Clock, 4.7GHz Boost, 105W TDP, 32MB L3 cache | Palit GeForce RTX5060Ti 16Gb Graphics | Corsair Vengeance RGB Pro 64Gb (2x32Gb) 3200 MHz CL16 DDR4 Ram | MicroSoft Win 11 Pro |
Fearless is offline   Reply With Quote
Old 08-27-10, 10:24 PM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Fearless View Post
The sweep script that was already available when I Installed v404.
navigate to \data\Automation and open up the file TDW_Automation.SHA (you can open it up with notepad). In that file contains everything you'll want to know about Automation
TheDarkWraith is offline   Reply With Quote
Old 08-28-10, 09:27 AM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

from a post in another thread:

Quote:
Originally Posted by Capt Jack Harkness View Post
Not sure if this comment would best be posted here or in TDW's UI thread because it involves a bit of both, but could we first implement a delay between ordering a speed change and the engine room answering (SH4 had this) and then get the little red light on the telegraph repeater in the hydrophone room (the one in the bottom of that pic) to flash between the two?

Actually, it'd be even cooler if TDW could make the delay before the engines answer slightly random, perhaps dependent on battlestations and/or morale...
I have the code in place to do the delay and it works. When you order up a new bell or speed the speed graph or the new bell flashes to let you know you ordered a new bell/throttle and then it computes the delay before actually giving the command.
Now what I need to define is the delay:
here's what I have so far:

newbelldelay = PDH_RndNumGen.Next( GetNewSpeedThrottleDelayMin(), GetNewSpeedThrottleDelayMax() )
if GetBattlestationsActivated():
newbelldelay /= 2.0

newbelldelay gets a random value between the min and max delay times allowed. If battlestations are activated then this time is cut in half. Now the crew morale part I was going to let have a 50% influence on the delay:

((newbelldelay * 0.5) * (1 - officercurrentmorale)) + newbelldelay = the final delay time

if the random number picked was 5 and officer's morale was 0.75:

(5 * 0.5) * (1 - 0.75) + 5 = new bell delay
2.5 * 0.25 + 5 = new bell delay
new bell delay = 5.625 seconds

NOTE: this delay will only work in SH5 Enhanced mode as I can 'trap' the command before it's given

Last edited by TheDarkWraith; 08-28-10 at 09:53 AM.
TheDarkWraith is offline   Reply With Quote
Old 08-28-10, 03:54 PM   #4
charognard
Navy Dude
 
Join Date: Feb 2009
Posts: 171
Downloads: 201
Uploads: 0
Default

DW i m using your mod, it work fine, but a little thing will be cool, hi have hide the information popup, and activated same color for contact and same shame for all boat, but on map, when the mouse is over a contact, there is allways a popup with boat type ( marchant, warship ). Can u disable it too in your next release ?
charognard is offline   Reply With Quote
Old 08-28-10, 04:21 PM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by charognard View Post
DW i m using your mod, it work fine, but a little thing will be cool, hi have hide the information popup, and activated same color for contact and same shame for all boat, but on map, when the mouse is over a contact, there is allways a popup with boat type ( marchant, warship ). Can u disable it too in your next release ?
see here: http://www.subsim.com/radioroom/show...postcount=3718
TheDarkWraith is offline   Reply With Quote
Old 08-28-10, 06:29 PM   #6
charognard
Navy Dude
 
Join Date: Feb 2009
Posts: 171
Downloads: 201
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
Great !! Thx !
charognard is offline   Reply With Quote
Old 08-28-10, 07:53 PM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

v4.1.0 released. See post #1 for details
TheDarkWraith is offline   Reply With Quote
Old 08-28-10, 08:15 PM   #8
Capt Jack Harkness
Samurai Navy
 
Join Date: Nov 2007
Posts: 567
Downloads: 210
Uploads: 1
Default

Quote:
Originally Posted by TheDarkWraith View Post
from a post in another thread:



I have the code in place to do the delay and it works. When you order up a new bell or speed the speed graph or the new bell flashes to let you know you ordered a new bell/throttle and then it computes the delay before actually giving the command.
Now what I need to define is the delay:
here's what I have so far:

newbelldelay = PDH_RndNumGen.Next( GetNewSpeedThrottleDelayMin(), GetNewSpeedThrottleDelayMax() )
if GetBattlestationsActivated():
newbelldelay /= 2.0

newbelldelay gets a random value between the min and max delay times allowed. If battlestations are activated then this time is cut in half. Now the crew morale part I was going to let have a 50% influence on the delay:

((newbelldelay * 0.5) * (1 - officercurrentmorale)) + newbelldelay = the final delay time

if the random number picked was 5 and officer's morale was 0.75:

(5 * 0.5) * (1 - 0.75) + 5 = new bell delay
2.5 * 0.25 + 5 = new bell delay
new bell delay = 5.625 seconds

NOTE: this delay will only work in SH5 Enhanced mode as I can 'trap' the command before it's given
Definitely moving in the right direction, but I think 5 seconds is a bit too much... Maybe something more like 2 seconds on average? 5 seems more like the throttle men are playing cards in the motor room and have to run out to the engines when a new bell is rung...
Capt Jack Harkness is offline   Reply With Quote
Old 08-28-10, 08:50 PM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Capt Jack Harkness View Post
Definitely moving in the right direction, but I think 5 seconds is a bit too much... Maybe something more like 2 seconds on average? 5 seems more like the throttle men are playing cards in the motor room and have to run out to the engines when a new bell is rung...
you can change the base min and max time in the options file. And it does take into account battlestations and the chief engineer's morale for overall time
TheDarkWraith is offline   Reply With Quote
Old 08-28-10, 09:31 PM   #10
Capt Jack Harkness
Samurai Navy
 
Join Date: Nov 2007
Posts: 567
Downloads: 210
Uploads: 1
Default

Right, just noticed that when reading the notes before downloading, thanks!
Capt Jack Harkness is offline   Reply With Quote
Reply

Tags
dbrn, favorite, new ui

Thread Tools
Display Modes

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 03:50 AM.


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