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-12-13, 10:21 PM   #1
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

If i enable all the render patches i get a ctd on clicking on the navigation map icon .
THE_MASK is offline   Reply With Quote
Old 05-12-13, 11:55 PM   #2
totalrain
Swabbie
 
Join Date: May 2005
Posts: 5
Downloads: 225
Uploads: 0
Default

Quote:
Originally Posted by sober View Post
If i enable all the render patches i get a ctd on clicking on the navigation map icon .
For me it was Render patch 12, "Disables rendering of torpedo line", that caused the Nav Map and Mission selection CTD. All others are OK. This was with Patcher 1.0.83.

I have an nVidea GTX560 graphics card and AMD Phenom II X4 965 CPU.

Everything was working with OH2.1 Full + Patch 2 and your (Sobers) mod list. I didn't sink any Polish ships as it was heavy fog and I play at 100% + Real Nav and haven't had a chance continue with the Baltic Operations mission. I will try with OH2.2 and the latest Patcher when I get the time to play again.
totalrain is offline   Reply With Quote
Old 05-13-13, 12:50 AM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

v1.0.93.0 released. See post #1

Starting with v1.0.93.0 Revised the randomize nearest visual contact patch. Now the patch takes weather into account (clouds, fog type, and precipitation type)

The weather parameters are accessed via a table of entries for each type. The data is contained in the patch file via variables. It's a number of types of the weather type X 2 table with data for each weather type (clouds, precipitation, and fog): columns are the available types for each weather type (none, medium, heavy, etc). The two rows are distance and percent error to add. If the visual contact's distance is >= distance then game will check the percent error to add. If percent error to add is < 0 then game says you do not see the visual contact. If percent error is >= 0 then this error is added to the current total error. If distance is < 0 then that tells the game to ignore this weather type. I'll detail what the stock values are for all the tables tomorrow.

If the game calculates that you cannot see a visual contact it will display a message in the messagebox denoting so. Message to display (menu entry) is a variable in the patch file. Currently I have it set to 1209 (No visual contact!)

TheDarkWraith is offline   Reply With Quote
Old 05-13-13, 02:12 AM   #4
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   #5
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   #6
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   #7
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   #8
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
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 12:26 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.