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 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 10-17-10, 01:30 PM   #1
Philipp_Thomsen
Old Gang
 
Philipp_Thomsen's Avatar
 
Join Date: Nov 2007
Location: Drunk at the whorehouse
Posts: 2,261
Downloads: 146
Uploads: 0


Default

Does the sh3.exe have the controller for switching to diesel/electric independent from being surfaced/submerged?

Its a very important thing to change.
__________________
To each his own
Philipp_Thomsen is offline   Reply With Quote
Old 10-17-10, 02:59 PM   #2
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 135
Uploads: 0


Default

Quote:
Originally Posted by Philipp_Thomsen View Post
Does the sh3.exe have the controller for switching to diesel/electric independent from being surfaced/submerged?

Its a very important thing to change.
already on the todo list

__________________
My Mediafire page: http://www.mediafire.com/hsie
h.sie is offline   Reply With Quote
Old 10-18-10, 12:39 PM   #3
Philipp_Thomsen
Old Gang
 
Philipp_Thomsen's Avatar
 
Join Date: Nov 2007
Location: Drunk at the whorehouse
Posts: 2,261
Downloads: 146
Uploads: 0


Default

JUST REMEMBERED!

The most important thing to fix (at least in my head, as a sound modder) is to add a trigger to use one ambient sound file when ur submerged, and another for surfaced.

Then, we can start using sounds that fit the situation. No more diesel engine sound when you're submerged. No more crew chatting while having dinner at the same time you're in rig for silent running, being depth charged.

By the way, another trigger for silent running too.

If that can be done, I will work on the sound itself.
__________________
To each his own
Philipp_Thomsen is offline   Reply With Quote
Old 10-19-10, 10:25 AM   #4
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 135
Uploads: 0


Default

...my focus is currently not on sound issues. maybe later.

regarding manual switching between electric and diesel engines when surfaced: this would only make sense if the ememy could hear you better with diesels and worse with electric engines. but in the current state, the enemy doesn't hear you at all if surfaced, regardless of diesel or electric engines running.

h.sie
__________________
My Mediafire page: http://www.mediafire.com/hsie
h.sie is offline   Reply With Quote
Old 10-19-10, 02:38 PM   #5
Sailor Steve
Eternal Patrol
 
Sailor Steve's Avatar
 
Join Date: Nov 2002
Location: High in the mountains of Utah
Posts: 44,456
Downloads: 745
Uploads: 249


Default

Quote:
Originally Posted by Philipp_Thomsen View Post
JUST REMEMBERED!

The most important thing to fix (at least in my head, as a sound modder) is to add a trigger to use one ambient sound file when ur submerged, and another for surfaced.

Then, we can start using sounds that fit the situation. No more diesel engine sound when you're submerged. No more crew chatting while having dinner at the same time you're in rig for silent running, being depth charged.

By the way, another trigger for silent running too.

If that can be done, I will work on the sound itself.
That is a brilliant idea! FM's New Interiors adds diesel sounds to the interior when surfaced, but they have problems. Having a separate Ambient Interior file that runs when surfaced is the perfect solution...if it can be made to work.
__________________
“Never do anything you can't take back.”
—Rocky Russo
Sailor Steve is offline   Reply With Quote
Old 10-20-10, 03:01 PM   #6
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,135
Downloads: 147
Uploads: 12
Default

Just an addendum to the compressed air consumption when you use crash dive. It seems the amount you need depends on the crash depth in your NSS_Uboat*.cfg file. If you have a deep crash depth more compressed air is used. This makes sense because the pressure is higher when you level out (however, historically the Quick Diving Tank had to be emptied close to the surface).

It's also noteworthy that there is a small gap between the blowing of the Quick Diving Tank and the leveling of the dive planes. So, if you want to dive quickly to a great depth and avoid the crash dive blues in NYGM, you should order crash depth and watch the compressed air dial. As soon as it stops to move (close to the crash depth) you should order the new depth (you might have to correct the compressed air dial in dials.cfg in the menu folder).
LGN1 is offline   Reply With Quote
Old 10-21-10, 04:24 AM   #7
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 135
Uploads: 0


