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, 04:14 PM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

v1.0.92.0 released. See post #1

Starting with v1.0.92.0 Added a new patch to the SH5.exe that randomizes the nearest visual contact's distance returned. This new patch will take your sub's crew veterency level into account.

If you're curious to know how the distance gets randomized:

(1.0 - (sub's crew veterency level / 4)) * random number in range (0.0-1.0) - this is var1

max % error (0.1 or 10%) * random number in range (0.0-1.0) - this is var2

var3 = var1 + var2

nearest contact visual distance * var3 = var4

random number rolled to see if var4 becomes a negative number or not

nearest contact visual distance + var4 = new nearest contact visual distance

As you can see from the formula the greater the distance the contact is away the larger the error in distance that can be reported
TheDarkWraith is offline   Reply With Quote
Old 05-12-13, 04:17 PM   #2
Fifi
Navy Seal
 
Fifi's Avatar
 
Join Date: Dec 2012
Location: France
Posts: 6,254
Downloads: 510
Uploads: 0


Default

...seems VERY interesting patch!! Just WOW!
Going to test it with latest OH
Fifi is offline   Reply With Quote
Old 05-12-13, 04:18 PM   #3
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

This games getting harder , i mean more realistic by the day
THE_MASK is offline   Reply With Quote
Old 05-12-13, 04:24 PM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Fifi View Post
...seems VERY interesting patch!! Just WOW!
Going to test it with latest OH
Quote:
Originally Posted by sober View Post
This games getting harder , i mean more realistic by the day
No more precise distances to the hundreds of meter from the crew anymore when you ask for nearest visual contact That annoyed me to no end
TheDarkWraith is offline   Reply With Quote
Old 05-12-13, 04:43 PM   #5
Sjizzle
Count Dracula
 
Sjizzle's Avatar
 
Join Date: Aug 2012
Location: 46°13′N, 24°47′E
Posts: 1,807
Downloads: 405
Uploads: 0


Default

this game will be very awesome with this patch nice job TDW
Sjizzle is offline   Reply With Quote
Old 05-12-13, 04:46 PM   #6
EAF274 Johan
Ensign
 
Join Date: Mar 2005
Location: Gent, Belgium
Posts: 228
Downloads: 94
Uploads: 0
Default

What is meant precisely by the "kiddy factor" such as in "remove kiddy factor from torpedo premature chances"? It is not clear to me.
__________________
Rock 'n' roll is the only religion that will never let you down
EAF274 Johan is offline   Reply With Quote
Old 05-12-13, 04:56 PM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by EAF274 Johan View Post
What is meant precisely by the "kiddy factor" such as in "remove kiddy factor from torpedo premature chances"? It is not clear to me.
I call 'kiddy factors' any code that reduces the chances of failures and/or events from happening. Majority of the time these 'kiddy factors' severely reduce the chances of you encountering any type of failure and/or event. These 'kiddy factors' make the game gamey and take away from the realism


Just had the depth under keel command not work in a career game Now to see why it's not working anymore
TheDarkWraith is offline   Reply With Quote
Old 05-12-13, 05:26 PM   #8
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Sjizzle View Post
this game will be very awesome with this patch nice job TDW
Not yet. Still working on making it awesome

If anyone has any ideas on improving the latest patch (randomize nearest visual contact distance) don't be afraid to speak up. Do I need to make it 'harder'? Like say after a certain distance the crew only reports in 500m increments
TheDarkWraith is offline   Reply With Quote
Old 05-12-13, 05:38 PM   #9
7thSeal
Samurai Navy
 
Join Date: Mar 2010
Posts: 592
Downloads: 199
Uploads: 0
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. Do I need to make it 'harder'? Like say after a certain distance the crew only reports in 500m increments
Only thing I can think of at the moment is if somehow fog and stormy weather can make it harder for the crew to give precise distance. I know you mentioned anything with weather being hard coded though and not sure if its feasible.
7thSeal is offline   Reply With Quote
Old 05-12-13, 05:40 PM   #10
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by 7thSeal View Post
Only thing I can think of at the moment is if somehow fog and stormy weather can make it harder for the crew to give precise distance. I know you mentioned anything with weather being hard coded though and not sure if its feasible.
That is a great idea! I've seen where EnvSim_act is asked for weather data. Now I just have to remember where I bookmarked that at
TheDarkWraith is offline   Reply With Quote
Old 05-14-13, 03:57 PM   #11
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
v1.0.92.0 released. See post #1

Starting with v1.0.92.0 Added a new patch to the SH5.exe that randomizes the nearest visual contact's distance returned. This new patch will take your sub's crew veterency level into account.

If you're curious to know how the distance gets randomized:

(1.0 - (sub's crew veterency level / 4)) * random number in range (0.0-1.0) - this is var1

max % error (0.1 or 10%) * random number in range (0.0-1.0) - this is var2

var3 = var1 + var2

nearest contact visual distance * var3 = var4

random number rolled to see if var4 becomes a negative number or not

nearest contact visual distance + var4 = new nearest contact visual distance

As you can see from the formula the greater the distance the contact is away the larger the error in distance that can be reported
Just tested my "theory" with the numbers you have stated in the above post, but var1 multiplied by 0.1, so that perc error is ±20% in the worst case. I have put them on a spreadsheet with independent random functions for each variable.

For a veterancy level of 0, true ranges of 10,000, 9,500, 9,000, 8,500, 8,000 m, your functions returned the following results ("out of place" ranges in orange):

test#1: 9,185; 9,951; 8470; 9,160; 8,860
test#2: 9,044; 10,048; 9,801; 9,101; 8,649
test#3: 10,642; 8,268; 8,911; 8,927; 7,329
test#4: 10,778; 9,214; 8,850; 8,412; 8,402
test#5: 9,030; 8,773; 8,766; 8,598; 7,829

Indeed, I didn't select in any way the results, but I have just listed here the first 5 sets of numbers generated by the spreadsheet.

As you can see, there's a significant probability of illogical range estimations being generated
gap is offline   Reply With Quote
Old 05-14-13, 06:28 PM   #12
BigWalleye
Sea Lord
 
Join Date: Jul 2012
Location: On the Eye-lond, mon!
Posts: 1,973
Downloads: 465
Uploads: 0


Default

TDW, when you can clear your inbox, I have a PM for you.
BigWalleye is offline   Reply With Quote
Old 05-15-13, 12:39 AM   #13
Targor Avelany
Ace of the Deep
 
Join Date: Jan 2010
Location: Vancouver, BC, Canada
Posts: 1,183
Downloads: 225
Uploads: 0


Default

Just on a side note, as I'm not sure where else to put this:

recently was not able to switch the locations to launch the game: not sure where the UPlay takes the location of the sh5.exe anymore. Annoys the heck out of me, as I used to having 3 different folders specifically, so I have 1 to play, 1 to mess around/mod/test things and 1 with clear non-modded set up. Now, no matter what I change the settings in the registry to (either by had or with my little SH5 Switch or with TDW's Validator) it always launching the original installation.

Just extremely annoys me. So far, trying to trace it down is not working, as I am still figuring out the olydbg, so just decided to throw it out there.

p.s. matters not whether the TDW's patcher activated or not.
Targor Avelany is offline   Reply With Quote
Old 05-15-13, 11:17 AM   #14
Sartoris
Captain
 
Join Date: May 2011
Posts: 489
Downloads: 106
Uploads: 0
Default

I've been out of the loop recently, so I don't entirely understand the latest changes. If I remember correctly, the aim of the v1.0.94.0 patch is to randomize the distance the game returns when you ask for range. Does this mean that the game gives you a completely random number (e.g. the ship is 5000 meters away, and the game says it's 14000 meters away), or is the number approximate (e.g. the game says it's 5000 meters away even though the ship is 5500 meters away)?

What I mean is, can the game be relied upon to give a range report that is somewhat accurate, or is it now wildly inaccurate to remove the annoying advantage of being given a precise report?
Sartoris is offline   Reply With Quote
Old 05-15-13, 11:28 AM   #15
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Sartoris View Post
I've been out of the loop recently, so I don't entirely understand the latest changes. If I remember correctly, the aim of the v1.0.94.0 patch is to randomize the distance the game returns when you ask for range. Does this mean that the game gives you a completely random number (e.g. the ship is 5000 meters away, and the game says it's 14000 meters away), or is the number approximate (e.g. the game says it's 5000 meters away even though the ship is 5500 meters away)?

What I mean is, can the game be relied upon to give a range report that is somewhat accurate, or is it now wildly inaccurate to remove the annoying advantage of being given a precise report?
The reported range is randomized by a percent of the true range (reported range = true range x (1 ± random percent). Max error percent vary depending on crew experience and weather state. In addition, in future there will be a customizable option for rounding the reported range to a multiple of an input number
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 02:01 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.