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, 10:39 AM   #1
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   #2
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   #3
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   #4
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, 11:54 AM   #5
keper
Nub
 
Join Date: May 2007
Posts: 4
Downloads: 24
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
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.
Thanks!
keper is offline   Reply With Quote
Old 12-20-10, 03:03 PM   #6
SashaKA001
中国水兵
 
Join Date: Mar 2010
Location: 47°46′46″N, 37°14′51″E
Posts: 271
Downloads: 231
Uploads: 0
Default

Quote:
Originally Posted by brandtryan View Post
DW--not trying to take thread over--not sure, but would be nice to have a whole thread on your real nav mod? Anywhoo--I thought I'd be able to at least be able to identify Polaris, which should tell me, roughly, my latitude--but I must be missing something. The navigator gave me approx position (he does this at the beginning of the mission everytime I reload the saved campaign.) His fix should be pretty close, and appears to be accurate--only the stars don't agree! Can anyone tell me what I'm doing wrong? I'm simply trying to find Polaris to check my rough latitude.

need to find the North Star

SashaKA001 is offline   Reply With Quote
Old 12-20-10, 03:04 PM   #7
Krauter
Ocean Warrior
 
Join Date: Aug 2007
Location: Montreal, Canada
Posts: 2,870
Downloads: 102
Uploads: 1
Default

Quote:
A Fistful of Emblems v1.51
A Fistful of Emblems v1.51 (Weathered)
Accurate German Flags
Church's SHV 1.01 Keyboard Commands v1.1
Enhanced FunelSmoke_by HanSolo78
Icebergs v1.3 - Vikingers Lite Campaign Compatible
Loading Screens Mod
M1 Thompson's Realism sound mod v.1.0
Capthelms SH5 Audio Mod
Touch up for Capthelm's Audio
MightyFine Less Annoying Footsteps 1.0
RemoveLogoIntroTheDarkWraith
SD_MapCourseLine_no_arrows
SD_NewMapColors
SeaWolf torpedo tweak
Wordeees' Actual Footage Menu
Uboat visual damage 1.0 - wamphyri
The Elite Campaign 1.1
MightyFine Crew Mod 1.2.1 Alt w beards
MCCD_1.04_MFCM_1.2.1_compatible
New_ Start_VIIB
SKIN_SH5_Type-VIIC_North_Atlantic_Grime_Weathered
Shadow Improvement Mod
German U-Boat Internal Routine SFX
Elite German Black & Copper Torpedo
Environment 4.9 MOD
AilClouds 3.0
AilSmoke 1.7
German U-Boat Hydrophone SFX
SteelViking's Interior Mod V1.1
SteelViking's Interior Mod V1.1 patch V1.1.1
SV&Com Underwater Mod
U-boat Historical Specifications 1.4
sobers talking conning crew mod
sobers base wave mechanics for SH5 v3
Floor Black
FX_Update_0_0_9_ByTheDarkWraith
FX_Update_0_0_9_BARF_1_3_Full_Fix
FX_Update_0_0_9_UHS_Fix
IRAI_0_0_29_ByTheDarkWraith
McHub532s Pictures for Krauters Submarine SH5 Fix
NewUIs_TDC_5_8_0_ByTheDarkWraith
MRP 1.3+OPCF light
MRP 8x5 patch
Free Cam Tweak 1.1 - Narrow
What have I got in the wrong order here.. Game is running very choppy (compared to smooth as silk before) and also, got a CTD when I torpedoed a ship and went to external cam to check out the new FX.
__________________
Quote:
The U.S almost went to war over some missles in Cuba... Thank god the X-Men were there to save us right?
Krauter is offline   Reply With Quote
Old 12-20-10, 03:28 PM   #8
PL_Andrev
Grey Wolf
 
Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
Default

Quote:
Originally Posted by brandtryan View Post
Can anyone tell me what I'm doing wrong? I'm simply trying to find Polaris to check my rough latitude.
Sure:
Main problem that we're (ok, I'm) not sure how it works. No: how to measure - but how it works at game. In my country we have good sentence to describe it - in english transcription it will be: "The blind leaded the lame."

Second:
a) As SashaKA001 said, you should find the polar star as first step (but you have right with N - is is good idea to keep N direction).
b) You should measure at midnight local time.
c) Probably you used non-correct screen resolution.


I tested some resolutions and it looks that for different res we need special scale of sextant.
How to test resolutions.
The scale should be 0-90degree.
When start should be connected to horizon line, the end should be over the player. It can be easy to do - the night nebula is DDS file and should be easy edited to point the "zenith" point.
__________________

PL_Andrev is offline   Reply With Quote
Old 12-20-10, 04:03 PM   #9
Sammi79
XO
 
