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 02-17-19, 06:53 AM   #1
kapuhy
Grey Wolf
 
Join Date: Oct 2010
Location: Poland
Posts: 873
Downloads: 72
Uploads: 3
Default Journal entries - wrong time? (solved)

I've noticed that when adding new entry in Ship's Journal the displayed time is 1 hour later than it should be. This only happens with my manual entries, not the ones automatically copied from message box. How do I make the time display correctly?

-----------

Last edited by kapuhy; 03-10-19 at 08:32 AM. Reason: Solution found
kapuhy is offline   Reply With Quote
Old 02-17-19, 08:27 AM   #2
Ashikaga
Commodore
 
Join Date: Aug 2016
Location: Netherlands
Posts: 617
Downloads: 31
Uploads: 0
Default

Time display is correct.

There is a difference between Nautical time and Time on your boat *German time*

You can set it so Nautical time is the same as the time in your boat though so everything is the same but that is not really realistic or accurate.


.
__________________
Ashikaga is offline   Reply With Quote
Old 02-17-19, 02:03 PM   #3
kapuhy
Grey Wolf
 
Join Date: Oct 2010
Location: Poland
Posts: 873
Downloads: 72
Uploads: 3
Default

Quote:
Originally Posted by Ashikaga View Post
Time display is correct.

There is a difference between Nautical time and Time on your boat *German time*

You can set it so Nautical time is the same as the time in your boat though so everything is the same but that is not really realistic or accurate.


.
I'm afraid I don't quite understand. For example, my boat is near Memel. It is 9:13 GMT, which is 10:13 Nautical Time, and I can switch between any of those times being used in Message Box (and Ship's Journal, as far as entries from Message Box are concerned). Yet when I put an entry in journal manually, it is logged with time GMT + 2 (11:13), leading to my journal looking like this:



So "German Time" in this case would be GMT + 2 ? And if this is the time used on my boat, why would it be used only for manual journal entries?
kapuhy is offline   Reply With Quote
Old 02-17-19, 03:55 PM   #4
Ashikaga
Commodore
 
Join Date: Aug 2016
Location: Netherlands
Posts: 617
Downloads: 31
Uploads: 0
Default

Ah I see what you mean now.

Hahaha never realized it. Time in boat is 12:55, log entry I just made is 11.55 but my clock is at 13:55 now. Am near Ireland on lat 55,36N long 11,12W.

So not sure why my clock gives time as 13:55...
__________________
Ashikaga is offline   Reply With Quote
Old 02-18-19, 04:44 AM   #5
kapuhy
Grey Wolf
 
Join Date: Oct 2010
Location: Poland
Posts: 873
Downloads: 72
Uploads: 3
Default

Update:

I've tested this in single mission in different time zone (River Mayhem):

GMT: 05:30
Nautical Time: 00:30
Manual entry I've put in ship's log appeared with time 19:30 on a previous day.

So, it would seem that difference between Nautical (local) time and GMT is applied twice to manual log entries.
kapuhy is offline   Reply With Quote
Old 02-18-19, 04:23 PM   #6
Ashikaga
Commodore
 
Join Date: Aug 2016
Location: Netherlands
Posts: 617
Downloads: 31
Uploads: 0
Default

Probably a glitch then. But do you read your logs outside of the game?
__________________
Ashikaga is offline   Reply With Quote
Old 02-19-19, 02:37 AM   #7
kapuhy
Grey Wolf
 
Join Date: Oct 2010
Location: Poland
Posts: 873
Downloads: 72
Uploads: 3
Default

Quote:
Originally Posted by Ashikaga View Post
Probably a glitch then. But do you read your logs outside of the game?
Only in game. I was unaware it's possible to view logs outside.
kapuhy is offline   Reply With Quote
Old 03-10-19, 08:43 AM   #8
kapuhy
Grey Wolf
 
Join Date: Oct 2010
Location: Poland
Posts: 873
Downloads: 72
Uploads: 3
Default

I think I found a cause for this.

data/scripts/menu/Page Ships Journal.py

There's a fragment:

 
def AddingAccept_Clicked( sender ):
journal = GetShipsJournal()
global EditingBox
entrytext = EditingBox.Text
entrytext = entrytext.PadLeft( 1 )
index = PageShipsJournal_Adding_Title[ "Index" ]
newentry = []

gdt = Game.CurrentGameDateTime
gdt = gdt.AddSeconds( GetTimeZoneModifier() )


After deleting the line in bold, when I add new journal entry it appears with correct time. I'm not familiar with Python but it seems to add time zone modifier to already correct time, which would give effect I observed (entry time being off by hour difference between nautical and GMT time).

This is in TWoS 2.2.10.
kapuhy is offline   Reply With Quote
Reply

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 02:06 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.