Default

In the first version of my snorkel fix I modified the routines which are resposible for the machine telegraph: If the boat is currently snorkelling and I order a new speed which is faster than 2/3 ahead, the speed order is automatically reduced to 2/3 ahead. This worked well.
But unfortumately, that solution was not sufficient, because if you e.g. drive surfaced with flank speed and then dive to snorkel depth, no speed change is ordered and thus the boat will be still on flank speed when snorkelling.

So for my second version I’m programming a routine that checks the speed every 10 seconds when snorkelling. More exactly: There is already such a routine that makes calculations every 10 seconds, and I simply modify it. Every time a speed above 5knots is detected while snorkeling, a WM_KEYPRESS message for the key “2” will be generated, so that the executable thinks the user pressed “2” to order new speed 2/3 ahead. Optimistic that it will work.

Now I’m thinking about how to consider Wind speed / wave height. Possible values could be:

Wind speed 0-5m/s: Speed will be reduced to 2/3 ahead.
Wind speed 6-10m/s: Speed will be reduced to slow ahead.
Wind speed > 10m/s: Snorkelling not possible. Engines will be stopped by the watch routine.

Are these historically correct?
__________________
My Mediafire page: http://www.mediafire.com/hsie

Last edited by h.sie; 10-21-10 at 06:43 AM.
h.sie is offline   Reply With Quote
Old 10-21-10, 06:41 AM   #8
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 135
Uploads: 0


Default

by the way: I think I found out why high time compression leads to numerous problems:

there is an internal master routine in sh3.exe that is executed once per second and recalculates millions of variables: weather changes, detection probablilities, every little fart of the crew. this is no problem for modern CPUs, all calculations are done in a fraction of a second. When time compression is 2x, the routine has to be executed twice per second to give an exact simulation. No problem. Even 64x works, the routine is executed 64 times per second.

But when I chose TC=128x on my average PC, the routine cannot be executed 128 times per second, it is only executed about 100 times. the missing 28 calculations are cancelled, because otherwise program flow would be jammed. When I now rise TC to 1024, the routine can still be executed only 100 times per second, but it should be executed 1024 times. this discrepancy leads to very inaccurate, defective simulation results in some aspects.
__________________
My Mediafire page: http://www.mediafire.com/hsie
h.sie is offline   Reply With Quote
Old 10-21-10, 02:15 PM   #9
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,135
Downloads: 147
Uploads: 12
Default

Quote:
Originally Posted by h.sie View Post
So for my second version I’m programming a routine that checks the speed every 10 seconds when snorkelling. More exactly: There is already such a routine that makes calculations every 10 seconds, and I simply modify it. Every time a speed above 5knots is detected while snorkeling, a WM_KEYPRESS message for the key “2” will be generated, so that the executable thinks the user pressed “2” to order new speed 2/3 ahead. Optimistic that it will work.

Now I’m thinking about how to consider Wind speed / wave height. Possible values could be:

Wind speed 0-5m/s: Speed will be reduced to 2/3 ahead.
Wind speed 6-10m/s: Speed will be reduced to slow ahead.
Wind speed > 10m/s: Snorkelling not possible. Engines will be stopped by the watch routine.

Are these historically correct?
Hi h.sie,

the method sounds fine. You might also combine this method with a key command for turning off the hydrophone (or can you reduce the max. hydrophone range by a factor?)

The same method might also be a simple solution for the 'speed-limited' periscope (if bluring does not work).

Concerning torpedo re-loading: If possible you might think about changing the loading time depending on sea state. For instance, if the boat is surfaced and wind > x m/s, torpedos (both internal & external) cannot be loaded (i.e., loading time in sim files very high). However, submerged you can load the tubes. For the external tubes you might also think about taking night time into account (I guess there is a variable that determines night and day (controling at least the red light)).

Cheers, LGN1
LGN1 is offline   Reply With Quote
Reply

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:52 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.