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, 08:46 PM   #1
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   #2
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, 08:12 AM   #3
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   #4
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   #5
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   #6
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   #7
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-18-10, 05:47 AM   #8
pfeillant
Watch
 
Join Date: Nov 2010
Posts: 28
Downloads: 13
Uploads: 0
Default v 5.7.0

hello,
a problem with aircraft and flag
An aircraft is detected
The crew is at the flag
Each time i switch on the screen flag, by teleporting or closing navigation screen, i have this error, I can reproduce it on demand :
A little window "Can't determine current position (OK)"
then a big window "error invoking raise_resized function in class control group wrapper".
May be this problem was also in previous version
pfeillant is offline   Reply With Quote
Old 12-18-10, 06:31 AM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by pfeillant View Post
hello,
a problem with aircraft and flag
An aircraft is detected
The crew is at the flag
Each time i switch on the screen flag, by teleporting or closing navigation screen, i have this error, I can reproduce it on demand :
A little window "Can't determine current position (OK)"
then a big window "error invoking raise_resized function in class control group wrapper".
May be this problem was also in previous version
can you give me a screenshot of the big window? and real nav enabled or not?

Last edited by TheDarkWraith; 12-18-10 at 07:59 AM.
TheDarkWraith is offline   Reply With Quote
Old 12-18-10, 03:41 PM   #10
NONONO
Seaman
 
Join Date: Jun 2010
Posts: 37
Downloads: 366
Uploads: 0
Default

TheDarkWraith
Why you delete link for NewUIs with TDC v5.7.0?
NONONO is offline   Reply With Quote
Old 12-18-10, 03:42 PM   #11
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by NONONO View Post
TheDarkWraith
Why you delete link for NewUIs with TDC v5.7.0?
Because some errors were found one of which caused a CTD. I'm just about ready to release v5.7.1 as I'm testing all fixes now
TheDarkWraith is offline   Reply With Quote
Old 12-18-10, 03:55 PM   #12
col_Kurtz
XO
 
Join Date: Mar 2008
Posts: 424
Downloads: 341
Uploads: 0
Default

TDW...

I got an idea. Maybe SOAN and charts could be printable... maybe ERM too? I`m thinking about 3-4 shpis on the page (A4 210x297mm or 8.25x11.7inches).
__________________


DRM it`s a horror, horror... col. Kurtz Apocalypse Now
WinXP Pro SP3 2x1GB Geil 800Mhz DDR2, ATI 4850 Asus Top, E2160 1.80 Ghz overlocked to 2.79Ghz MoBo Asus P5b
col_Kurtz is offline   Reply With Quote
Reply

Tags
dbrn, favorite, new ui

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 11:57 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.