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 04-06-12, 09:42 AM   #16
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

how are you making this pen add information to the nav map? And how are you getting this information (pen mark and additional info) to scroll with the nav map
TheDarkWraith is offline   Reply With Quote
Old 04-06-12, 02:27 PM   #17
quink99
中国水兵
 
Join Date: Jul 2011
Posts: 278
Downloads: 941
Uploads: 0
Default

Quote:
Originally Posted by silent marshal View Post
ALMANAC:
The problem with the complete almanac is that you have to consider every minute of a year. This is possible to do but a lot of work. The point is, you have to find your day, the hour and minute and then read the data you need for your calculations. So you have to dial these inputs correctly to avoid false user input (human error). With the dials at the GUI, this human error factor is factored in.
But it's possible to make a complete almanac for the years of war.

FORMULAS:
All values are calculated with formulas (hight of the sun etc.). This is essential to get the azimut (A) and the Radialversatz (u); without them you can't determine your position. Examples of the formulas will follow soon (it's a lot of stuff).
If you haven't already found them, Silent Marshal, you may find these two links helpful.

Celestial navigation data for assumed position and time

http://aa.usno.navy.mil/data/docs/celnavtable.php

Navigation star finder

http://www.tecepe.com.br/cgi-win/cgiasvis.exe

Each will allow you to calculate the offered data for almost any date or time including our area of interest, 1939 thru 1945.
quink99 is offline   Reply With Quote
Old 04-06-12, 02:31 PM   #18
DrJones
Samurai Navy
 
Join Date: Jun 2009
Location: Germany, 50 Kilometers away from Kiel
Posts: 576
Downloads: 343
Uploads: 0
Cool

Hey marshal, that is a very great idea...Look at PM

Best Regards

DrJones
DrJones is offline   Reply With Quote
Old 04-06-12, 02:34 PM   #19
DrJones
Samurai Navy
 
Join Date: Jun 2009
Location: Germany, 50 Kilometers away from Kiel
Posts: 576
Downloads: 343
Uploads: 0
Default

Quote:
Originally Posted by silent marshal View Post
ROLLING OF THE BOAT:
The human errors are an important point: they mostly determine the accuracy of our calculated position. I am not sure how to consider the rolling of the boat because in the sextant GUI the left side of the mirror is the "real" background (comparable with the UZO view: up-down-up-down...) but the right side is only a picture which is moved along the vertical axes. I don't know how to deal with this issue. I for myself would be satisfied if it is possible to make the horizont steady, regardless the rolling of the boat.

BACKGROUND OF THE METHOD:
A good source to understand what the "Höhendifferenzmethode" is about: www.kowoma.de/gps/astronav/allg_methode_1.htm (german page). There you can also find some hints about the graphical solution. I will explain some special corrections for use with SH5 later on.

ALMANAC:
The problem with the complete almanac is that you have to consider every minute of a year. This is possible to do but a lot of work. The point is, you have to find your day, the hour and minute and then read the data you need for your calculations. So you have to dial these inputs correctly to avoid false user input (human error). With the dials at the GUI, this human error factor is factored in.
But it's possible to make a complete almanac for the years of war.

FORMULAS:
All values are calculated with formulas (hight of the sun etc.). This is essential to get the azimut (A) and the Radialversatz (u); without them you can't determine your position. Examples of the formulas will follow soon (it's a lot of stuff).

ACTUAL TASK:
At the moment I am working for the method how to factor in the moving of the boat from T=1 (first shot) to T=2 (second shot), which will be used more often. Some more mathematics to do...

PS: I implemented only my sextant-buttons to the GUI of Dr.Jones. Hope it't ok for you, Dr. Jones...
Hey Marshal,

thats a great work you are doing here and you have my full support.

But don't forget, there will be an update which i will hopefully release here soon, when my workstation don't play any more cheats with me...

Best Regards

DrJones
DrJones is offline   Reply With Quote
Old 04-06-12, 02:36 PM   #20
Sartoris
Captain
 
Join Date: May 2011
Posts: 489
Downloads: 106
Uploads: 0
Default

I hope TDW will have time to coordinate his efforts with you so that this wonderful idea gets incorporated into NewUI.
Sartoris is offline   Reply With Quote
Old 04-06-12, 06:39 PM   #21
silent marshal
Watch
 
Join Date: Aug 2008
Location: Vienna - Austria
Posts: 25
Downloads: 89
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
how are you making this pen add information to the nav map? And how are you getting this information (pen mark and additional info) to scroll with the nav map
This is exactly the problem: I don't know how. I have reflected what I would need and made some postworks with photoshop. To breathe life into these ideas I depend on experienced modders/programmers.

