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


Default

Quote:
Originally Posted by gap View Post
I wish you good luck with this one.

On the topic of possible new patches, in SH5 general forum a French speaking member has asked about a patch making sinking ships not to disappear as soon as they touch the seabottom. This is not the worst SH5 flaw indeed, but since I know you have already looked into this problem, do you have any news about it?
I know where in the code it adds the depth offset to the unit to make it sink through the bottom and keep going till it's at 500m at which time the game removes it. Problem is I haven't figured out what is triggering this negative depth offset value. Once I can find that I can stop the units from sinking through the bottom. Before I can figure that out I have to find the code that says unit hit the bottom - don't let it go through the bottom first.
TheDarkWraith is offline   Reply With Quote
Old 04-18-13, 04:51 PM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

A link to the SH_N_Client patch has been placed at post #1. I'll ensure it's in the next version
TheDarkWraith is offline   Reply With Quote
Old 04-18-13, 05:23 PM   #3
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 know where in the code it adds the depth offset to the unit to make it sink through the bottom and keep going till it's at 500m at which time the game removes it. Problem is I haven't figured out what is triggering this negative depth offset value. Once I can find that I can stop the units from sinking through the bottom. Before I can figure that out I have to find the code that says unit hit the bottom - don't let it go through the bottom first.
I see

On a side note, have you seen the graph at page #1665? I wonder which rpm/speed curve is coded in game.

Setting a realistic curve (especially for electric propulsion) is going to impact the optimal silent speed for evading enemy attacks. This is supposing that, as in rela life, enemy detection in game is affected by propeller's rpm, rather than by speed per se.

According to the article mentioned in the above post, the most silent running speed was at about 90 rpm, which should correspond to the second slowest speed order in U-boat speed telegraphs: "Langsame Fahrt".

Also note that speed orders for diesel propulsion (expressed as a fraction of the maximum speed/rpm) had a different "spacing" among them than their equivalent for electric propulsion:

Code:
	Diesel	Electric
KF	0.34	0.20
LF	0.54	0.39
HF	0.62	0.54
2xHF	0.80	0.69
GF	0.95	0.80
AK	0.98	0.97
3xAK	1.00	-
As far as I can see, SH5 uses the same settings ([EngineProperties] in NSS_Uboat7*.cfg) for both diesel and electric propulsion. I wonder if you could patch the game to use different ratios for them
gap is offline   Reply With Quote
Old 04-19-13, 12:10 AM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

v1.0.83.0 released. See post #1

Added more support code to each patch file. Fixed bug in sh5.exe when writing DestroyedUnits.ini file. Added new entries to the DestroyedUnits.ini file. YOU NEED TO OPEN EVERY PATCH FILE PROVIDED SO THAT THE FILE ASSOCIATED WITH THE PATCH GETS IT'S NEW/UPDATED SUPPORT CODE.

Added new torpedo failures to the SHSim.act file.

ENSURE YOU REMOVE ALL OLD PATCHES FIRST!

Last edited by TheDarkWraith; 04-19-13 at 01:09 AM.
TheDarkWraith is offline   Reply With Quote
Old 04-19-13, 03:20 AM   #5
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 TheDarkWraith View Post
v1.0.83.0 released. See post #1
Good news

Unfortunately destroyed marks doesn't show up in my game when I'm using the NewUIs (at all), so I was forced to restore the stock destroyed marks texture..
I hope with this new patch everything will show up as expected
__________________
.
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 04-19-13, 08:11 AM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by volodya61 View Post
Good news

Unfortunately destroyed marks doesn't show up in my game when I'm using the NewUIs (at all), so I was forced to restore the stock destroyed marks texture..
I hope with this new patch everything will show up as expected
Not yet. When I release the next version of my UIs mod and the Generic Patcher then the destroyed marks will be fixed
TheDarkWraith is offline   Reply With Quote
Old 04-19-13, 10:10 AM   #7
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 TheDarkWraith View Post
Not yet. When I release the next version of my UIs mod and the Generic Patcher then the destroyed marks will be fixed
Not as great as I thought, but still good news

__________________
.
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 04-19-13, 10:27 AM   #8
a17tares
Swabbie
 
Join Date: Apr 2013
Posts: 14
Downloads: 54
Uploads: 0
Default

@TDW

