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 > Silent Hunter 4: Wolves of the Pacific
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 07-13-07, 09:02 PM   #1
nomad_delta
Planesman
 
Join Date: May 2007
Location: San Francisco, California
Posts: 185
Downloads: 1
Uploads: 0
Nomad_Delta's SH4 Question & Answer Thread

As many of you know, I've got all sorts of questions about the inner workings of Silent Hunter 4, and I'm a big fan of careful empirical testing to find out the answers to my questions. Often finding the answers to my questions only leads me to more questions, so I started writing down a list of them so I wouldn't forget to look into them later. It also helps keep me focused during my investigations and testing.

I decided it might be a good idea to post my list of questions and invite everyone else to add their own questions to the list. More importantly, I plan to keep updating this top post as new questions are added and as I find new answers to each. I'm not perfect and sometimes my logic may be flawed, so if I later find better info I'll update the answers accordingly.

Feel free to post & suggest your own questions and answers, or comment on what I have so far. Also, I won't clutter this thread up with the specific details on how I've answered each question -- but if you'd like to see my data or hear my reasoning for a particular answer, just ask. In many cases I may link to another thread where all the detailed discussion for that question/answer is taking place.

...and without further ado, it's time for:

Silent Hunter 4: Nomad Delta’s Question & Answer Thread


1. Do wind, weather, or other sea-state variables affect torpedo depth-keeping?
Answer: Yes, by about 2 feet in each direction. In 'perfect' (0 wind, no rain) weather, excluding all other torpedo depth-keeping problems, torpedos always hit and miss consistently at the same depths. In 'worst possible' (90 meters/second wind, heavy rain, heavy fog, heavy clouds) torpedos will sometimes hit when set 2 feet lower, or miss when set 2 feet higher. It's impossible to tell for sure, but it looks to me like this is actually caused by the ships themselves moving up & down in the water by that amount, as opposed to the torpedo itself actually running deeper or shallower than set.

2. Do wind, weather, or other sea-state variables affect premature torpedo detonations?
Answer: Yes, and dramatically so. In 'perfect' weather conditions, premature detonations do not seem to happen at all. In 'worst possible' weather conditions, however, I encountered a 36% premature detonation rate during testing. Interestingly, those rates do not seem to match the 'PrematureDetonation chance' values I find in the 'torpedoes_us.sim' file. According to the file, the rates should be 10% for wave-states 0-10, and 60% for wave-states 10-40. Update: As described in Answer #8, I have determined why the rates I found on this test did not match those in the torpedoes_us.sim file: I was firing at a test target only 750 yards away, and many of my torpedoes were hitting the target well before they had a chance to randomly detonate.

3. Does cargo loadout have any effect on a ship’s draft?

4. Does the depth of your sub (surface vs. periscope depth, for example) affect running depth of launched torpedoes?
Answer: Yes, but only slightly! I have found that torpedoes launched from a submerged (anywhere from periscope depth to maximum launch depth) will consistently run about 1 foot deeper than torpedoes launched from a surfaced sub.

