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


Default

Enabled the latest patch with no problems .
On a side note , if i enable the CO2 patch then my CO2 stays at 0% while submerged . Its no problem , i just dont enable the CO2 patch .
THE_MASK is offline   Reply With Quote
Old 07-21-12, 06:14 PM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by sober View Post
Enabled the latest patch with no problems .
On a side note , if i enable the CO2 patch then my CO2 stays at 0% while submerged . Its no problem , i just dont enable the CO2 patch .
That's a stock bug that happens when you start out submerged. Surface then dive and you'll 'remove' that bug.
TheDarkWraith is offline   Reply With Quote
Old 07-23-12, 01:07 PM   #3
TheBeast
The Old Man
 
Join Date: Jan 2010
Location: Lynnwood, WA
Posts: 1,533
Downloads: 888
Uploads: 23


Default

Quote:
Originally Posted by TheDarkWraith View Post
Quote:
Originally Posted by sober View Post
Enabled the latest patch with no problems .
On a side note , if i enable the CO2 patch then my CO2 stays at 0% while submerged . Its no problem , i just dont enable the CO2 patch .
Quote:
That's a stock bug that happens when you start out submerged. Surface then dive and you'll 'remove' that bug.
I am also experiencing the problem with Co2 staying at 0% after enabling the Co2 Patch.
I thought it might be the stock bug at first but I am unable to get get it working correctly.
Checked my Documents\SH5\data\cfg\SaveGames\<blah>\GameplaySe tting.CFG and LimitedO2=true.
__________________
Fear me! I am, TheBeastBelow

SHIV-MediaFire | SHV-MediaFire
TheBeast is offline   Reply With Quote
Old 07-27-12, 03:01 PM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Been doing a lot of travelling lately for work so I haven't had time to sit down in front on my main system and 'work'. To kill time on the airplanes I've been looking into the .exe and .act files for 'problems'. One thing that I had a hunch of being a problem was when a shell/torpedo impacted a unit the game was incorrectly calculating which zones (boxes) were affected. That hunch turns out to be correct - the game has a serious problem in this area.
In order to explain why we have to take two steps back and state one fundamental difference between SH5 and all the previous versions: The Granny file system. The Granny file system includes a unit of measure in the Art Tool Info of every GR2 file. This value let's the game know what the scaling factor is of the data it contains. For SH5 this scaling factor is 0.1 in every GR2 file (that I've looked at). This scaling factor seems to have caused much confusion to the programmers programming SH5.
After weeks of chasing down the routine that is called that calculates the distance from each zone (box) to the impact point I finally found it. The game calculates this distance and then compares this distance to the MinRadius and MaxRadius of the shell/torpedo that impacted the unit. There is a HUGE problem in a subroutine that is called from this routine. The subroutine iterates over every zone (box) and compares the distance from impact to it to the MaxRadius. If less than MaxRadius then game says no damage is done to that zone. Herein is the problem: the radius is unscaled, the MaxRadius is scaled (i.e. say distance calculated was 3.42 and MaxRadius was supposed to be 7.0 but the game is using 0.7 instead). Thus the game is not inflicting damage to nearby zones This explains why the ships do not list/sink like they should when hit by shells and torpedoes
The solution is easy: use the unscaled value for MaxRadius. The fix is not so easy as I have to find the pointer that points to this value. Once I find this pointer I'll be releasing another patch to fix this blaring oversight on the devs
TheDarkWraith is offline   Reply With Quote
Old 07-27-12, 03:48 PM   #5
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Brilliant find TDW
Please keep us informed on any progress you will be doing on this matter!
gap is offline   Reply With Quote
Old 07-27-12, 05:02 PM   #6
quink99
中国水兵
 
Join Date: Jul 2011
Posts: 278
Downloads: 941
Uploads: 0
Default

Everytime I think I've just flat run out of amazement you do it again TDW! Will wonders never cease.