I just realized that you are using two different TDWUtils.dll's in NewUIs_TDC_7_3_0_ByTheDarkWraith (10.03.2013 8KB) and TDW_GenericPatcher_v_1_0_83_0 (08.09.2011 7KB). Maybe this is of any significance for the problems some of us are encountering? By the way disabling Orbit Launcher in the SH_NClient Patch but not in SH5 Patches seems to get rid of the campaign progress bug. But I'm not sure yet about the effect on CTDs.
a17tares is offline   Reply With Quote
Old 04-19-13, 01:14 AM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
As far as I can see, SH5 uses the same settings ([EngineProperties] in NSS_Uboat7*.cfg) for both diesel and electric propulsion. I wonder if you could patch the game to use different ratios for them
I can probably do something for this. I would make it so that a file is read that contains all the data for every sub. So take all the engine properties for every sub and copy them into a file. Add a header to each one like so [x] where x is the sub's classname from it's cfg file. Adjust the values to what you want and post a link to it.
TheDarkWraith is offline   Reply With Quote
Old 04-19-13, 09:40 AM   #10
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 can probably do something for this. I would make it so that a file is read that contains all the data for every sub. So take all the engine properties for every sub and copy them into a file. Add a header to each one like so [x] where x is the sub's classname from it's cfg file. Adjust the values to what you want and post a link to it.
I am still collecting more information on the topic, but I am close to have a complete framework of it, and I plan to post in short time the cfg file suggested by you.

For a start, from a table at p. 21 of the Cumulative Edition of the British interrogation reports, I got confirmation that the "misaligned" point in the graph posted at post #1665 (electric propulsion), is due to a mistyping. R.p.m. at Langsame Fahrt were 112, and not 90, as wrongly reported in this document.

The correct rpm/speed chart for type VIIC U-boats is therefore:

Code:
DIESEL
speed order		rpm	speed
========================================
Kleine Fahrt		161	6.10 kts	 	 
Langsame Fahrt		263	9.63 kts
Halbe Fahrt		310	10.98 kts 
2x Halbe Fahrt		404	14.24 kts	 	 
Große Fahrt		469	16.73 kts
Äußerste Kraft		485	17.29 kts

ELECTRIC
speed order		rpm	speed
========================================
Kleine Fahrt		60	1.50 kts	 	 
Langsame Fahrt		112	3.00 kts
Halbe Fahrt		160	4.10 kts 
2x Halbe Fahrt		200	5.23 kts	 	 
Große Fahrt		233	6.10 kts
Äußerste Kraft		280	7.40 kts
...and this is the new graph, showing a perfect rpm/speed linearity for both diesel and electric propulsion:



This is what British had measured on captured boats... the Kriegsmarine manual for U-boat Type VII C (p. 14), reports slightly different figures:

Code:
DIESEL
speed order		rpm	max speed	min speed
=========================================================
Kleine Fahrt		180	7.20 kts	7.00 kts	 	 
Langsame Fahrt		275	10.20 kts	10.00 kts
Halbe Fahrt		340	12.40 kts	12.00 kts 
2x Halbe Fahrt		396	14.60 kts	14.00 kts	 	 
Große Fahrt		435	16.30 kts	16.00 kts
Äußerste Kraft		471	17.70 kts	17.50 kts
3x Äußerste Kraft	480	18.10 kts	17.90 kts

ELECTRIC
speed order		rpm	max speed	min speed
=========================================================
Kleine Fahrt 	 	55	2.30 kts	1.50 kts
Langsame Fahrt		110	4.50 kts	3.00 kts
Halbe Fahrt		160	6.30 kts	4.50 kts
2x Halbe Fahrt	 	215	8.20 kts	6.00 kts 
Große Fahrt		250	9.30 kts	7.00 kts
Äußerste Kraft		285	10.5 kts	8.00 kts
3x Äußerste Kraft	300	11.00 kts	-
Their graph is a bit more confusing:



Max speed points for both diesel and electric propulsion are substantially aligned on the same straight line, wereas min speed values can be interpolated by two lines whose gradients are similar to the ones seen in the previous graph, with electric propulsion having a lesser slope than diesel propulsion (0.0262-0.0280 vs. 0.0357-0.0366). This makes me to think that the max speeds reported for each speed order are sort of theoretical values. What do you think guys?
gap is offline   Reply With Quote
Old 04-19-13, 01:24 PM   #11
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Default

Quote:
Originally Posted by gap View Post
...
Max speed points for both diesel and electric propulsion are substantially aligned on the same straight line, wereas min speed values can be interpolated by two lines whose gradients are similar to the ones seen in the previous graph, with electric propulsion having a lesser slope than diesel propulsion (0.0262-0.0280 vs. 0.0357-0.0366). This makes me to think that the max speeds reported for each speed order are sort of theoretical values. What do you think guys?
I believe that both sources are more than credible. A linear speed-RPM dependency is normal for propellers in water (as opposed to air) for an example look at this chart and we here are talkin about very low RPMs at which this linearity would be even more pronounced. Let linearity here not confuse you: water, as opposed to air, is almost incompressible at these speeds that is why propellers are not loosing much of their effectiveness. It would be way more interesting to see speed-P.S. charts where there would be a lot more 'curviness'. As in terms of max-speed: I would go with British repots since German ones most probably give a brand-new boat specs as opposed to the British 'old-boat' ones and while at the moment we don't have a possibility to 'degrade' engines' performance we better set it slightly lower straight from the start.
Vanilla is offline   Reply With Quote
Old 04-19-13, 03:53 PM   #12
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Vanilla View Post
I believe that both sources are more than credible. A linear speed-RPM dependency is normal for propellers in water (as opposed to air) for an example look at this chart and we here are talkin about very low RPMs at which this linearity would be even more pronounced. Let linearity here not confuse you: water, as opposed to air, is almost incompressible at these speeds that is why propellers are not loosing much of their effectiveness. It would be way more interesting to see speed-P.S. charts where there would be a lot more 'curviness'. As in terms of max-speed: I would go with British repots since German ones most probably give a brand-new boat specs as opposed to the British 'old-boat' ones and while at the moment we don't have a possibility to 'degrade' engines' performance we better set it slightly lower straight from the start.
Thank you for your clarifications, Vanilla, they make perfect sense

