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 12-16-10, 05:44 PM   #5446
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

only from one small spot on the planet would you need 90 deg
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 12-16-10, 06:22 PM   #5447
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

I just love how I stumble upon things while trying to figure something else out. While looking to see if the angle reported in the solution box was coming from a dial or not I stumbled upon 3 dials:
- SOL_TRACKANGLE
- TORP_ESTIM_SEC
- TORP_ESTIM_MIN

Now these are very interesting because of the data they give. The trackangle gives the torpedo's impact angle to the target - very useful. I'll be adding a new dial to the TDC that will be this dial.

The torp_estim_sec and torp_estim_min give the estimated time to impact of the torpedo based on your TDC settings. By setting different tubes to different speeds one can see these values change. How is this useful? Convoy attack. You set up a fast 90 solution. You can synchronize torpedo impacts for all the tubes based on these times given. One tube per ship. I'll be adding these to the Torpedo box as digital readouts (most likely located right under the tube buttons).

TheDarkWraith is offline   Reply With Quote
Old 12-16-10, 07:40 PM   #5448
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

Quote:
Originally Posted by TheDarkWraith View Post
I just love how I stumble upon things while trying to figure something else out. While looking to see if the angle reported in the solution box was coming from a dial or not I stumbled upon 3 dials:
- SOL_TRACKANGLE
- TORP_ESTIM_SEC
- TORP_ESTIM_MIN

Now these are very interesting because of the data they give. The trackangle gives the torpedo's impact angle to the target - very useful. I'll be adding a new dial to the TDC that will be this dial.

The torp_estim_sec and torp_estim_min give the estimated time to impact of the torpedo based on your TDC settings. By setting different tubes to different speeds one can see these values change. How is this useful? Convoy attack. You set up a fast 90 solution. You can synchronize torpedo impacts for all the tubes based on these times given. One tube per ship. I'll be adding these to the Torpedo box as digital readouts (most likely located right under the tube buttons).

Great news, I was still thinking about 1knot=0.5m/s. and how to work this in
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 12-16-10, 08:46 PM   #5449
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Track angle dial added to TDC:

all dials mode:


Minimal dials mode:


Nav map mode:


now to add the digital estimated torpedo impact time readouts
TheDarkWraith is offline   Reply With Quote
Old 12-17-10, 03:01 AM   #5450
PL_Andrev
Grey Wolf
 
Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
now to add the digital estimated torpedo impact time readouts
I thought that it is realised by red needle at the clock after torpedo firing...
__________________


Last edited by PL_Andrev; 12-17-10 at 05:35 AM.
PL_Andrev is offline   Reply With Quote
Old 12-17-10, 05:35 AM   #5451
PL_Andrev
Grey Wolf
 
Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
what is the max angle we'd be looking for? I think I just had a euraka moment
Near 90° - it is available for binacular and head of observation periscope.

Quote:
Originally Posted by TheDarkWraith View Post
I was thinking about grabbing the angle (marks) but it's not correct (angle too small). Though it does make me think that there is a game dial associated with this. It has to be getting and determining the angle from some kind of dial (hopefully)
Could you read the periscope head angle when looking for these two points?

At the obs periscope (at lower deck) you can move head to both sides and move the view to top/bottom too. The one problem is reading current angle of periscope head:


Now we should know the angle of obs persicope head:


Try it with obs periscope head to take any star angle over horizon line.
Additionally we have good accuracy with obs periscope (6x zoom).
__________________

PL_Andrev is offline   Reply With Quote
Old 12-17-10, 08:12 AM   #5452
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Antar View Post
I thought that it is realised by red needle at the clock after torpedo firing...
after firing yes. But what if you wanted to time the firing of the torpedoes to hit targets all at the same time? With this readout you'll be able to.

EDIT:

doesn't work. Game only updates those dials (Torp estimated seconds and minutes) after you fire a torpedo . So no torp estimated impact time in the torpedo box

Last edited by TheDarkWraith; 12-17-10 at 10:13 AM.
TheDarkWraith is offline   Reply With Quote
Old 12-17-10, 12:02 PM   #5453
PL_Andrev
Grey Wolf
 
Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
after firing yes. But what if you wanted to time the firing of the torpedoes to hit targets all at the same time? With this readout you'll be able to.

EDIT:

doesn't work. Game only updates those dials (Torp estimated seconds and minutes) after you fire a torpedo . So no torp estimated impact time in the torpedo box
I think I can calculate it....


At your screen: Is the track angle changing when you change the torpedo speed?

Could you show me three screens with track angle for three torpedo speeds when you are parallel to target?
It looks like:

|...... |

sub ship (with any speed)
__________________

PL_Andrev is offline   Reply With Quote
Old 12-17-10, 12:04 PM   #5454
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Antar View Post
I think I can calculate it....


At your screen: Is the track angle changing when you change the torpedo speed?

Could you show me three screens with track angle for three torpedo speeds when you are parallel to target?
It looks like:

|...... |