I'm sure everyone joins me in offering our sincere thanks for this find as well as all your other matchless contributions to SH5.
quink99 is offline   Reply With Quote
Old 07-27-12, 05:10 PM   #7
Echolot
Seasoned Skipper
 
Join Date: Mar 2010
Location: Berlin, Germany
Posts: 715
Downloads: 575
Uploads: 0
Default

Quote:
I'm sure everyone joins me in offering our sincere thanks for this find as well as all your other matchless contributions to SH5.
Echolot is offline   Reply With Quote
Old 07-31-12, 04:01 PM   #8
Dogfish40
Ace of the Deep
 
Join Date: Sep 2010
Location: LA Area, Central coast, California
Posts: 1,023
Downloads: 827
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
Been doing a lot of travelling lately for work so I haven't had time to sit down in front on my main system and 'work'. To kill time on the airplanes I've been looking into the .exe and .act files for 'problems'. One thing that I had a hunch of being a problem was when a shell/torpedo impacted a unit the game was incorrectly calculating which zones (boxes) were affected. That hunch turns out to be correct - the game has a serious problem in this area.
In order to explain why we have to take two steps back and state one fundamental difference between SH5 and all the previous versions: The Granny file system. The Granny file system includes a unit of measure in the Art Tool Info of every GR2 file. This value let's the game know what the scaling factor is of the data it contains. For SH5 this scaling factor is 0.1 in every GR2 file (that I've looked at). This scaling factor seems to have caused much confusion to the programmers programming SH5.
After weeks of chasing down the routine that is called that calculates the distance from each zone (box) to the impact point I finally found it. The game calculates this distance and then compares this distance to the MinRadius and MaxRadius of the shell/torpedo that impacted the unit. There is a HUGE problem in a subroutine that is called from this routine. The subroutine iterates over every zone (box) and compares the distance from impact to it to the MaxRadius. If less than MaxRadius then game says no damage is done to that zone. Herein is the problem: the radius is unscaled, the MaxRadius is scaled (i.e. say distance calculated was 3.42 and MaxRadius was supposed to be 7.0 but the game is using 0.7 instead). Thus the game is not inflicting damage to nearby zones This explains why the ships do not list/sink like they should when hit by shells and torpedoes
The solution is easy: use the unscaled value for MaxRadius. The fix is not so easy as I have to find the pointer that points to this value. Once I find this pointer I'll be releasing another patch to fix this blaring oversight on the devs
Sorry for keeping the whole quote in but it was so interesting, I had to say, PLEASE TDW, for the love of... Keep us posted on any patch for this. It's another one that will really bring up the "real" factor in the game.
Cheers D40
__________________
Dogfish40
Dogfish40 is offline   Reply With Quote
Old 07-31-12, 04:17 PM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Dogfish40 View Post
Sorry for keeping the whole quote in but it was so interesting, I had to say, PLEASE TDW, for the love of... Keep us posted on any patch for this. It's another one that will really bring up the "real" factor in the game.
Cheers D40
I have the whole collision routine and it's supporting routines decoded. From those I can see everything that goes on during a collision. I'm now questioning my original evaluation of this. Even though I can see everything doesn't mean I understand the whys of it. Herein lies the problem:

the game calculates the distance from the zone (box) to the impact point. It then does a 'lazy' square root to get the square root of that distance. It then compares that result to the MinRadius and MaxRadius values. Now the MinRadius and MaxRadius values are scaled to game units (multiplied by 0.1 - i.e. MinRadius in sim file is 3 but in game it's 0.3). I can't for the life of me figure out why they are taking the square root of the distance
TheDarkWraith is offline   Reply With Quote
Old 07-31-12, 05:21 PM   #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

Hi TDW!

The new Sub on bottom fix have a new third-party effect.
The sub is dive lower than required in the Uboat.cfg file..
For example:
PeriscopeDepth
in the file - 12m, when Sub on bottom fix enabled - 14m
SnorkelDepth
in the file - 14m, when Sub on bottom fix enabled - 16m
__________________
.
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
Old 07-31-12, 06:01 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
I have the whole collision routine and it's supporting routines decoded. From those I can see everything that goes on during a collision. I'm now questioning my original evaluation of this. Even though I can see everything doesn't mean I understand the whys of it. Herein lies the problem:

the game calculates the distance from the zone (box) to the impact point. It then does a 'lazy' square root to get the square root of that distance. It then compares that result to the MinRadius and MaxRadius values. Now the MinRadius and MaxRadius values are scaled to game units (multiplied by 0.1 - i.e. MinRadius in sim file is 3 but in game it's 0.3). I can't for the life of me figure out why they are taking the square root of the distance
No idea

during this afternoon I've been playing with a possible simplified model for armour/damage.

Given AP(S): shell's armour points and AP(B0): box's starting armour points, both >= 0, box's armour points after shell's impact is calculated as follows:

AP(B1) = MAX [AP(B0)* [1 - [C1 * AP(S) / AP(B0)] ^ C2); 0]

where C1 and C2 are two arbitrary positive constants we can use for "finetuning" the formula. Specifically:

C1 is the lower AP(B0) / AP(S) ratio at wich a shell would be enough to wipe out boxe's armour points with one single inpact (graph's gradient when C2=1).

C2 is the "exponential factor" of the formula. 1 for a linear hits number / Box armour points graph.

Every time a shell inpacts a box, the game should update its armour points, and when they are zeroed the box should start taking damage.

I have prepared a spreadsheet for changing the above mentioned parameters and seeing how they would affect the exponential curve. If you want to have a glance at it, I've uploaded it here:

https://rapidshare.com/files/2103822...lculations.xls

Last edited by gap; 07-31-12 at 06:14 PM.
gap is offline   Reply With Quote
Old 07-31-12, 06:09 PM   #12
SilentOtto
Engineer
 
Join Date: Mar 2002
Location: BF79
Posts: 201
Downloads: 71
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
I have the whole collision routine and it's supporting routines decoded. From those I can see everything that goes on during a collision. I'm now questioning my original evaluation of this. Even though I can see everything doesn't mean I understand the whys of it. Herein lies the problem:

the game calculates the distance from the zone (box) to the impact point. It then does a 'lazy' square root to get the square root of that distance. It then compares that result to the MinRadius and MaxRadius values. Now the MinRadius and MaxRadius values are scaled to game units (multiplied by 0.1 - i.e. MinRadius in sim file is 3 but in game it's 0.3). I can't for the life of me figure out why they are taking the square root of the distance
Hey TDW, this intrigued me (love numbers too!) so I did some magic googling and came out with something called Square Root Scaled Distance, related to... guess what? BLASTING! I found some formulae and long readings, but it seems on first read that it's used in blasting calculations, mining, etc. So it looks like that's the reason for the scaled distances and the sqr! Seems like blast effects diminish with sqr of distance, didn't get to the part of why the scaled distance but there it is!

These are a few examples of what I found, it's a bit late here, I can give it a second look tomorrow.

http://www.iseegoldenwest.org/tech.htm

http://www.sustainableaggregates.com...gandenergy.htm

http://www.sustainableaggregates.com...itoring_p2.htm
SilentOtto is offline   Reply With Quote
Old 08-01-12, 01:48 PM   #13
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 Dogfish40 View Post
Yes, 1.0.49, I'm loading tonight. Just to make sure... I will disable all patchs before I load this one.
Can I keep my currant patrol or should I start the patrol over once again? I ask, because I saved in a good place to test the damages I inflict with a torpedo and the deck gun. If I start over I'll have to wait for the next opportunity.
Thanks
D40
I enabled it in the middle of the patrol and now I'm in base and everything still ok..
__________________
.
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:22 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.