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 05-13-13, 02:12 AM   #1
EAF274 Johan
Ensign
 
Join Date: Mar 2005
Location: Gent, Belgium
Posts: 228
Downloads: 94
Uploads: 0
Default

Another question: if I want to keep the special ability to reduce torpedo dud chances ("Remove torpedo dud reduce ability"), do I need to leave "Removes other reducing factor from torpedo dud chances" disabled, or can I enable it?
__________________
Rock 'n' roll is the only religion that will never let you down
EAF274 Johan is offline   Reply With Quote
Old 05-13-13, 02:13 AM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by EAF274 Johan View Post
Another question: if I want to keep the special ability to reduce torpedo dud chances ("Remove torpedo dud reduce ability"), do I need to leave "Removes other reducing factor from torpedo dud chances" disabled, or can I enable it?
You can enable it. That's why I made it a separate patch
TheDarkWraith is offline   Reply With Quote
Old 05-13-13, 02:34 AM   #3
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

Tried to open the EXE with patch 93 . Randomise nearest visual contact distance . Change 2 . Reason . Bytes read does not equal bytes expected by patch .
Can anyone else get it to work ? Is it a problem on my end ?

Last edited by THE_MASK; 05-13-13 at 03:51 AM.
THE_MASK is offline   Reply With Quote
Old 05-13-13, 05:28 AM   #4
Echolot
Seasoned Skipper
 
Join Date: Mar 2010
Location: Berlin, Germany
Posts: 715
Downloads: 575
Uploads: 0
Default

Quote:
EXE with patch 93 . Randomise nearest visual contact distance . Change 2
No error here.

Echolot is offline   Reply With Quote
Old 05-13-13, 06:41 AM   #5
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
If anyone has any ideas on improving the latest patch (randomize nearest visual contact distance) don't be afraid to speak up...
something which I find annoying is that hydrophone estimated ranges (and now visual ranges) are totally random. Ask many ranges to closest target in a row, and you will get numbers as 10,700, 11,000, 10,800, 10,500, etc. which makes range reports to look totally silly.

I wonder if you could store somewhere the last range estimation, and the time that it was estimated at. Every time we ask for a range, your code should calculate elapsed time from the previous estimation. Let's define some variablen:

RE = new range estimation
RE0 = last stored range estimation
TE= time elapsed from the last stored range estimation
TE0 = minimum time for a new range estimation
  • if TE < TE0, or both target and U-boat are stationary, than output is RE0;
  • else, calculate RE:
    • if target is closing:
      • if RE < RE0, output is RE;
      • else, output is RE0;
    • if target is moving away:
      • if RE > RE0, output is RE;
      • else, output is RE0;

TE0 should be a function of target's speed and range: the slower the speed and the longer the range, the longer the time for estimated range to change. Variables are reset if closest target changes.

Another, probably easier method to do the same could be by comparing exact ranges. In this case the variables involved would be:

RE0 = last stored range estimation
R0 = exact range relative to the last stored range estimation
R = current range

if RE0 and R0 are empty variables (no previous contact estimations for current closest target), then calculate range estimations according to your current code. Else, new range estimation should be equal to:

RE0 * R / R0

What do you think?

Quote:
Originally Posted by TheDarkWraith View Post
ok, I know how to get all the data related to fog, precipitation, clouds, wind heading, and wind speed.
Any chance for this other idea to be implemented:

http://www.subsim.com/radioroom/show...88#post1886488
gap is offline   Reply With Quote
Old 05-13-13, 06:57 AM   #6
BigWalleye
Sea Lord
 
Join Date: Jul 2012
Location: On the Eye-lond, mon!
Posts: 1,973
Downloads: 465
Uploads: 0


Default

Gap, that sounds like a good idea, although IMHO it sounds like a lot of coding work for a small gain in realism. You could also use a Kalman filter to converge the range estimates. "Course, I'm not doing the work, so I shouldn't complain. Would be nice to have.

Your linked post regarding degrading the quality of ship IDs I really want to second! Have longed for this. BTW, on American ships, at least, the skipper customarily viewed the target through the periscope and reported salient features to the identification party, which then made the call. Or the lookouts would report (after the fact) what features they had observed. Final ID was typically not done RT, and the ID party seldom saw the target. Simulating this accurately could get complex and seems to call for a completely new approach. But anything that makes the ID function less Godlike and more error-prone would be a big improvement. TDW, would you consider this for a future fix?
BigWalleye is offline   Reply With Quote
Old 05-13-13, 08:07 AM   #7
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by BigWalleye View Post
Gap, that sounds like a good idea, although IMHO it sounds like a lot of coding work for a small gain in realism.
You are probably right about the complexity of coding it. But I wouldn't call it "a small gain in realism" as it would make the reporting officer to behave as a sentient being, instead of a stupid random numbers generator
gap is offline   Reply With Quote
Old 05-13-13, 08:53 AM   #8
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
You are probably right about the complexity of coding it. But I wouldn't call it "a small gain in realism" as it would make the reporting officer to behave as a sentient being, instead of a stupid random numbers generator
What I'll add to the code is having it remember which unit the game used for the nearest visual contact distance. I'll also store the actual distance to the unit along with last random distance calculated. Then if player asks for nearest visual contact the code will check to see if the same unit is found, if so then it will check actual distance to see if it's changed some amount (I'll make that a variable in the patch file). If the distance changed >= variable amount then calculate new random distance. If distance changed < variable amount return last random distance calculated.

How's that? I don't want anything too complex. I just wanted something to get rid of the perfect range estimate every time you asked for nearest visual contact.
TheDarkWraith is offline   Reply With Quote
Old 05-13-13, 11:27 PM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
You are probably right about the complexity of coding it. But I wouldn't call it "a small gain in realism" as it would make the reporting officer to behave as a sentient being, instead of a stupid random numbers generator
v1.0.94.0 released. See post #1

Starting with v1.0.94.0 Revised the randomize nearest visual contact patch again. Now the patch remembers the last unit it used for the command. If the unit is the same unit as last time and difference between distance to contact now and before < 500m (a variable in the patch file) then it returns last randomized distance else returns new randomized distance. If the unit is different than last unit then it returns a new random distance.

Now I'll look to see if I can do the same thing to the sonarman's command that's similar to this.

Last edited by TheDarkWraith; 05-13-13 at 11:42 PM.
TheDarkWraith is offline   Reply With Quote
Old 05-13-13, 07:51 AM   #10
volodya61
Ocean Warrior
 
volodya61's Avatar
 
Join Date: Feb 2012
Location: Rostov-on-Don, local time GMT+4
Posts: 3,292
Downloads: 374
Uploads: 0


Default

Quote:
Originally Posted by gap View Post
Any chance for this other idea to be implemented:

http://www.subsim.com/radioroom/show...88#post1886488
Yeah, it would be just great if this idea will be implemented
__________________
.
Where does human stupidity end?

.


El sueño de la razón produce monstruos © - and for some people awakening will be cruel
volodya61 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 10:00 PM.


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.