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-20-10, 05:45 AM   #1
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Quote:
Originally Posted by TheDarkWraith View Post
Here's our new digital clock. It will read out GMT time or Local time. You click anywhere in the black box (where the time is) to toggle between local/GMT time...
Wow! TDW, mate, you're quicker then lightning!
There is one thing to it though: knowing the difference between local and GMT time down to this precision enables you to precisely figure out your longitudinal position circumventing navigator's fix errors, with that given the time display should be either locked to GMT or the 'real-world hardcore' option is to make the 'local' time clock reflect nautical time zones (you shift the clock by one hour every time you move 15 degrees longitudinally east or west).
Here is the formula for 'local' time reflecting current nautical time-zone based on the last navigator's fix:
Code:
{
int sign = 1;
if (' longitude from the last fix is Western ') then
   sign = -1;

int long = ' integer of longitude from the last fix ';

//Now get the number of hours you have to add (or subtract)
hours_difference = sign * int(long/15); 

nautical_time_zone_time = GMT_time + hours_difference;
}
As far as I remember the navigator (or logbook, or something else) also gives you the sunrise and sunset times. These as well should be adjusted to the last fix and 'local' time or disabled with real navigation on. The formulae for those are much more complicated. I've got to get my head around it to post them, give me some time.
Vanilla is offline   Reply With Quote
Old 12-20-10, 08:03 AM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Vanilla View Post
Wow! TDW, mate, you're quicker then lightning!
There is one thing to it though: knowing the difference between local and GMT time down to this precision enables you to precisely figure out your longitudinal position circumventing navigator's fix errors, with that given the time display should be either locked to GMT or the 'real-world hardcore' option is to make the 'local' time clock reflect nautical time zones (you shift the clock by one hour every time you move 15 degrees longitudinally east or west). As far as I remember the navigator (or logbook, or something else) also gives you the sunrise and sunset times. These as well should be adjusted to the last fix and 'local' time or disabled with real navigation on. The formulae for those are much more complicated. I've got to get my head around it to post them, give me some time.
Have to say I'm learning much just from making this real navigation add-on mod It appears then that I need to lock the digital clock to either local or GMT time? I have the user option already coded in for specifying what the digital clock is set to at game start so removing the ability to change it in game is easy to do. What are the advantages/disadvantages of locking it in either mode?
What if I added another user option that when enabled didn't let you change the digital clock (in game)? This way I could satisfy everyone's taste for realism. Or is this point moot?
Sunrise and sunset times come from Otto's integrated chalkboard mod. I already adjusted his mod to use local time and your current last position fix for many of his calculations that depend on position.
Currently I have the digital clock updating in real time. By real time I mean every 500m of longitude change the clock is adjusted +- 1 second. You're saying I need to change this? If so, why?

Last edited by TheDarkWraith; 12-20-10 at 08:14 AM.
TheDarkWraith is offline   Reply With Quote
Old 12-20-10, 10:21 AM   #3
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
Have to say I'm learning much just from making this real navigation add-on mod It appears then that I need to lock the digital clock to either local or GMT time? I have the user option already coded in for specifying what the digital clock is set to at game start so removing the ability to change it in game is easy to do. What are the advantages/disadvantages of locking it in either mode?
What if I added another user option that when enabled didn't let you change the digital clock (in game)? This way I could satisfy everyone's taste for realism. Or is this point moot?
Sunrise and sunset times come from Otto's integrated chalkboard mod. I already adjusted his mod to use local time and your current last position fix for many of his calculations that depend on position.
Currently I have the digital clock updating in real time. By real time I mean every 500m of longitude change the clock is adjusted +- 1 second. You're saying I need to change this? If so, why?
The thing is that the difference between GMT and exact local time is the method used to determine longitude in navigation. For example if I know that local time is offset by +1 hour 16 minutes and 32 second from GMT time - I immediately know that my longitude is exactly 19 degrees and 8 minutes East. This gives me my longitudinal position down to 1.2km precision without doing anything. So my idea is either to lock out 'local' time leaving only GMT for users who has real nav enabled or instead of continuously updating local time to give them time that is set to current nautical time zone as on a real life ship - it is updated only every 15 degrees of longitude and is precise only down to one hour (1650km error) based on last navigator's fix (1650km + navigator's error). I gave a formula for local time zone time calculation in the previous post.
Vanilla is offline   Reply With Quote
Old 12-20-10, 10:39 AM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Vanilla View Post
The thing is that the difference between GMT and exact local time is the method used to determine longitude in navigation. For example if I know that local time is offset by +1 hour 16 minutes and 32 second from GMT time - I immediately know that my longitude is exactly 19 degrees and 8 minutes East. This gives me my longitudinal position down to 1.2km precision without doing anything. So my idea is either to lock out 'local' time leaving only GMT for users who has real nav enabled or instead of continuously updating local time to give them time that is set to current nautical time zone as on a real life ship - it is updated only every 15 degrees of longitude and is precise only down to one hour (1650km error) based on last navigator's fix (1650km + navigator's error). I gave a formula for local time zone time calculation in the previous post.
Which is the best way to implement? Locking out local time or implementing nautical time zones for real nav?

