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-19-10, 04:18 PM   #1
Sammi79
XO
 
Join Date: Jan 2010
Location: Penzance
Posts: 401
Downloads: 272
Uploads: 0
Default Real Navigation questions

Hi TDW,

I noticed something curious whilst using the real nav mod in your NewUI 5.7.2. The digital clock top right shows updated local time yes? This is very cool but in reality our ability to fix longitude would be the only way to guess exact local time - in fact knowing exact local time is unimportant unless trying to guess when local noon is to make a sun fix.

What I noticed however was that the stopwatch also keeps time, but it is seemingly set to GMT. I loaded a saved game and the Navigator fixes my position at start, showing my longitude to be 1.5 degrees East or 1 degree, 2 minutes East, roughly. (for longitude 1 degree = 4 minutes or 240 seconds of arc) Therefore my local time should be 6 minutes ahead of GMT and sure enough, the digital clock reads 16:48 while the stopwatch reads 16:42

Here is a screenshot to describe it better :



So is the stopwatch actually keeping GMT, or is this just a coincidence? I hope it is though, the stopwatch has a second hand (small dial bottom) for accuracy of seconds and longitude measurements are commonly made east or west from 0 degrees (Greenwich Meridian)

I think if this is the case then the digital clock should keep Base Time while the stopwatch should keep GMT. Having the clock update itself to local time constantly makes it hard to time long journeys. The digital clock is currently not suitable for measurements as no seconds are displayed. It should remain purely as a quick travelling time reference.

Anyway, I hope that explains my query. Other thoughts on real navigation :-

Sun and moon angular size should be 0.5 degrees rather than 2.5 or whatever they are at now. The trouble is they will look very small so perhaps decrease the angular value of the camera to offset. The bonus would be that the sunrise sunset times (time from start to rise - end to rise and start to set - end to set) would be accurate and sun measurements could be tested.

Navigator could have an extra 'dead reckoning' style fix with no weather or time limits, smaller errors (+-500m?) but always works from last fixed position including any error.

Phew I bet you wish you never added that real nav mod! but I gotta tell you it is totally making the game for me, SH4 inadequacies in this department were frustrating. Thankyou TDW and contributors for your outstanding work.

Regards,

Sam.
Sammi79 is offline   Reply With Quote
Old 12-19-10, 04:36 PM   #2
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

Hi TDW

I am using the following in a tutorial file to check user TDC setting on multipule target AOB using the TDC dial:-


Operation|mov|<<aob_delta>>|15.0f|0|0|0
;blah blah (whole tutorial here)
; Functions:
Label|SetTargetAOB|0|0|0|0|0
GetAngle|3|None|0|0|0|0
Operation|mov|<<aob_min>>|<g_TR1>|0|0|0
Operation|-|<<aob_min>>|<aob_delta>|1|0|0
Operation|int|<<aob_min>>|<aob_min>|0|0|0
Operation|mov|<<aob_max>>|<g_TR1>|0|0|0
Operation|+|<<aob_max>>|<aob_delta>|1|0|0
Operation|int|<<aob_max>>|<aob_max>|0|0|0
CheckGUIDialValueInRange|SOL_ANGONBOW|<aob_min>|<a ob_max>|None|0|0
Operation|rtrue|None|0|0|0|0
DisplayText|Your AOB is more than 15 Deg out!|0|0|0|0|5
Jump|WrongAOB|0|0|0|0|0

I have set the + - operations to 1 for dials 180 to -180.

Some target check work fine and others dont.
The ones that dont are out by 180 deg.

Any ideas
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 12-19-10, 04:36 PM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Sammi79 View Post
Hi TDW,

I noticed something curious whilst using the real nav mod in your NewUI 5.7.2. The digital clock top right shows updated local time yes? This is very cool but in reality our ability to fix longitude would be the only way to guess exact local time - in fact knowing exact local time is unimportant unless trying to guess when local noon is to make a sun fix.

Digital clock does indeed show updated local time. The reason the digital clock does and not the analog stopwatch is that I have control of the digital clock. The game, via hardcode, controls the updating of the stopwatch. As I can't set the stopwatch's time the only way I could show local time was via the digital clock. Do I need to add seconds display to the digital clock?

What I noticed however was that the stopwatch also keeps time, but it is seemingly set to GMT. I loaded a saved game and the Navigator fixes my position at start, showing my longitude to be 1.5 degrees East or 1 degree, 2 minutes East, roughly. (for longitude 1 degree = 4 minutes or 240 seconds of arc) Therefore my local time should be 6 minutes ahead of GMT and sure enough, the digital clock reads 16:48 while the stopwatch reads 16:42