Talking about min/max speeds reported in the second set of data, the one taken from the Germanan manual, after having a closer look into the aforementioned source I have discovered what they are for. Diesel engine speeds are relative to two different (sea ?) conditions, named A and B. As for Electric propulsion speeds, max speeds apply to surface navigation, thus the big difference with min speeds (due to the extra drag caused by boat's superstructure and armament during submerged navigation). Unfortunately, I don't think the game takes the above factors into consideration.

Concluding, given the linear proportionality between r.p.m. and speeds, I think that the best way to set EngineProperties relative to each speed order, is calculating them from rpm's, as rpm'sr are lesser affected by disturbance factors (such as weather conditions, drag, etc.) compared to navigation speeds. In order to do it, we need to know maximum operative rpm's. The "U-boat Information for U-boat Type VII C" reports the following figures for both M.A.N. and G.W. Diesel engines (pp. 118, 124)

Full load: 470 RPM
Overload: 480 RPM
Maximum load: 490 RPM

Coparing the two sources I have recently mentioned, I think the "Maximum load" was the theoretical maximum speed that an engine in operational conditions wouldn't have been pushed to. Therefore I would set max diesel rpm to 485. As for Electric motors, this limit had to be a bit higher than 300 RPM, though I couldn't find any explicit mention to it in the sources I have consulted so far.

Using the above figures (480-485 and 300 rpm's) as reference, we should set EngineProperties as follows:

According to British Admiralty records:

Code:
[Diesel]

AheadSlow=0.33
AheadOneThird=0.54
AheadStandard=0.64
AheadFull=0.97
AheadFlank=1.00

[Electric]

AheadSlow=0.20
AheadOneThird=0.37
AheadStandard=0.53
AheadFull=0.78
AheadFlank=0.93
According to specs reported by the German manual:


Code:
[Diesel]

AheadSlow=0.37
AheadOneThird=0.57
AheadStandard=0.71
AheadFull=0.91
AheadFlank=0.98

[Electric]

AheadSlow=0.18
AheadOneThird=0.37
AheadStandard=0.53
AheadFull=0.83
AheadFlank=0.95
Note that I have not included backward speed orders yet. The German manual lists their respective rpm's, but not their resuting speeds. I ignore if propeller's hydroninamic efficency is the same in both ways, and I am therefore hesitant in homolgating reverse rpm's with backward speeds the same way I did with astern speed orders; nonetheless, assuming that propellers work the same way in both directions, we would have:

Code:
[Diesel]

BackSlow=-0.37
BackStandard=-0.43
BackFull=-0.52
BackEmergency=-0.82

[Electric]

BackSlow=-0.18
BackStandard=-0.37
BackFull=-0.53
BackEmergency=-0.83

Last edited by gap; 04-19-13 at 04:08 PM.
gap is offline   Reply With Quote
Old 04-20-13, 09:18 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

Hi TDW

As I mentioned in the NewUIs thread, I returned to the game after a short break and tested today all new patches since the version 1.0.75..

short report:

1. Render Patches
Change12 - Disables rendering of torpedo line
not working at all..

.

2. TDC AOB and Speed dials fix
Change3 - Fixes TDC Speed dial resetting
Change4 - Fixes TDC Speed dial resetting

When these two changes are enabled auto targeting is not working.. Changes 1 and 2 (AOB dial fixes) are working correctly..

3. Fixes torpedo circle runner chance
This patch is not working correctly or, on the other hand, it is working better than excellent .. all eleven torpedoes each test have their 100% chance to be a circle runner ..



Other torpedo patch - Checks for torpedo rudder jam on initial turn - is working properly, one circle runner torpedo for every two-three tests..



4. Revised AI Crew Damage control seems is working correctly so far, but this patch requires much more testing as it happened the last time ..

PS: not tested Orbit Listener patches, there is reason ..
__________________
.
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 01:36 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.