The calculation background is ready, now I am waiting to launch the next phase.

I assume that SH5 always knows the exact position of the boat. This is the most important information I need. The rest ist pure calculation.
silent marshal is offline   Reply With Quote
Old 04-06-12, 07:02 PM   #22
ETsd4
中国水兵
 
Join Date: Dec 2010
Posts: 278
Downloads: 91
Uploads: 0
Default

Quote:
Originally Posted by silent marshal View Post
It works pretty well, belief me!
Sorry to say that, but that's not true.
A "graphical solution" for finding the FIXposition depends on Length/distances and arcs. The SHunter-world has different distances and different arcs. THere is a mismatch between the varying mercator-projection of the real world and the constant mercator-projection of SHunter.
The only places where SHunter and the real-world is fairly equivalent is near the equatorial region (real world= 60nm, SHunter= 64.79nm). There will be never ever a "graphical solution" you will draw with SH5 map-tools which your picture implies here ...
ETsd4 is offline   Reply With Quote
Old 04-07-12, 05:28 AM   #23
silent marshal
Watch
 
Join Date: Aug 2008
Location: Vienna - Austria
Posts: 25
Downloads: 89
Uploads: 0
Default

Quote:
Originally Posted by ETsd4 View Post
Sorry to say that, but that's not true.
A "graphical solution" for finding the FIXposition depends on Length/distances and arcs. The SHunter-world has different distances and different arcs. THere is a mismatch between the varying mercator-projection of the real world and the constant mercator-projection of SHunter.
The only places where SHunter and the real-world is fairly equivalent is near the equatorial region (real world= 60nm, SHunter= 64.79nm). There will be never ever a "graphical solution" you will draw with SH5 map-tools which your picture implies here ...
Hello ETsd4!