5. Does the torpedo ‘contact/influence’ switch work in Silent Hunter IV 1.3?
Answer: No, the contact/influence switch does not work in SH IV 1.3. Torpedoes launched prior to 06/01/1943 will always be magnetic, while torpedoes launched after that date will always be contact-only. (http://www.subsim.com/radioroom/showthread.php?t=118393)

6. Did the torpedo ‘contact/influence’ switch work in Silent Hunter IV 1.0 (no patches)?
Answer: No, the contact/influence switch did not work in SH IV 1.0. The behavior is exactly the same as in SH IV 1.3.

7. Do the torpedo 'speed' values in the 'torpedo_us.sim' file have any effect on actual torpedo speeds in the game?
Answer: Yes, they do -- but there are restrictions that are not immediately obvious. After some thorough testing, I have determined that the game will accept values between 0 and 255 in knots. Setting values higher than 255 will still work, but will not cause the torpedoes to go any faster than at the 255 setting. Another important restriction I encountered is that the first speed value must be lower than the second speed value. If you set a higher speed value in the first slot, it will break the 'speed' dial in the game by permanetly sticking it on 'slow', and all torpedoes will go the first (higher) speed. The game will completely ignore the second value.
MOD: To illustrate that this does work, I've created a quick (and rather pointless) mod -- it's even JSGME-ready! Click here to download Nomad's Min & Max Speed Mk14 Torpedoes Mod.

8. Do the 'Premature_Detonation Chance' values in the 'torpedo_us.sim' file have any effect on actual premature detonation rates in the game?
Answer: Yes, it does. I tested setting the 'bad weather' premature chance to 99% instead of the stock 60%, and all of my test torpedoes detonating before reaching the end of their run. Note that premature detonation chance applies to the entire run of the torpedo, not just the distance between your sub and your target. The 'premature' detonations may take place at any random point along the torpedo's run length, including past the target if it passed underneath without impacting. So if you're having problems with premature detonations, try getting closer to your targets: it won't reduce the premature % chance, but it will make it more likely that your torpedo will hit your target before the premature detonation can occur.

9. Even though the Contact/Influence switch has been determined to be non-functional, does changing the switch setting have any effect on premature detonations by "magnetic" torpedoes?
Answer: No, it does not. In testing I actually saw a slightly higher rate of premature detonations with the switch set to Contact (11 prematures out of 23 fired) vs. having the switch set to Contact/Influence (7 prematures out of 24 fired). I suspect the difference is just a statistical anomaly due to the relatively small sample size, though, and that there is no effect to changing the exploder switch whatsoever.

10. [Question submitted by Bando] Are the explosive amount/power values for each torpedo set consistently with 'realistic and historical' values in the relevant .sim files?


11. Does the 'range indicator' on the sonar/hydrophone screen change measurement units depending on whether you have your gameplay settings on Metric or Imperial? (...and if not, what measurement units does it display in?)
Preliminary Answer: I've only tested this briefly and will need to do some more thorough checking, but it appears that the visual 'sonar ping' range indicator only displays in meters, even when you have Imperial measurements enabled. For example, I ping a target, and my sonar operator calls out the range as '3080' while the visual indicator displays just over 2800. Since 3080 yards equals 2816 meters, it looks like the visual sonar range indicator is in meters only.

12. Are the 'draft' values listed in the in-game recognition manual for Japanese merchants and warships consistently accurate within the game as of patch 1.3?

13. [Question submitted by switch.dota] Does the running depth of the torpedo have any impact on the chance to cause premature explosions?
Answer: (UPDATE) Received word from Elanaiba that they had intended for torpedo running depth to affect premature detonation chances, but that they did not have time to implement it in the code. This matches my personal testing, which did not show torpedo depth or any factors other than weather (wave state) having any effect on premature detonations.

14. [Question submitted by Tater] There is a depth setting in the DC tweak file. As I recall, the default value was something like 2500 (in 1.2). What is this value, the max depth?


15. Do torpedoes have to actually pass below a ship to trigger a magnetic detonator, or simply be within the magnetic detonation range -- even skimming the surface?
Answer: No, the torpedoes do not have to pass underneath the target to trigger the magnetic detonator. My testing shows that torpedoes with magnetic detonators will explode at the mag-det radius regardless of depth setting. As an exaggerated test, I modified the magnetic detonation radius to 50 meters and then tested firing multiple volleys of torpedoes at a large freighter at both minimum (4ft) and maximum (50ft) depths. All torpedoes exploded as soon as they reached the 50 meter mark. If the magnetic detonators required passing underneath the ship, the torpedoes set to 4ft should have reached the target and detonated by contact instead, since there was never any metal above them at any point. I recorded a brief video to demonstrate this, which you can view here:

16. What does the "depth" value for each torpedo type in the "torpedoes_us.sim" file do?
Answer: This sets the 'default' running depth for torpedos of this type. Changing the 'depth' value actually changes the starting position of the "torpedo depth" dial. The default value is 1.799999995231628 meters, which is about 5.9 feet. I've no idea why they didn't just use 1.8 meters, but that's a mystery for another day.

17. In Silent Hunter 4 patch 1.2 (and previous) there was a bug causing the green "estimated torpedo path" line from your sub to disappear from your Attack Map when you crossed the International Date Line. Is that bug still present in Silent Hunter 4 patch 1.3?
Answer: Yes, the bug is still present in the 1.3 patch. The International Date Line is at 180 degrees longitude, just West of Midway. The bug occurs when crossing the IDL, which is most common when one launches out of Pearl, and causes the green "torpedo track" indicator line to disappear from your Attack Map. I have recorded a short demonstration video of the bug taking place, which you can watch here:

18. [Question submitted by Tobus] What effect, if any, does the speed of your submarine have on the overall speed at which you can dive and surface?

Last edited by nomad_delta; 07-19-07 at 04:30 PM.
nomad_delta is offline   Reply With Quote
Old 07-14-07, 01:26 AM   #2
nomad_delta
Planesman
 
Join Date: May 2007
Location: San Francisco, California
Posts: 185
Downloads: 1
Uploads: 0
Default

Anyone got any questions? Ask away, and I'll do my best to answer 'em "scientifically", if it's within my capabilities.

nomad_delta
nomad_delta is offline   Reply With Quote
Old 07-14-07, 02:10 AM   #3
Bando
Commodore
 
Join Date: May 2007
Location: Where you don't see me
Posts: 607
Downloads: 23
Uploads: 0
Default

Nomad,
I did ask in another thread, but here's my question

Is the destructive amount of each torpedo modelled in this game set realistic in the sim files?

I took a look at the torpex/TNT values of real life and compared them to the sim files. In my opinion they do not add up.

EDIT

Just read your answer in the other thread, question is still valid
__________________
Regards,

Bando
Bando is offline   Reply With Quote
Old 07-14-07, 01:38 PM   #4
nomad_delta
Planesman
 
Join Date: May 2007
Location: San Francisco, California
Posts: 185
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by Bando
Nomad,
I did ask in another thread, but here's my question

Is the destructive amount of each torpedo modelled in this game set realistic in the sim files?

I took a look at the torpex/TNT values of real life and compared them to the sim files. In my opinion they do not add up.

EDIT

Just read your answer in the other thread, question is still valid
Ok, you're on the list! (see above) Your question might be a bit difficult for me to answer on my own, since I'm certainly not an expert on what "realistic and historical" torpedo explosive amounts should be, but let's see what we can do! What source were you using to look up the 'real life' torpex/TNT values?

nomad_delta
nomad_delta is offline   Reply With Quote
Old 07-14-07, 02:23 PM   #5
Bando
Commodore
 
Join Date: May 2007
Location: Where you don't see me
Posts: 607
Downloads: 23
Uploads: 0
Default

At work now, I'll answer that at home.

Stand by.......
__________________
Regards,

Bando
Bando is offline   Reply With Quote
Old 07-14-07, 02:30 PM   #6
Jungman
Samurai Navy
 
Join Date: Apr 2005
Location: Iowa, USA
Posts: 596
Downloads: 0
Uploads: 0
Default

7. Do the torpedo 'speed' values in the 'torpedo_us.sim' file have any effect on actual torpedo speeds in the game?


No. They are hardcoded.
Jungman is offline   Reply With Quote
Old 07-14-07, 04:15 PM   #7
Bando
Commodore
 
Join Date: May 2007
Location: Where you don't see me
Posts: 607
Downloads: 23
Uploads: 0
Default

I'm home now, did some searching, here's the result:

Explosive powers:

http://www.geocities.com/Pentagon/1592/ustorp3.htm

Mk 14 (Mod 3A) 660Lb Torpex steam 4.500yds @ 46,3 kts
Mk 16 (Mod 1) 920Lb Torpex 11.000yds @ 46.2kts
Mk 18 575Lb Torpex Elect 4000yds @ 29 kts

http://www.microworks.net/pacific/ar..._submarine.htm

Mk 10 497Lb TNT steam 3500 yds @ 36 kts

http://www.ssbn608.org/mk14_torpedo.htm

Mk 14 643 Lb Torpex steam 4500 yds @ 46 kts/ 9000 yds @ 31 kts

http://www.bergall.org/320/patrol/torpedo.html

Mk 14 643Lb HBX (interestingly it says "Exploder Mk 6 Mod 13 Contact" -no magnetic mentioned)
Mk 18 (mod 3) 575Lb HBX 4000 yds @ 29 Kts (exploder was either the Mk8 (contact) OR Mk9 (contact/influence)
Mk 23 (mod 6) 643 Lb HBX 4500 yds @ 46,3 kts (Contact)
Mk 27 Electric propulsion, active acoustic homing. (I think this should read passive acoustic homing)

http://www.fleetsubmarine.com/torpedoes.html
Mk 27 95 Lbs warhead

http://www.navweaps.com/Weapons/WTUS_WWII.htm
Mk 10 497 lb TNT
Mk 14 643 lb Torpex
Mk 16 943 lb Torpex
Mk 18 575 lb Torpex
Mk 23 643 lb Torpex
Mk 27 95 lb Torpex !!!!

The readings in the files concerning patch 1.2 were not corresponding with the figures mentioned above (imho).
The truth is, for the life of me, I can't find the Torpedo_US.zon file in patch 1.3 so maybe this info about the torpedoes is in another file.

EDIT: Disregard, found the torpedo_us.zon file. (had to reinstall the whole bunch again....)
__________________
Regards,

Bando

Last edited by Bando; 07-15-07 at 08:01 AM.
Bando is offline   Reply With Quote
Old 07-14-07, 04:49 PM   #8
nomad_delta
Planesman
 
Join Date: May 2007
Location: San Francisco, California
Posts: 185
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by Jungman
7. Do the torpedo 'speed' values in the 'torpedo_us.sim' file have any effect on actual torpedo speeds in the game?


No. They are hardcoded.
Initially I thought exactly the same, myself, but after some more testing I've found that they're not hardcoded at all. I posted a new answer on this above, with a link to a 'demonstration' mod a threw together to illustrate it:

Nomad's Min & Max Speed Mk14 Torpedoes Mod
This will cause your Mk14 torpedoes to run at a slow-as-molasses 1 knot on the 'slow' setting, and an incredible 255 knots on the 'fast' setting.
http://mpgtext.net/subshare/242Nomad...0Torpedoes.zip

The values have to be within 0 and 255, which is odd considering that they're stored in a 4-byte floating-point format in the .sim file. The game just ignores it if you try to set anything higher.

Unfortunately, everything borks if you try to set a slower speed before a higher speed, which ruins the whole reason I was investigating this in the first place: I wanted to make a mod that would make fast the default torpedo speed while still allowing you to switch to slow torpedoes.

I suppose I could make a quick mod that would simply remove the 'slow' speed from Mk14 torpedoes so they'd always go fast, if anyone's interested. I was really hoping to find a way to change the default, though. I've spent some time playing around with the torpedo speed dial settings in 'dials.cfg' as well, but haven't been able to accomplish anything useful there. Most settings I try just 'break' the dial and stop it from working altogether.

nomad_delta
nomad_delta is offline   Reply With Quote
Old 07-14-07, 04:50 PM   #9
PepsiCan
Planesman
 
Join Date: Apr 2007
Location: Netherlands
Posts: 189
Downloads: 0
Uploads: 0
Hmmm...torpex

Funny that all your values mention Torpex. I thought US Navy didn't switch to Torpex until the middle of the war? Before that, they used TNT I believe?

Anyone?
__________________
===================
AMD Athlon 64 3200+ 2.1Ghz
1Gb RAM
MSI NVidia 6800 128MB
MSI motherboard
Realtek soundcard
Windows XP Pro SP2
===================
PepsiCan is offline   Reply With Quote
Old 07-14-07, 04:54 PM   #10
nomad_delta
Planesman
 
Join Date: May 2007
Location: San Francisco, California
Posts: 185
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by PepsiCan
Funny that all your values mention Torpex. I thought US Navy didn't switch to Torpex until the middle of the war? Before that, they used TNT I believe?

Anyone?
No idea, here. I think we may need some help from one of the really serious history-buffs or rivet-counter types that hang out 'round here. :p

nomad_delta
nomad_delta is offline   Reply With Quote
Old 07-14-07, 04:58 PM   #11
Bando
Commodore
 
Join Date: May 2007
Location: Where you don't see me
Posts: 607
Downloads: 23
Uploads: 0
Default

The only one using TNT is mk 10

I must say I did not dig that deep, I just wanted to have the blast correspond with what RL torps had in them...
__________________
Regards,

Bando
Bando is offline   Reply With Quote
Old 07-15-07, 10:52 AM   #12
nomad_delta
Planesman
 
Join Date: May 2007
Location: San Francisco, California
Posts: 185
Downloads: 1
Uploads: 0
Default

(Jungman's reply about the torpedo speeds somehow got posted in the torpedo exploder discussion thread, so I'm copy-pasting it over here to keep things organized)

Quote:
Originally Posted by Jungman
When we tried to fix the torpedo speed fast bug problem before patch 1.2 fixed it, the torpedos fastest speed was about 36. I tried to change any speed value, but the game EXE would not read it in from the .sim file.

I guess as of patch 1.2 or 1.3 the game EXE is now reading the torpedo speeds inside .sim. That was not the case before. I guess my mistake was not going back and verify that the truth of that since the patch 1.2 fixed the 'Fast Torpedo Speed' bug -no reason to check it again.

I assumed it was still true. I guess that was my bad for not verify if it worked under patch 1.2 or 1.3.
I only started playing as of patch 1.2, so that's probably why I never saw the same thing happen. Actually, out of curiosity, what was the 'fast torpedo speed' bug? No worries, though, that's what this thread is all about -- now we know something a little more than what we did before we started, and hopefully it'll be useful information for some creative modders out there.

To that end, I promise that I'll never put anything in the 'answers' section in my first post unless I'l personally tested and verified it myself. (For those of you just coming in to the thread, be sure to go back and read the first post --that's where all the questions & answers are, and I'll always be updating it with new ones!)

Oh! One thing I forgot to mention above, is that not only will the torpedoes actually go 1 knot if you set them to do so, they'll even go zero knots if you set that. They'll eject a certain distance from the sub at a set speed just like all other torpedoes, and then they'll just stop and sit in the water there.

One idea I had is that maybe we could use this to make a floating 'mines' mod of some kind, with new graphics? We could even set the magnetic_denonator radius really high and make proximity mines!

nomad_delta
nomad_delta is offline   Reply With Quote
Old 07-15-07, 05:36 PM   #13
Jungman
Samurai Navy
 
Join Date: Apr 2005
Location: Iowa, USA
Posts: 596
Downloads: 0
Uploads: 0
Default

http://www.subsim.com/radioroom/show...t=fast+torpedo

http://www.subsim.com/radioroom/show...t=fast+torpedo

When Sh4 was first released, it was buggy as hell. It turned out that the fast setting of the Mark 14 , or any torpedo, would not go any faster than ~33 to 36 knots, causing torpedoes to lag miss targets.

Read about it if you wish, we tried to change the speed in .sim but the game exe was not reading it. I guess that was fixed in 1.2 and 1.3 but never checked back to see if the speed settings were being read from .sim now. Those were the 'fun days' upon game released too early.

Quote:
I am confused. I wanted to just do a simple hex edit to make the Torpedo move faster from 46 knot to 59 to compensate for the lag.

No go. Nothing I edit really gets into the game. I cannot make the torpedo move any faster.

The game needs the file, and you can make some changes, are the speed values located in the EXE, since the numbers for changes in the .sim show up in game, but the torp are still at the same speed.

Anyone hack the .sim file to get ANY torpedo to move faster than 36 knots? that is where the data is located. The whole thing seems Fubar and was hung together as if they ran out of time due to pressure to release it.

I do not understand it. It is not like SH3 files. What am I doing wrong?
Jungman is offline   Reply With Quote
Old 07-15-07, 06:08 PM   #14
nomad_delta
Planesman
 
Join Date: May 2007
Location: San Francisco, California
Posts: 185
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by Jungman
http://www.subsim.com/radioroom/show...t=fast+torpedo

http://www.subsim.com/radioroom/show...t=fast+torpedo

When Sh4 was first released, it was buggy as hell. It turned out that the fast setting of the Mark 14 , or any torpedo, would not go any faster than ~33 to 36 knots, causing torpedoes to lag miss targets.

Read about it if you wish, we tried to change the speed in .sim but the game exe was not reading it. I guess that was fixed in 1.2 and 1.3 but never checked back to see if the speed settings were being read from .sim now. Those were the 'fun days' upon game released too early.
I did find something odd about the 'speed' values in torpedoes_us.sim that might be relevant here, actually:

When I was testing changes to the other values to torpdoes_us.sim (like the magnetic exploder settings, magdet radius, etc) I was able to apply changes to the values without having to completely exit and reload the game. I'd just go back to the main menu screen in SH4, then alt-tab back to my hex-editor & make my changes, and alt-tab back into the game. When I loaded up a mission the changes I'd just made would be in effect, so the game was loading the torpedoes_us.sim values each time you launched a mission.

Now for the really wierd part: I found that the same is not true for the speed values in torpedoes_us.sim! If you make changes to the speed values, the game will not register them unless you completely exit SH4 and restart it from scratch!

That doesn't make much sense to me at all, and that's why I initially thought the speed values were hard-coded too. I don't understand why the game would load up some of the values in torpedoes_us.sim upon mission launch, but other values only on a complete game restart, but there it is.

Might be something to keep in mind when testing tweaks to other .SIM files, since maybe there are other files that behave the same way?

nomad_delta
nomad_delta is offline   Reply With Quote
Old 07-17-07, 10:11 AM   #15
nomad_delta
Planesman
 
Join Date: May 2007
Location: San Francisco, California
Posts: 185
Downloads: 1
Uploads: 0
Default

Added a new question about premature detonations & torpedo running depth that switch.dota asked in another thread. I'm curious about this too, so I'll be testing when I get home from work later.

nomad_delta
nomad_delta 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 08:23 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.