sub ship (with any speed)
I sent you latest version with track angle dial. And yes track angle does change when you change torpedo speed, AOB, or target speed.
TheDarkWraith is offline   Reply With Quote
Old 12-17-10, 12:20 PM   #5455
PL_Andrev
Grey Wolf
 
Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
And yes track angle does change when you change torpedo speed, AOB, or target speed.
t_torp - time when torpedo is hit to target
v_ship - target speed
r_ship - last calculated distance to target
AoB - AoB
t_angle - track angle

'calculate all angles in triangle (uboat-target-hit.point)
aux.angle = 180-AoB- (90-t_angle)

'law of sine to calculate intervals (ways) of ship/torpedo
s_ship = r_ship * sin(aux.angle) / sin(90-t_angle)
s_torp = r_ship * sin(AoB) / sin(90-t_angle)

'to hit torp.time = ship.time
t_torp = s_ship / v_ship

When you change the torpedo speed the track angle is changed, so v_speed value is included at t_angle.
__________________

PL_Andrev is offline   Reply With Quote
Old 12-17-10, 03:38 PM   #5456
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Antar View Post
t_torp - time when torpedo is hit to target
v_ship - target speed
r_ship - last calculated distance to target
AoB - AoB
t_angle - track angle

'calculate all angles in triangle (uboat-target-hit.point)
aux.angle = 180-AoB- (90-t_angle)

'law of sine to calculate intervals (ways) of ship/torpedo
s_ship = r_ship * sin(aux.angle) / sin(90-t_angle)
s_torp = r_ship * sin(AoB) / sin(90-t_angle)

'to hit torp.time = ship.time
t_torp = s_ship / v_ship

When you change the torpedo speed the track angle is changed, so v_speed value is included at t_angle.
I see one problem with this - what happens when target speed is 0 (division by 0 not allowed)

Plus I think this is overcomplicated - we should be able to simply take distance to target / torp speed to find time to impact

EDIT:

ok, after thinking it over we do need to calculate like you posted Antar in order to take into account target's speed.

I don't see how you are factoring in torp speed into this calculation?

EDIT2:

Seems to be a problem with this calculation. Time value is going positive and negative like a sin function...

track angle and angle on bow are values of -180 to 180 (not 0 to 360). That might be why.

EDIT3:

math functions don't like it when you pass them angles instead of radians...so now time is steady but the time increases as the target gets closer.....

Are we not doing anything with s_torp?? The division by 0 is still a problem also

Last edited by TheDarkWraith; 12-17-10 at 04:18 PM.
TheDarkWraith is offline   Reply With Quote
Old 12-17-10, 04:27 PM   #5457
PL_Andrev
Grey Wolf
 
Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
1. I see one problem with this - what happens when target speed is 0 (division by 0 not allowed)

2. Plus I think this is overcomplicated - we should be able to simply take distance to target / torp speed to find time to impact

EDIT:

ok, after thinking it over we do need to calculate like you posted Antar in order to take into account target's speed.

3. I don't see how you are factoring in torp speed into this calculation?

EDIT2:

4. Seems to be a problem with this calculation. Time value is going positive and negative like a sin function...

5. track angle and angle on bow are values of -180 to 180 (not 0 to 360). That might be why.
See my comments in yellow.

1. When the target speed is 0 these calculations have no sense,
and the time impact = range / torp_speed

2. There is no easy way to calculate it, this is the reason why torpedo electromechanical computer was on uboats...

3. The torpedo speed create a different track angle, so we do not need special calculations for torpedo speed,

4. First you calculate ship and torp distance, they should be positive both.
Check the angles they should be positive. Check the angle calculations. Aux.angle should be positive.
AoB + aux.angle + (180-torp.angle) = 180

5. AoB and track angle on my calculations should be 0-180 only.
Keep positive only (AoB, track_angle) - the sign +/- depend from target's direction course. They should be positive or negative both together.

6. There are mistake in calculations:
aux.angle = 180 - AoB - (180 - t_angle)
s_ship = r_ship * sin(aux.angle) / sin(180-t_angle)
s_torp = r_ship * sin(AoB) / sin(180-t_angle)

For me the 'degree' are more natural than radians, (but you have AoB, tarck angle in degrees too).
It is no problem to use radians - only change is: 180° = 3,1415rad (pi number)
__________________

PL_Andrev is offline   Reply With Quote
Old 12-17-10, 05:16 PM   #5458
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

The game has "torp run time" already.

If you look at mav map (torp solution line on) and adjust any range setting, a time is displayed at end of line.

Could this be used?
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 12-17-10, 05:20 PM   #5459
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

v5.7.0 released. See post #1 for details

to those who tested this, you'll need to download this as more errors/bugs were fixed.

I'll be out snowboarding this weekend so I'll attend to any bugs/errors/etc. when I return

Last edited by TheDarkWraith; 12-17-10 at 05:41 PM.
TheDarkWraith is offline   Reply With Quote
Old 12-17-10, 08:39 PM   #5460
SashaKA001
中国水兵
 
Join Date: Mar 2010
Location: 47°46′46″N, 37°14′51″E
Posts: 271
Downloads: 231
Uploads: 0
Default

if very close to put a marker on the boat, the game freezes.
and the markers are put through again.

Last edited by SashaKA001; 12-17-10 at 09:05 PM.
SashaKA001 is offline   Reply With Quote
Reply

Tags
dbrn, favorite, new ui


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 08:27 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.