![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1051 | |
Black Magic
![]() |
![]() Quote:
![]() The contacts are stored in an array and I assumed that new contacts would be added to the end of the array.....not so! The game adds contacts wherever it wants to in the array. So I had to adjust my code to account for this. This problem no longer exists. |
|
![]() |
![]() |
![]() |
#1052 |
Black Magic
![]() |
![]()
I'm trying to add another feature to the map contacts but running into a little difficulty. I'm wanting to compute their lattitude and longitude. The game gives me the distance from the origin. Origin is in the Gulf von Guineea west of Kongo (you can find it on your nav map). 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?
|
![]() |
![]() |
![]() |
#1053 | |
Old Gang
|
![]() Quote:
__________________
To each his own |
|
![]() |
![]() |
![]() |
#1054 |
Samurai Navy
![]() Join Date: Mar 2010
Posts: 592
Downloads: 199
Uploads: 0
|
![]()
For those saving the game and restarting for fixing sound issues try hitting Esc and then Esc again to get back into the game. 9 outa 10 times this fixes it for me and don't have to worry about saving and restarting the game.
![]() |
![]() |
![]() |
![]() |
#1055 |
Black Magic
![]() |
![]() |
![]() |
![]() |
![]() |
#1056 |
Black Magic
![]() |
![]()
making the navigator actually work now
![]() adding the option for user to change date-time-stamp format. What different formats do you all want? mm/dd/yy time dd/mm/yy time mm/dd/yy military time dd/mm/yy military time ?? |
![]() |
![]() |
![]() |
#1057 |
Watch
![]() Join Date: Apr 2010
Location: Santee
Posts: 18
Downloads: 99
Uploads: 0
|
![]()
looks better and better
mm/dd/yy military time that will be my choice for my game ![]() |
![]() |
![]() |
![]() |
#1058 | |
Silent Hunter
![]() Join Date: Aug 2006
Posts: 3,528
Downloads: 118
Uploads: 0
|
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#1059 | |
Black Magic
![]() |
![]() Quote:
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. |
|
![]() |
![]() |
![]() |
#1060 | |
Seasoned Skipper
![]() Join Date: Dec 2008
Location: Arizona
Posts: 665
Downloads: 104
Uploads: 0
|
![]() Quote:
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." |
|
![]() |
![]() |
![]() |
#1061 |
sim2reality
![]() Join Date: Jun 2007
Location: AM 82
Posts: 2,280
Downloads: 258
Uploads: 30
|
![]() |
![]() |
![]() |
![]() |
#1062 | |
Black Magic
![]() |
![]() Quote:
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 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. |
|
![]() |
![]() |
![]() |
#1063 |
Seasoned Skipper
![]() Join Date: Dec 2008
Location: Arizona
Posts: 665
Downloads: 104
Uploads: 0
|
![]()
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." |
![]() |
![]() |
![]() |
#1064 |
The Old Man
![]() Join Date: Mar 2002
Location: Ayr,Scotland,UK
Posts: 1,392
Downloads: 79
Uploads: 0
|
![]()
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. |
![]() |
![]() |
![]() |
#1065 |
Black Magic
![]() |
![]() |
![]() |
![]() |
![]() |
Tags |
dbrn, favorite, new ui |
|
|