![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|||||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
05-22-12, 12:10 AM
|
#1 |
|
Grey Wolf
![]() Join Date: Jan 2009
Location: Finland
Posts: 857
Downloads: 174
Uploads: 0
|
Great news TDW! Will test this in the evening!
The dud probability is a strange one, it really doesn't follow the percentage values in torpedo.sim. Of course it gives some direction, but like in previous games, we have put the percentage really high if we wan't to see duds. But this sounds just great, thanks! |
|
|
05-22-12, 01:54 AM
|
#2 | |
|
Black Magic
![]() |
Quote:
That's why I'm changing it! When I'm done with it:- it will read in % chance for dud as read from sim file (value is between 0 and 100) - it will get a random number - it will scale that random number to be between 0 and 100 - it will compare % chance for dud to scaled random number to determine if dud or not That is how it should've been done in the first place
|
|
|
|
05-22-12, 02:13 AM
|
#3 |
|
Ace of the deep .
|
The only random numbers i have seen are in .
Silent Hunter 5\data\UPCDataGE\UserPlayerSettings Documents\SH5\data\cfg\UPCInitial\UserPlayerSettin gs |
|
|
05-22-12, 07:27 AM
|
#4 | ||
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
![]() Quote:
By the way, I've found a quite comprehensive essay on the torpedo crisis. Here's the link, just in case some willing person wants to dig in it, looking for facts and figures: http://eaglescholar.georgiasouthern...._201005_MA.pdf |
||
|
|
05-22-12, 09:11 AM
|
#5 | |
|
Black Magic
![]() |
Quote:
It's just like a giant jig-saw puzzle. Every little piece you discover adds to your understanding of the whole
|
|
|
|
05-22-12, 12:14 PM
|
#6 |
|
Black Magic
![]() |
v1.0.26.0 released. See post #1
This version correctly computes the impact dud random number to compare against the dud % chance specified in torpedoes .sim file. There is no reason to use high values for the dud % chance in the torpedoes .sim file anymore - only need values in range of 0 to 100 ![]() Even if you set the dud % chance to 100 (or higher) in the torpedoes .sim file you could still have impact detonations The reason is because the game sometimes 'jumps over' the impact dud check I haven't narrowed down exactly what the trigger is that causes this 'jumping over' of the dud check yet. When I do you can bet I'll release a patch to fix it Magnetic torpedoes duds I'm still working on ![]() Heed the warning in yellow under the download link at post #1 or the patcher app will tell you the file has problems.
|
|
|
05-22-12, 02:24 PM
|
#7 |
|
Ace of the Deep
![]() Join Date: Mar 2005
Location: Bucharest, Romania
Posts: 1,056
Downloads: 3
Uploads: 3
|
I think there's supposed to be some accounting for angle of impact for dud chance?
__________________
With strength I burn... |
|
|
05-22-12, 03:20 PM
|
#8 | |
|
Black Magic
![]() |
Quote:
![]() For an impact (non-magnetic) the game says torpedo impacted something, then it checks the impact angle to those defined in the torpedoes .sim file. If the impact angle falls within a max_angle, min_angle combo defined in .sim file then it jumps to do a dud % check. In the dud % check the game loads the % dud chance defined in .sim file into XMM register. The game then retrieves a random number and stores it into another XMM register. Now here's where stock code does 3 multiplications on that random value. Two of them are fractional values, the third is always 1.0 (I believe this one is related to a skill?). Any idea what these 2 fractional values are for? I haven't been able to track them down yet. From what you're saying one of those fractional values could be related to impact angle? So game gets random number, reduces the random number by some fractional % based on impact angle, multiplies that by another fractional number, then finally multiplies that by 1.0...the final 'random' number is so small you never get any duds! I'll have to think this one over more ![]() Any idea as to why the game skips the impact angle check (and thus the dud % chance check) sometimes on impact detonations? |
|
|
|
05-24-12, 04:41 PM
|
#9 | |
|
Sonar Guy
![]() Join Date: Sep 2010
Location: Switzerland
Posts: 384
Downloads: 86
Uploads: 0
|
Quote:
__________________
Von den 40'000 deutschen U-Boot-Männern des Zweiten Weltkrieges kehrten 30'000 nicht zurück... 40’000 German sailors served on U-boats during World War II – 30’000 never returned home... |
|
|
|
05-25-12, 10:00 AM
|
#10 |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
|
|
|
05-25-12, 02:39 PM
|
#11 |
|
Sonar Guy
![]() Join Date: Sep 2010
Location: Switzerland
Posts: 384
Downloads: 86
Uploads: 0
|
When using TDW's Generic Patcher remember his note at the bottom of post #1 :
NOTE: DISABLE ALL PATCHES WITH OLD PATCHER BEFORE APPLYING NEW PATCHES WITH NEW PATCHER! THIS APPLIES ONLY TO PATCHES RELATED TO SHSIM.ACT AND SHCOLLISIONS.ACT I read it and forgot about it......and it took me quite a while to get everything fixed again.....
__________________
Von den 40'000 deutschen U-Boot-Männern des Zweiten Weltkrieges kehrten 30'000 nicht zurück... 40’000 German sailors served on U-boats during World War II – 30’000 never returned home... |
|
|
05-25-12, 09:11 PM
|
#12 |
|
Nub
![]() Join Date: Mar 2010
Posts: 2
Downloads: 13
Uploads: 0
|
I have a steam version of the game. I'm sad the current patch will not work with my version, but it sounds like applying the fix at runtime would solve this issue as well.
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
