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, 04:03 PM   #5536
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, 04:50 PM   #5537
Jaeger
Chief
 
Join Date: Jul 2005
Posts: 316
Downloads: 28
Uploads: 0
Default

hi tdw,

i am not using the sextant atm. i asked the naigator to check my position. he does it, but doesnt report last result. he only reports the first position fix made when game starts. he should report last calculated fix on map, not the first one. f. ex. i start a mission and plan my course (painting a line with my direction on map and painting an "x" on the point where i want to be in x hours with current speed). after x hours, i take another position fix and want to see it on the map, but the navigator gives me the first fix taken when mission starts... i need the last fix to see where i am. atm, i have to search this position on map, which is very hard to find...
__________________
Everything comes to him who waits
Jaeger is offline   Reply With Quote
Old 12-20-10, 05:41 PM   #5538
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Jaeger View Post
hi tdw,

i am not using the sextant atm. i asked the naigator to check my position. he does it, but doesnt report last result. he only reports the first position fix made when game starts. he should report last calculated fix on map, not the first one. f. ex. i start a mission and plan my course (painting a line with my direction on map and painting an "x" on the point where i want to be in x hours with current speed). after x hours, i take another position fix and want to see it on the map, but the navigator gives me the first fix taken when mission starts... i need the last fix to see where i am. atm, i have to search this position on map, which is very hard to find...
and that's using the newest version of the mod released? Can you send me the ship's journal of this?
TheDarkWraith is offline   Reply With Quote
Old 12-20-10, 06:34 PM   #5539
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   #5540
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   #5541
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-20-10, 10:35 PM   #5542
Sea_Phantom
Watch
 
Join Date: Dec 2010
Posts: 21
Downloads: 14
Uploads: 0
Default

Newbie question! I've heard that the stadimeter in the unmodded SH5 doesn't give the correct range/you have to measure from different points. Is the stadimeter completely fixed in this mod?

And on that note, how exactly do I use the stadimeter? I know I'm supposed to put the bottom of the reflected image on the top of the real image, but what's considered the "bottom" and what's considered the "top"?

Sea_Phantom is offline   Reply With Quote
Old 12-21-10, 02:58 AM   #5543
pfeillant
Watch
 
Join Date: Nov 2010
Posts: 28
Downloads: 13
Uploads: 0
Default menu.txt french v5.8.0

hello tdw
i send you the menu.txt french v5.8.0, may be too last to prepare your v5.9.0

Last edited by pfeillant; 12-21-10 at 04:41 AM.
pfeillant is offline   Reply With Quote
Old 12-21-10, 04:46 AM   #5544
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
Old 12-21-10, 05:22 AM   #5545
PL_Andrev
Grey Wolf
 
Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
Is it impossible to change 18'42" to 18°42' ?
mark ° = ALT + 248 (NumLock on)
__________________

PL_Andrev is offline   Reply With Quote
Old 12-21-10, 06:42 AM   #5546
Jaeger
Chief
 
Join Date: Jul 2005
Posts: 316
Downloads: 28
Uploads: 0
Default

Hi TDW,

my first observation with 5.9.0 (nothing else activated in jsgme):

the error when using dead reckoning seems to be far too high. it should depend on the time passed since last fix. if the navigator knows f.ex. that you didnt change course and speed the last two hours and you are running 90 degree, he must be able to determine the actual position very accurate. if the last fix was 24 hours before, a big error should occur because of wind etc.

the previous problem reported by me is gone (nav officer didnt report last fix correctly)

new problem: some ctd when adding supermarks and second: when opening the gibraltar historical mission, my boat is turning strangly (unplayable situation, boat turns headover)

in historical missions where waypoints are set in, your (gps) position is known. you cant delete the waypoints because of the missing waypoint tool... so real nav is not really there...

TDW, it gets better and better, very nice work. real navigation brings a whole new feature to the game and brings much realism. my next step will be: making the nav fix myself. btw, the nav fix by sextant is too slow (which navigator needs 30 minutes??? i think 8 to 10 should be enough...)

edit: found the time button in the option file, my nav officer can do in 8 minutes now!

edit2: another important point: would it be possible to save the drawings on map when game is saved? with real navigation on, it would be a nice feature if i had my course drawings after loading a game...
__________________
Everything comes to him who waits

Last edited by Jaeger; 12-21-10 at 09:04 AM.
Jaeger is offline   Reply With Quote
Old 12-21-10, 08:36 AM   #5547
pfeillant
Watch
 