On a ship, how are entries in the ship's log kept? Are they recorded in GMT time or local time or the nautical time zone time?
TheDarkWraith is offline   Reply With Quote
Old 12-20-10, 11:13 AM   #5
brandtryan
Engineer
 
Join Date: Feb 2007
Location: Indianapolis, United States
Posts: 214
Downloads: 122
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
Which is the best way to implement? Locking out local time or implementing nautical time zones for real nav?

On a ship, how are entries in the ship's log kept? Are they recorded in GMT time or local time or the nautical time zone time?
Something just clicked in my head, though I've probably got it wrong. I just realized (I think), that where I am right now in Indianapolis, that when the sun is at its highest point in the sky, that it won't be precisely noon. I'm GMT-5 time zone--but that's just it--it's a "zone". Somewhere (probably on the meridian that designates the start of GMT-5, precisely at noon, the sun is at it's highest point in the sky to the observer, if they are located exactly on that meridian. But since I"m essentially between meridians--it might be a few minutes before or after noon (local time zone) when the sun is at its highest point as I observe it. It finally occured to me when I was thinking about the local vs GMT clock in game. The local clock isn't going to help much--since it is the time for the local time ZONE. To really find out exactly what time it is at a given location, you have to wait for the sun to reach it's highest point, which would then be "local noon", or better yet, "precise local noon", to set it apart from local time zone time. You then compare that to current GMT, and you've got your answer.

Ok--I"m probably completely wrong--plz someone correct me, so I can know I"m heading in the right or wrong direction! (no pun intended)
__________________
from Brandt
brandtryan is offline   Reply With Quote
Old 12-20-10, 11:43 AM   #6
keper
Nub
 
Join Date: May 2007
Posts: 4
Downloads: 24
Uploads: 0
Default

Hi I've just installed the mod and i saw that when i'm at periscope depth i can't rise the observation periscope over the surface, anyone knows how to fix it?
keper is offline   Reply With Quote
Old 12-20-10, 11:46 AM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by keper View Post
Hi I've just installed the mod and i saw that when i'm at periscope depth i can't rise the observation periscope over the surface, anyone knows how to fix it?
you have to go to snorkel depth to use observation scope. Click on the snorkel depth icon on the left side depth bar. I've set the length of the obs scope to be historically accurate.
TheDarkWraith is offline   Reply With Quote
Old 12-20-10, 03:23 PM   #8
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
Which is the best way to implement? Locking out local time or implementing nautical time zones for real nav?

On a ship, how are entries in the ship's log kept? Are they recorded in GMT time or local time or the nautical time zone time?
The best is to give current time zone time for real nav. It will be a reflection of real life. Simply lockin out local time when real nav enabled is just that - rough and simple way of locking out a possibility to 'cheat' circumventing the navigator. On the other hand removing the local time altogether is great inconvenience - you will not be able to tell straight away just by looking at the clock what part of the day is now since GMT can be way off. Is that dawn or dusk you're seeing at the moment? How many hours before sunset is left so you can surface? etc. You will always need to do a calculation in your head. That's why time zones are there.
In real life the time kept on ship should reflect local time (should be advanced or reduced every 15 degrees of long):
Quote:
Originally Posted by Wiki-impedia
A ship is required to adopt the standart time of a country when it is in its territorial waters, but must revert to nautical time as soon as it leaves territorial waters. ... ships must obtain GMT from zone time, not zone time from GMT
Summary: with real navigation enabled local ship time should reflect time of the local nautical time zone (formula given before), on mouse hover GMT should be shown.

Regarding the logbooks - you log at local shipborne time (nautical time zone time) but you make note on what is the local time difference at the beginning of each day and when adjusting to the new zone:
Quote:
When starting a new day in the log at midnight local, record the date and time of GMT and the zone description (difference between local time and GMT) so there is no ambiguity as to what time it was when something occurred. This is how its done on US flag ships.
quote from here: http://www.cruisersforum.com/forums/...log-40035.html

Summary: logs are kept using local time with notes at the beginning of each day and after sailing into another time zone stating time difference with GMT

P.S. This all is of course irrelevant if real nav is disabled - we should not force some obscure time thingy on not-so-hardcore players.

P.P.S. I recon we're definitely hi-jacking the thread with all this, should we start a new [TEC] regarding real nav things?


