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-25-10, 11:26 AM   #1
kylania
Silent Hunter
 
Join Date: Aug 2006
Posts: 3,528
Downloads: 118
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
These distances from origin are in meters. I know that a degree of lattitude is approx. 111km and a degree of longitude is approx 111km at the equator and goes to 0 at the poles. If I divide the distance the game gives me for lattitude by 111000 (in meters) the value comes close but doesn't match what the game puts in the messagebox (say for a radio contact report). The longitude part I haven't derived the mathematical formula for it yet. Can any math majors help me out here?
Ignore reality! The lat/long lines are 120km from each other in game, a square grid rather than the lines-on-a-globe they really are. Should make things much easier.
__________________

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


Default

Quote:
Originally Posted by kylania View Post
Ignore reality! The lat/long lines are 120km from each other in game, a square grid rather than the lines-on-a-globe they really are. Should make things much easier.

true they are 120km from each other but the game is factoring in geographical location into the mathematical formula it's using to derive lat and long. I used the costant 120000 (120km) and it still didn't come out right.

EDIT: ok, I have my moments.......the fractional part left over I forgot to factor as 60 minutes to a degree. I'll see what that gives.
TheDarkWraith is offline   Reply With Quote
Old 04-25-10, 12:32 PM   #3
McHub532
Seasoned Skipper
 
Join Date: Dec 2008
Location: Arizona
Posts: 665
Downloads: 104
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
EDIT: ok, I have my moments.......the fractional part left over I forgot to factor as 60 minutes to a degree. I'll see what that gives.
There are 10 types of people in the world. Those that understand binary and those that don't.

Sorry.. just stray from base 10 and life gets wonky.
__________________
Thomas Jefferson - "When the people fear their government, there is tyranny; when the government fears the people, there is liberty."

McHub532 is offline   Reply With Quote
Old 04-25-10, 02:10 PM   #4
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default

Quote:
Originally Posted by McHub532 View Post
There are 10 types of people in the world. Those that understand binary and those that don't.
Just love that saying.
reaper7 is offline   Reply With Quote
Old 04-25-10, 02:37 PM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by kylania View Post
Ignore reality! The lat/long lines are 120km from each other in game, a square grid rather than the lines-on-a-globe they really are. Should make things much easier.
yep. Got it working.

Ok, the TAI information has changed. You now get the contact date-time-stamp and also the bearing to the contact (Bearing) and the heading you need to take to head to the contact (Heading):


I've added some information to the nav-map contacts also. Notice in this example that the messagebox's radio report's lat and long match the info displayed for the contact Bearing is the bearing from the sub's bow to the target (+ is clockwise, - is counter-clockwise, Heading is the heading you would turn to to head to the contact):


Bearing and heading are updated in real time. So if you turn the sub those values will change in real time.

When a contact is added to the nav-map, the original lat and long are saved with the contact. They do not get updated.
TheDarkWraith is offline   Reply With Quote
Old 04-25-10, 02:46 PM   #6
McHub532
Seasoned Skipper
 
Join Date: Dec 2008
Location: Arizona
Posts: 665
Downloads: 104
Uploads: 0
Default

TheDarkWraith; have I told you today that I love you?
__________________
Thomas Jefferson - "When the people fear their government, there is tyranny; when the government fears the people, there is liberty."

McHub532 is offline   Reply With Quote
Old 04-25-10, 02:50 PM   #7
Sonarman
The Old Man
 
Join Date: Mar 2002
Location: Ayr,Scotland,UK
Posts: 1,396
Downloads: 79
Uploads: 0
Default

Great work, but maybe it would be better to say "intercept" or "Heading to target" rather than "heading" as this maybe mistakenly interpreted as the contact's heading/course?
__________________
"The action is simulated...the excitement is real!"
Microprose Simulation Software.
Sonarman is offline   Reply With Quote
Old 04-25-10, 02:53 PM   #8
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Sonarman View Post
Great work, but maybe it would be better to say "intercept" or "Heading to target" rather than "heading" as this maybe mistakenly interpreted as the contact's heading/course?
intercept heading or intercept? I can see how heading could be misleading....
TheDarkWraith is offline   Reply With Quote
Old 04-25-10, 03:21 PM   #9
Sonarman
The Old Man
 
Join Date: Mar 2002
Location: Ayr,Scotland,UK
Posts: 1,396
Downloads: 79
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
intercept heading or intercept? I can see how heading could be misleading....
Either would be fine (a simple "intercept" may be better in terms of text box length), another idea would be having the bearing stated as Red XXX when to the port side and Green XXX when to the starboard.
__________________
"The action is simulated...the excitement is real!"
Microprose Simulation Software.
Sonarman is offline   Reply With Quote
Old 04-25-10, 04:44 PM   #10
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Sonarman View Post
Either would be fine (a simple "intercept" may be better in terms of text box length), another idea would be having the bearing stated as Red XXX when to the port side and Green XXX when to the starboard.
I'll go with intercept then. I'm not too fond of changing the text color as it's sometimes hard to read against different backgrounds you can get in the TAI. I'll stick with the - meaning to port, and positive values to starboard.

EDIT:

or can remove the - altogether and add a 'P' at the end for port or 'S' for starboard?

Last edited by TheDarkWraith; 04-25-10 at 04:59 PM.
TheDarkWraith is offline   Reply With Quote
Old 04-25-10, 05:21 PM   #11
kylania
Silent Hunter
 
Join Date: Aug 2006
Posts: 3,528
Downloads: 118
Uploads: 0
Default

I'd go with a straight relative bearing. So if it's 55 degrees to port rather than having to figure out 360 - 55 then setting that, just turn to 305 and hit heading to view. Also, P and S work for English, but it would be BB or SB for German. Best to just leave it as the relative bearing I'd say.

It's easier to plot a 305 with a bearing overlay than 55 degrees to port as well. Just my 2 cents.
__________________

kylania is offline   Reply With Quote
Old 04-25-10, 06:11 PM   #12
Sonarman
The Old Man
 
Join Date: Mar 2002
Location: Ayr,Scotland,UK
Posts: 1,396
Downloads: 79
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
I'll go with intercept then. I'm not too fond of changing the text color as it's sometimes hard to read against different backgrounds you can get in the TAI. I'll stick with the - meaning to port, and positive values to starboard.
EDIT:
or can remove the - altogether and add a 'P' at the end for port or 'S' for starboard?
Sorry, I didn't actually mean the color of the figures themselves but actually to display the words "red" and "green" ahead of the figures which is what an officer of the deck might say i.e. target bearing "Red 45 sir" etc. But I like Kylania's True & Rel Bearing idea above as well, either would be great.
__________________
"The action is simulated...the excitement is real!"
Microprose Simulation Software.
Sonarman is offline   Reply With Quote
Old 04-25-10, 03:20 PM   #13
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default

Quote:
Originally Posted by TheDarkWraith View Post
yep. Got it working.

Ok, the TAI information has changed. You now get the contact date-time-stamp and also the bearing to the contact (Bearing) and the heading you need to take to head to the contact (Heading):


I've added some information to the nav-map contacts also. Notice in this example that the messagebox's radio report's lat and long match the info displayed for the contact Bearing is the bearing from the sub's bow to the target (+ is clockwise, - is counter-clockwise, Heading is the heading you would turn to to head to the contact):


Bearing and heading are updated in real time. So if you turn the sub those values will change in real time.

When a contact is added to the nav-map, the original lat and long are saved with the contact. They do not get updated.
Simply Amazing Stuff . I don't know how you do it.
reaper7 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 10:35 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.