Stopwatch will always read GMT time.

So is the stopwatch actually keeping GMT, or is this just a coincidence? I hope it is though, the stopwatch has a second hand (small dial bottom) for accuracy of seconds and longitude measurements are commonly made east or west from 0 degrees (Greenwich Meridian)

I think if this is the case then the digital clock should keep Base Time while the stopwatch should keep GMT. Having the clock update itself to local time constantly makes it hard to time long journeys. The digital clock is currently not suitable for measurements as no seconds are displayed. It should remain purely as a quick travelling time reference.

What I'll do is let you be able to select the digital clock to display GMT time or local time. How's that? I was just about to release v5.8.0 but that's ok, I'll incorportate this change

Anyway, I hope that explains my query. Other thoughts on real navigation :-

Sun and moon angular size should be 0.5 degrees rather than 2.5 or whatever they are at now. The trouble is they will look very small so perhaps decrease the angular value of the camera to offset. The bonus would be that the sunrise sunset times (time from start to rise - end to rise and start to set - end to set) would be accurate and sun measurements could be tested.

Wouldn't this be suited more to the environment mod (or an environment mod)? Sorry but I'm not well versed in celestial navigation. How are you getting the sun and moon angular sizes?

Navigator could have an extra 'dead reckoning' style fix with no weather or time limits, smaller errors (+-500m?) but always works from last fixed position including any error.

Hmm...I'll think about it

Phew I bet you wish you never added that real nav mod! but I gotta tell you it is totally making the game for me, SH4 inadequacies in this department were frustrating. Thankyou TDW and contributors for your outstanding work.

I think you'll find the addition of supermarks in v5.8.0 a welcome addition. The regular marker tool that makes X's on the map is useless. It needed an overhaul I still left that map tool available though as I see some uses for it.
See above in yellow.
TheDarkWraith is offline   Reply With Quote
Old 12-19-10, 04:47 PM   #4
Dissaray
中国水兵
 
Join Date: Oct 2009
Posts: 280
Downloads: 35
Uploads: 0
Default

I've been flaowing your mod here for some time and have been enjoying it very much when I find the time to play. One thing I noticed in the mod is the in-scope targeting wheels; like those form the OLC and MaGUI mods from SH3. I realy liked these tools from those mods and was wondering if they worked in the same way in your mod? As it stands now I have trubble hiting things useing the tools provided in the game, it is mostly a speed and AOB thing and that in-scope wheel is marvolus for figureing that stuf out.
Dissaray is offline   Reply With Quote
Old 12-19-10, 04:49 PM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Dissaray View Post
I've been flaowing your mod here for some time and have been enjoying it very much when I find the time to play. One thing I noticed in the mod is the in-scope targeting wheels; like those form the OLC and MaGUI mods from SH3. I realy liked these tools from those mods and was wondering if they worked in the same way in your mod? As it stands now I have trubble hiting things useing the tools provided in the game, it is mostly a speed and AOB thing and that in-scope wheel is marvolus for figureing that stuf out.
if you're taking about the RAOBF then yes, it's in the mod. There's a button in the torpedo box on the left bottom that says RAOBF. Click it to display the RAOBF on the scope.
TheDarkWraith is offline   Reply With Quote
Old 12-19-10, 04:56 PM   #6
Dissaray
中国水兵
 
Join Date: Oct 2009
Posts: 280
Downloads: 35
Uploads: 0
Default

Yep that sounds like the thing. Now all I have to do is remember exactly how to use the damn thing But I am sure I can figure that out.
Dissaray is offline   Reply With Quote
Old 12-19-10, 04:58 PM   #7
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

Quote:
Originally Posted by Trevally. View Post
Hi TDW

I am using the following in a tutorial file to check user TDC setting on multipule target AOB using the TDC dial:-


Operation|mov|<<aob_delta>>|15.0f|0|0|0
;blah blah (whole tutorial here)
; Functions:
Label|SetTargetAOB|0|0|0|0|0
GetAngle|3|None|0|0|0|0
Operation|mov|<<aob_min>>|<g_TR1>|0|0|0
Operation|-|<<aob_min>>|<aob_delta>|1|0|0
Operation|int|<<aob_min>>|<aob_min>|0|0|0
Operation|mov|<<aob_max>>|<g_TR1>|0|0|0
Operation|+|<<aob_max>>|<aob_delta>|1|0|0
Operation|int|<<aob_max>>|<aob_max>|0|0|0
CheckGUIDialValueInRange|SOL_ANGONBOW|<aob_min>|<a ob_max>|None|0|0
Operation|rtrue|None|0|0|0|0
DisplayText|Your AOB is more than 15 Deg out!|0|0|0|0|5
Jump|WrongAOB|0|0|0|0|0