Thank you for your critical comment. You figured out, what is the difficult part of the problem. It seems that SH5 uses some sort of UTM (Universal Transverse Mercator) coordinate system. That means, that the higer to the north or south you are, the mote distances (width only) are streched. You can check this when you compare distances from SH5 with the ones in google earth. (I know, you are firm with all this, but maybe there are some readers who aren't.) For simming this means that you are travelling a greater distance as you would do in real world.

I have factored in this fact and that's what the "Horizontalversatz" is doing: it corrects the sphere/plane geometry of the "Höhendifferenzmethode" to the UTM system.

How my method works:
The calculation bases on a spherical system. Because of the great distances, we can transform it to a plane system, where circles are lines - that's what you are doeing in real world also. I can do this at the nav-map but consider not the coordinates of default SH5. Now I have to transfer the intersection point - which is the exact position at the sphere - to UTM of SH5 and this is done with the "Horizontalversatz".

I will make some more tests but I wonder if there are any errors left.

Critical comments always welcome! If I am wrong, ashes to my head and I will submerge into the deep of www. If I am right, SH5 will be more exciting.
silent marshal is offline   Reply With Quote
Old 04-07-12, 11:44 AM   #24
don1reed
Ace of the Deep
 
Join Date: Dec 2004
Location: Valhalla: Silent Generation
Posts: 1,149
Downloads: 910
Uploads: 0
Default

Both SH3 and SH4 have MapFiles. In SH3 it's located:

C:/Documents/SH3/data/cfg/Careers/skipper's name/0/_____.Map

In SH4 it's located:

C:/Documents/SH4/date/cfg/SaveGames/00000000/SaveData.Map

There isn't a "Map File" for SH5. (That I know of.)

An amateur mathematician, Celestial Navigation Enthusiast and practicianer; not to mention, an all-around nice guy, Michael Jones, created a script file using Python and Stellarium to take the data from the SH4 Map file and convert the numbers found therein into Geo Coords. Numbers such as:
-1198199.13, 6006413.50,0.00

by dividing these numbers by 120000.

i.e., -1198199.13 / 120000 = -9.9848993. The (-) sign indicates West Longitude and South Latitude. The quocient then becomes: 9°59.1'W.

6006413.50 / 120000 = 50°3.21'N.

Everytime a "save" is done on your computer while playing, it auto-updates your true position on the game chart, even if your boat's icon is hidden.

Alas, SH5 does not have a MAP file that I know of.

And, of course, the Python/Stellarium method of celnav was used because the celestial canopies in SH3 and SH4 are not accurate, whereas, Stellarium's canopy is true.

Once Python obtained your true coordinates, it pulls up Stellarium and presents the correct celestial canopy you would be viewing if you were in fact, at that location. All that was left to do was to take of round of virtual sights of altitude and azimuths of selected bodies and have Nories, or HO Pubs 211, or 229, or 249 and almanac at hand to do the sight-reduction...five times per day, as in real life.

Then again, the next problem was the matter of the Mercator Projection Chart. None are true in the SH games. They're charts meant to fit the resolution of your display. So...forget Dead Reckoning as well.

When Navigators purchase charts from authorized chandlers, the charts they buy are printed to very precise specification and are miniature ratios of the real world, i.e., 1:1,000,000 scale. This is an extremely precise ratio, which means it is accurate to the length of one Toyota Prius to 1M Prius, or 1 nm to 1M nm, or 1cm to 1M cm, etc. One could say it's etched in stone. The chart in these games...not so much.

Edit: I'm looking forward to see this come about and wish you great success.

Cheers,
__________________
[SIGPIC][/SIGPIC]
During times of universal deceit, telling the truth becomes a revolutionary act.

~ George Orwell

Last edited by don1reed; 04-07-12 at 03:32 PM.
don1reed is offline   Reply With Quote
Old 04-08-12, 12:55 AM   #25
Nico71
Medic
 
Join Date: Sep 2001
Location: Germany
Posts: 168
Downloads: 145
Uploads: 0
Default

After so many attempts to get real nav to work in SH by the community - with variing success - I'm inclined to give up on it. I did it successfully in FSX, with sextant, weather ships and whatnot. That being said, I really hope that you get this to work! That'd be really awesome!
Nico71 is offline   Reply With Quote
Old 04-08-12, 05:41 AM   #26
Sartoris
Captain
 
Join Date: May 2011
Posts: 489
Downloads: 106
Uploads: 0
Default

Sounds like there are some problems to overcome, but man, it would be so amazing if you could pull this off!
Sartoris is offline   Reply With Quote
Old 04-08-12, 06:38 PM   #27
silent marshal
Watch
 
Join Date: Aug 2008
Location: Vienna - Austria
Posts: 25
Downloads: 89
Uploads: 0
Default Progress report

Hi folks!

I made some fine tuning with the calculation background (thank you for your critical comments!) and it seems that most of the problems are solved.

Two examples:

Exact Position SH5 (SP1): N 64,385° E 3,296°
Travelling at 135° 60km from T1 (first shot of the sun) to T2 (second shot).
Exact Position SH5 at T2 (SP2): N 64,032° E 3,664°
Gegißter Punkt (= estimated position G1): N 64,080° E 2,200°

By drawing the Exact Position at T2 I got (SP): N 64,025° E 03,65° (compare with SP2).

Second example:
SP1: N 33,247° W -17,253°
Travelling at 210° 40km
SP2: N 33,01886° W -17,465°
G1: N 33,75° W -16,75°
Graphical solution leads to SP: N 33,01° W -17,463°

There are still some things to check but the results seem to be ok. If you don't change your position from T1 to T2 (who doesn't?) the results are more accurate. Aberration is a result of drawing in plane geometry in spite of the curvature of the earth. The greater the distance between T1 and T2 is the greater the aberration would be (but it's not the only factor).
silent marshal is offline   Reply With Quote
Old 04-16-12, 04:27 PM   #28
silent marshal
Watch
 
Join Date: Aug 2008
Location: Vienna - Austria
Posts: 25
Downloads: 89
Uploads: 0
Default ANM Tutorial 01

How to find your own position – Part 1.

With the ANM-Algoritmus you will have three output options to find your position with graphically methods as tools provide at the nav-map:

(a) Find your position as in real life by drawing two „Standlinien“. It is the most complex option for the user because you have to draw a lot of angles, distances etc. You also have to consider transformations from WGS to UTM_120 (the coordinate system of SH5). You also have to be careful when using the algebraic signs. You will see, this is an option for the sophisticated navigators among us .
(b) Let the „Navigationsrechner“ do all the algebraic stuff for you and find your position with horizontal and vertical distances (cartesian coordinates). This is the arcade version…
Method (c) has the same background as (b) but for those who like using the triangle, the position can be found with polar coordinates.


Now I will show you how it all works when you are at sea. I will not show any interim results which will go beyond the scope of that post.

You are somwhere in the atlantic sea, approximately 200km NW of Ireland, but you don’t know exactly. It is the 5th of October 1938, 10:12:00 UT1. You fix your assumed position (G1) at 56°N / 11°W. Now take your Sextant and shoot the sun!

Input values 1st measurement
Date: 05.10.1938
Time (T1): 10:12:00
G1: 56,0°N / 11,0°W
Angle of sun h_b: 22,898° (in this example, we use precise values).

From SH5 we read our exact position: 56,5°N / -10,0°W. Now we have all we need for the calculation. Start the Navigationsrechner!

Results of 1st measurement: (take a look at the three options mentioned above)
(a) Azimut A: 141°; Radialversatz u: -5,8km
(b) W: ---,-km; V: ---,-km
(c) Azimut epsilon: ---°; Distance D: ---,-km

What’s that? No values for (b) and (c)? These values are a result of the whole procedure so you have to make another measurement at afternoon.

But in the meantime we can draw our first „Standlinie“ with the results of (a). We start with drawing the Radialversatz u with the circle.



Now we draw the Azimut A:



What you can see here ist that A is always positiv from north heading clockwise. Attention: Parameter u is negative so you have to draw the Standlinie diagonally opposite of A! The Standlinie is tangential to A. Don’t be lax at this point. Your position will be terrible wrong! Here we go:



Well done!

For our first example, we loiter around at G1, not changing our position (phi…course and s…distance). Time has come to shoot the sun a second time:

Input values 2nd measurement
Time (T2): 14:25:00
h_b: 24,423°
s: 000,0km (!)
phi: 000,0°

Results of 2nd measurement:
(a) A: 211°; u: -79,64km; Horizontalversatz w: 57,85km (NEW!); Vertikalversatz v: 4,49km (NEW!)
(b) W: 118,9km; V: 63,6km
(c) epsilon: 63°; D: 133,5km

Ok, lets start with (a):

Draw u and A like done above. Because the triangle of SH5 only reaches from 0° to 180° we have to draw 360°-211°=149°:



Now we extend the two Standlinien so that they intersect:



The intersection point (“Markierung 1”) is your true position. But beware: this is your position at WGS relativ to G1. You have to transform (stretch) the intersection point to UTM_120. That’s what the Horizontal- (w) and Vertikalversatz (v) is good for.



Vola! Our true position ("Markierung 2") is 56,505°N, 10,01°W. The error is about 0,3km. But consider that all input values are exact ones. If you use your sextant manually and additionally the Nautical Yearbook, the error is expected to be greater.

That’s a lot of drawing we have to do and it’s getting more complex if you change your position from T1 to T2. With (b) and (c) you can minimize your work load:

Using (b) - cartesian coordinates W (horizontal) and V (vertical) in UTM_120:



Even better! The often you use the default drawing tools the greater the error will be. You can also use (b) and (c) to check if your drawings are ok.

Using (c), things are more elegant (in my opinion):



Now let‘s compare our results:
Exact position from SH5: 56,5°N / 10,0°W
Position calculated with the ANM-algorithm: 56,5049°N / 10,0089°W
Using (a): 56,505°N / 10,01°W. The results with (b) and (c) are nearly the same, the variance is in a range of 100-200m.

The display of results summarizes the output values:
Red…(a), blue…(b), green…(c). The yellow marking shows the calculated variance from the exact position.



The true distance from G1 to our exact position was about 85km. The greater this distance is, the greater the variance will be. This is caused by the curvature of the earth and the plane geometry of the ANM-algorithm.

The results of the graphically methods will depend on your screen resolution. For this example I have used 1920x1080.

That’s all for this time, the next time I will show you how to consider position changes during the two measurements at T1 and T2 („Versegeln der Standlinie“).


Hope you like the results!





silent marshal is offline   Reply With Quote
Old 04-17-12, 03:18 AM   #29
Sartoris
Captain
 
Join Date: May 2011
Posts: 489
Downloads: 106
Uploads: 0
Default

Looks very interesting! When do you think you'll be able to release this mod? I hope I'll be able to start using it soon!
Sartoris is offline   Reply With Quote
Old 04-17-12, 03:48 AM   #30
silent marshal
Watch
 
Join Date: Aug 2008
Location: Vienna - Austria
Posts: 25
Downloads: 89
Uploads: 0
Default

Quote:
Originally Posted by Sartoris View Post
Looks very interesting! When do you think you'll be able to release this mod? I hope I'll be able to start using it soon!
It's frustrating: the theoretically background is finished but it seems to be no modders for realization out there. Have to be patient...

I will post a second tutorial for dynamic navigation soon (part 2).
silent marshal 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 01:02 PM.


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