Join Date: Nov 2010
Posts: 28
Downloads: 13
Uploads: 0
Default exceptional shooting in v5.8.0

hello,
today i made an historical shooting .
I sank 27 boats with 6 torpedos.
here the journal in the editor, i can't made a screen shooting.

http://www.cijoint.fr/cjlink.php?fil...cijqLV9V9U.png

In fact, i made a salve (1-4) shoot on a aircraft carrier, and i miss him.
Then i sink it with two single torpedos.

and in the journal i have 27 boats sink !!!

a circle bug
pfeillant is offline   Reply With Quote
Old 12-21-10, 09:12 AM   #5548
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Vanilla View Post
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;
I wan't sure so I took the integer value of the division calculation. Now I first round it before taking the integer value of that calculation

Quote:
Originally Posted by Antar View Post
Is it impossible to change 18'42" to 18°42' ?
mark ° = ALT + 248 (NumLock on)
Done

Quote:
Originally Posted by Jaeger View Post
Hi TDW,

my first observation with 5.9.0 (nothing else activated in jsgme):

the error when using dead reckoning seems to be far too high. it should depend on the time passed since last fix. if the navigator knows f.ex. that you didnt change course and speed the last two hours and you are running 90 degree, he must be able to determine the actual position very accurate. if the last fix was 24 hours before, a big error should occur because of wind etc.

new problem: some ctd when adding supermarks and second: when opening the gibraltar historical mission, my boat is turning strangly (unplayable situation, boat turns headover)

btw, the nav fix by sextant is too slow (which navigator needs 30 minutes??? i think 8 to 10 should be enough...)

edit: another important point: would it be possible to save the drawings on map when game is saved? with real navigation on, it would be a nice feature if i had my course drawings after loading a game...
I took your time consideration into account and changed the code. Now it looks at the time difference from when last fix was taken and the current time. It calculates a % error based on: 24.0 / time difference in hours. So if the time difference was >= 24 hours the full error will be incurred (whatever the random value of error was). If time difference < 24 hours then the % error factor is applied to the error amount thus only adding a % of the total error to the current fix (this applies to dead-reckoning fixes only). Note: if the % error factor calculated is 0 then a very small error factor will be applied of 0.025 to account for charting errors and drawing errors by the Navigator.

The CTDs I'm very interested in. When do they happen? What errors (if any) are displayed (app crash?)? Can you elaborate more on the Gibraltar mission?

Navigator calcuting fix by sextant time can be adjusted in user options file. You're looking for these options:

# the base time it takes the Navigator to calculate the current position (fix)
# below is in seconds
NavCalcFixBaseTime = 2700.0

# the modifier for the min time the navigator can calculate fix. This will be the min value of a random function
# below is an Uint32 value only! (i.e. 75 will equal 0.75 in game)
NavCalcFixBaseTimeMinModifier = 75

# the modifier for the max time the navigator can calculate fix. This will be the max value of a random function
# below is an UInt32 value only! (i.e. 125 will equal 1.25 in game)
NavCalcFixBaseTimeMaxModifier = 125

As far as saving the navigation fixes and supermarks at game end, yes it's possible. I can serialize that into the journal file. But before I do that I want to get everything else working 100% first



New test version of v5.9.0 released. See post #1 for details
TheDarkWraith is offline   Reply With Quote
Old 12-21-10, 10:46 AM   #5549
PL_Andrev
Grey Wolf
 
Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
Default

Is possible to do something with "send contact" and "send messages" buttons?
I think about cooperation with BdU, but I don't know that is possible.
__________________

PL_Andrev is offline   Reply With Quote
Old 12-21-10, 10:46 AM   #5550
McBob
Seaman
 
Join Date: Apr 2007
Posts: 31
Downloads: 98
Uploads: 0
Default

Until this week I had not played SH5 since the summer.

I have been keeping an eye on this mod and reading all the stuff about 'Real Navigation' meant I could not resist giving it a go.

The whole mod is an amzing piece of work.

My only request would be: Even if it was just the Nav Marks, can GMT time be included as well. e.g 14/10/1941 10:45 (08:45 GMT).

Thanks for all you effort. Can't wait for your mega mod (I do wonder how much stuff I have activated that conflicts or is surplus to requirments)
McBob is offline   Reply With Quote
Reply

Tags
dbrn, favorite, new ui


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:54 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.