I have set the + - operations to 1 for dials 180 to -180.

Some target check work fine and others dont.
The ones that dont are out by 180 deg.

Any ideas
I have also tried setting the yellow numbers to 0 and 2 - as in your speed tutorial.

It also only works with some targets.
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 12-19-10, 04:58 PM   #8
Sammi79
XO
 
Join Date: Jan 2010
Location: Penzance
Posts: 401
Downloads: 272
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
What I'll do is let you be able to select the digital clock to display GMT time or local time. How's that? I was just about to release v5.8.0 but that's ok, I'll incorportate this change
Fantastic! but have selection between Base time / Local time + don't worry about seconds display, timing would be done on the stopwatch anyhow (GMT)

Quote:
Originally Posted by TheDarkWraith View Post
Wouldn't this be suited more to the environment mod (or an environment mod)? Sorry but I'm not well versed in celestial navigation. How are you getting the sun and moon angular sizes?
0.5 is the real angular value of the sun, the moon would be 0.499 (but this is only noticeable during total solar eclipse) The angular size of the sun in game can be measured with the RAOBF in the OBS scope providing the sun is low enough to be viewed. It was fairly easy to change in SH4 sky object radius increase or something. I shall have a look in the files myself

Quote:
Originally Posted by TheDarkWraith View Post
I think you'll find the addition of supermarks in v5.8.0 a welcome addition.
wow speechless Is there really only one of you?

Last edited by Sammi79; 12-19-10 at 05:44 PM.
Sammi79 is offline   Reply With Quote
Old 12-19-10, 06:04 PM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Sammi79 View Post
wow speechless Is there really only one of you?
Yep, only one of me. I'm very good at what I do . Once I saw that the devs gave us the ability to extend the game via Python I was like a kid in a candy store. SH3 and SH4 were shelved as they offer no way to extend the game (yeah you can add graphics to it but that's not really extending it). Now if I had access to the source code I could do even more wonderful and exciting things.

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:






Now v5.8.0 is ready

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


Default

v5.8.0 released. See post #1 for details
TheDarkWraith is offline   Reply With Quote
Old 12-19-10, 08:52 PM   #11
Obelix
Seasoned Skipper
 
Join Date: Aug 2010
Location: 49°44´N 129°40´E
Posts: 665
Downloads: 124
Uploads: 7
Default

Hi all!
While I was doing chores, there are already many things have changed! Are now IO strategic map should redo it.
In the meantime, here is Russian translation for version 5.8.0
__________________
Speed squadron is the speed of the slowest ship ... but only so long as on the trail of the squadron did not sit submarines ...
Obelix is offline   Reply With Quote
Old 12-19-10, 08:53 PM   #12
Captain Can
Soundman
 
Join Date: Aug 2010
Location: Istanbul,Turkey
Posts: 144
Downloads: 65
Uploads: 0
Default

TDW , can we still use Obelix's ' IO_StrategicMap for 5.4.0 ' for 5.8.0 or should we use stock map until a new version comes out from Obelix ?
__________________
Captain Can is offline   Reply With Quote
Old 12-19-10, 08:57 PM   #13
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Captain Can View Post
TDW , can we still use Obelix's ' IO_StrategicMap for 5.4.0 ' for 5.8.0 or should we use stock map until a new version comes out from Obelix ?
wait for now....I'll look it over. Obelix will probably be releasing new version soon as I modified the Page navigation map.py file (had to to get all the cool new supermarks and navigation fixes)
TheDarkWraith is offline   Reply With Quote
Old 12-19-10, 08:58 PM   #14
Obelix
Seasoned Skipper
 
Join Date: Aug 2010
Location: 49°44´N 129°40´E
Posts: 665
Downloads: 124
Uploads: 7
Default

Quote:
Originally Posted by Captain Can View Post
TDW , can we still use Obelix's ' IO_StrategicMap for 5.4.0 ' for 5.8.0 or should we use stock map until a new version comes out from Obelix ?
Now I am focusing on adaptation of IO strategic map for version 5.8.0. Today I will release a new version for 5.8.0
__________________
Speed squadron is the speed of the slowest ship ... but only so long as on the trail of the squadron did not sit submarines ...
Obelix is offline   Reply With Quote
Old 12-20-10, 05:45 AM   #15
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
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:06 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.