Last edited by Vanilla; 12-20-10 at 03:44 PM.
Vanilla is offline   Reply With Quote
Old 12-20-10, 03:51 PM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Vanilla View Post
The best is to give current time zone time for real nav. It will be a reflection of real life. Simply lockin out local time when real nav enabled is just that - rough and simple way of locking out a possibility to 'cheat' circumventing the navigator. On the other hand removing the local time altogether is great inconvenience - you will not be able to tell straight away just by looking at the clock what part of the day is now since GMT can be way off. Is that dawn or dusk you're seeing at the moment? How many hours before sunset is left so you can surface? etc. You will always need to do a calculation in your head. That's why time zones are there.
In real life the time kept on ship should reflect local time (should be advanced or reduced every 15 degrees of long):


Summary: with real navigation enabled local ship time should reflect time of the local nautical time zone (formula given before), on mouse hover GMT should be shown.

Regarding the logbooks - you log at local shipborne time (nautical time zone time) but you make note on what is the local time difference at the beginning of each day and when adjusting to the new zone:
quote from here: http://www.cruisersforum.com/forums/...log-40035.html

Summary: logs are kept using local time with notes at the beginning of each day and after sailing into another time zone stating time difference with GMT

P.S. This all is of course irrelevant if real nav is disabled - we should not force some obscure time thingy on not-so-hardcore players.

P.P.S. I recon we're definitely hi-jacking the thread with all this, should we start a new [TEC] regarding real nav things?

I see no reason to start a new thread. This is all part of the UIs mod

So let's see if my math is correct.....every 15 degrees of longitude is:
15 x 120,000 = 1,800,000 meters or 1,800km. Correct?

I will adjust the digital clock to current nautical time zone in real nav. Thankfully I already have the timers and messagebox reporting in 'current time' so the change will be easy to implement.

I've also added dead-reckoning to the mod. If the navigator can't report position he'll chart out a dead-reckoning fix. Depending on your user options he'll either tell you the new position or he'll plot it as a navigational fix.

But this I see as a problem. I see it as a way to enable GPS navigation again. When the navigator does his dead-reckoning calc I'm thinking about including a small random amount of error so that it will mitigate GPS style navigation. Thoughts?

I also noticed a big problem with the mod (real nav part). Say you have 4 navigational fixes plotted. You adjusted #2's position. All the rest of the navigational fixes don't adjust
TheDarkWraith is offline   Reply With Quote
Old 12-20-10, 06:34 PM   #10
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Quote:
Originally Posted by TheDarkWraith View Post
So let's see if my math is correct.....every 15 degrees of longitude is:
15 x 120,000 = 1,800,000 meters or 1,800km. Correct?
Not exactly - distance is 111.320km at equator and less at other places. But that is the difficult way. You do not need the distance just the coords from the last fix. For example:
0. Bernard-the-navigator does his woodoo dance with sextant and dead-reckoning stuff at 12:00PM (and some other times during the day and night)
1. Although reluctantly we accept this coords from him: 53°31′0″N 28°8′0″E
2. From those we need only 28° and E.
3. 28 / 15 = 1.87, round it (round half away from zero: -1.5 = -2; 1.5 = 2), you get 2.
4. Since we are to E - then we add (subtract if W) - so it is +2
5. Your local time is GMT+2.
6. If different from previous zone - note new nautical time zone in the journal (GMT+2) Noting zone letter ("B") as well would be a nice touch of realism.
7. Every midnight note current zone in the journal again.

Two more examples
28°27′20″N 80°31′40″W -> round(80/15) = 5 -> 5 * (E) ? 1 : -1 -> is GMT-5
35°42′2″N 139°42′54″E is GMT+9

Quote:
Originally Posted by TDW
But this I see as a problem. I see it as a way to enable GPS navigation again. When the navigator does his dead-reckoning calc I'm thinking about including a small random amount of error so that it will mitigate GPS style navigation. Thoughts?
That's brilliant as is, make it no more precise than 2-3km, if your speed measuring device is giving you 10% error, then with 10 knots speed it can give your 21km mistake in just one day. But then the weather is not always that bad and error is not working in one direction - sometimes it adds another time it takes (otherwise navigator would easily take the error into account), so 2-3km is alright IMO.
The only thing I would like to add is error accumulation. If you continue dead reckoning from a fix with an error it should give greater error next time. So it should work this way:
If it is a proper fix - then just standart error calculation (dependent on the navigator's skill, condition, morale, weather, waves etc.). If it is a dead-reckoning fix - you take the error of the previous fix (say - 500m error from usual fix) and add dead reckoning error to it (2km + 0.5km = 2.5km error). So the longer you continue with dead reckoning - the greater the error will be (2.5km + 2km = 4.5km error next time).

Quote:
I also noticed a big problem with the mod (real nav part). Say you have 4 navigational fixes plotted. You adjusted #2's position. All the rest of the navigational fixes don't adjust
In my opinion it should not matter to the script what the user is doing with the fixes, if he wants to update something - it is his job to make all the updates needed. Moreover - why on the Earth would you want to adjust not the last but some other fix? Just to make things look nicer? DIY. Not our problem.

Last edited by Vanilla; 12-20-10 at 06:46 PM.
Vanilla 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 04:01 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.