Join Date: Jan 2010
Location: Penzance
Posts: 401
Downloads: 272
Uploads: 0
Default

Using the sextant tool is more complicated than it seems at first. for a start, the original image is scaled wrong for the current camera angular value (field of view) so it needs to be updated with a new one. I have sent TDW a PM about this. the actual angular distance from top to bottom of the screen is 65.84 degrees or as close as dammit. the angular distance from side to size depends on your screen ratio. (But no matter what, for whatever ratio, the screen display from left right or top bottom the angular size of your display will never = 75 degrees as is set in cameras.cam)

The tricky bit is this - angular degrees on a flat screen are not the same size. They are smaller toward the centre of the display and larger towards the edges. The sextant image is designed with this in mind if you look carefully the marks at the top and bottom are spaced further apart than they are in the centre. This is great but it means 1 thing - You must NOT move the sextant image. If you move it up or down from its pop up position the curving scale will give an error which increases the further it moves from its origin. This also applies to left or right, If you pan your view around slowly you will notice the sky objects do not float by at a perfect altitude.

So, leave the sextant where it is. the advatage of this is that you don't have to touch the horizon with the bottom of the sextant (already touching the bottom of your screen), you can move the view till the horizon is at 10 degrees say, then just take 10 degrees off the final measurement. Objects must also be measured as close to the centre line of the sextant also, to minimise any errors due to what was mentioned previously.

ATM though you'll have to add a few degrees to that measurement as the scale is wrong, 0-60 degrees spread over 65.84 degrees. Just remember, move the view not the sextant.
Sammi79 is offline   Reply With Quote
Old 12-20-10, 03:23 PM   #10
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   #11
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   #12
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
Old 12-20-10, 08:04 PM   #13
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

ok, wow, some heavy changes and coding

I've implemented the nautical time zones for real navigation. As I'm one for realism I've taken Vanilla's advice/comments and applied them. Here is our new updated digital clock:


Notice that is says 'Naut'. This means we are displaying time in nautical time zones. If you click the time anywhere in the black part of it it will toggle to display GMT time. Notice that I updated the tooltip for this also.

And now for the real big changes:


At game start the current nautical time zone will be displayed in the messagebox. Anytime the day changes (midnight) or you cross another nautical time zone (15 degrees longitude) another entry in the messagebox (and thus ship's journal) will be recorded denoting the current nautical timezone.

Navigator will now calculate current position using dead-reckoning if weather is a factor or you are submerged. There is error thrown into his dead-reckoning calculation every time he calculates it. This error can be anywhere from +- 500m in longitude and lattitude (a random function picks a value between -500 and 500 for each). He also takes time to calculate the dead-reckoning position. The time can take anywhere from 30 seconds to 2 minutes.

Regardless of user option settings the Navigator will always tell you the current calculated position in the messagebox. If the user option NavShowPositionOnMapsAfterCalc is enabled (True) then he will also plot a new navigation fix on the navigation map. If that user option is not enabled then it's up to you to plot the position. There is one caveat to this: the Navigator knows where your last calculated position is whether it's dead-reckoning or plotted so if you ask him to show last position he will show you at any time.

As you can see from the screenshot above I was submerged and moving due North. I asked the Navigator for our current position and he plotted it via a new navigation fix (N2). Notice too that error was incurred and the new navigation fix was not exactly due North of N1.

I'll be releasing a test version of v5.9.0 here soon so those of you using real navigation can test this out and give me some feedback on it

Last edited by TheDarkWraith; 12-20-10 at 09:41 PM.
TheDarkWraith is offline   Reply With Quote
Old 12-20-10, 08:27 PM   #14
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Test version of v5.9.0 available at post #1. Feedback greatly appreciated
TheDarkWraith is offline   Reply With Quote
Old 12-21-10, 04:46 AM   #15
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
ok, wow, some heavy changes and coding

I've implemented the nautical time zones for real navigation. As I'm one for realism I've taken Vanilla's advice/comments and applied them. Here is our new updated digital clock
...
Man you're quick! I think you code faster than I type! I wonder if you ever sleep at all. Incredible and thank you!

I've noticed an error in naut time calculation though. On the screenshot coords are 72deg W - that is -5 GMT, not -4 GMT: 72/15 = 4.8; round(4.8) = 5. Probably the script just cuts the fractional part so it rounds down the number (int() function?). It should however round the number 'half away from zero' (0.5-0.9 rounded to 1, 0.1-0.4 rounded to 0 - that is round() function in python as I remember).

It is my fault, shame on me. I am so sorry for not making it clear enough!
Here is the formula again just to check:
tz_raw = 'number of degrees of long' / 15;
tz = round(tz_raw);
if (long is Western) then
tz = (-1) * tz;
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 11:02 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.