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-05-10, 09:46 AM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Obelix View Post
I think a auto showing of the position should be left (or why the boat navigator?), But do you want to disable this option.
I mean, for example, a sextant, or a table.
the showing of the navigator's calculated position is set via a user option. Some users may want the navigator to show his calculated position and some may not. This gives the most flexibility.

Now as far as charts and all, teach me. If you provide me the documentation and the know how I can (probably) implement it in game. The chart above, what is it? How is it used?
TheDarkWraith is offline   Reply With Quote
Old 12-05-10, 10:24 AM   #2
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 TheDarkWraith View Post
the showing of the navigator's calculated position is set via a user option. Some users may want the navigator to show his calculated position and some may not. This gives the most flexibility.
OK, it's sounds nice
Quote:
Originally Posted by TheDarkWraith View Post
Now as far as charts and all, teach me. If you provide me the documentation and the know how I can (probably) implement it in game. The chart above, what is it? How is it used?
That I showed a table snapshot. The first - the definition of azimuth luminaries, the second - definition of range of the visible object, although this table is not so important to mod.
By tomorrow I will prepare more detailed information on this issue.
__________________
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-05-10, 10:34 AM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

I fixed the errors in Otto's integrated chalkboard mod so that should help with real navigation. The lattitude and longitude are no longer swapped

Just noticed that if I set the navigator's error to 0.0 that the shown position 'was all over the map'. Found a bug in my code and fixed it. Now the shown position is where it should be. I sent out revised Real Navigation to Sober, Trevally, and Obelix for further testing. Anyone else want to test?

Last edited by TheDarkWraith; 12-05-10 at 01:30 PM.
TheDarkWraith is offline   Reply With Quote
Old 12-05-10, 03:47 PM   #4
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

TDW

Can I run this past you,


Scope has target (tanker) locked.

Operation|mov|<<tas>>|9.0f|0|0|0
;
;
Operation|mov|None|You have targeted a "|0|0|0
GetContactName|<<g_TR2>>|0|0|0|0|0
Operation|+|None|<g_TR2>|0|0|0
Operation|+|None|". Its heading is "|0|0|0
GetContactHeading|<<g_TR3>>|0|0|0|0|0
Operation|+|<g_TR2>|<g_TR3>|0|0|0
Operation|+|None|".|0|0|0
DisplayText|<g_TR2>|0|0|0|0|10
Operation|mov|None|Its AOB is "|0|0|0
GetAngle|1|<<g_TR2>>|0|0|0|0|0
Operation|+|None|<g_TR2>|0|0|0
Operation|+|None|". Range to target is "|0|0|0
GetContactDistance|<<g_TR3>>|0|0|0|0|0
Operation|+|<g_TR2>|<g_TR3>|0|0|0
Operation|+|None|" and is making "|0|0|0
Operation|+|None|<tas>|0|0|0
Operation|+|None|" Knots|0|0|0
AddDisplayText|<g_TR2>|0|0|0|0|10



This would say:-

You have targeted a "Tanker". Its heading is "**". (10 sec later add) Its AOB is "**". Range to target is"**" and is making "9"knots


** = actual values.
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 12-05-10, 04:23 PM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Quote:
Originally Posted by Trevally. View Post
TDW

Can I run this past you,


Scope has target (tanker) locked.

Operation|mov|<<tas>>|9.0f|0|0|0
;
;
Operation|mov|None|You have targeted a "|0|0|0
GetContactName|<<g_TR2>>|0|0|0|0|0
Operation|+|None|<g_TR2>|0|0|0
Operation|+|None|". Its heading is "|0|0|0
GetContactHeading|<<g_TR3>>|0|0|0|0|0
Operation|+|<g_TR2>|<g_TR3>|0|0|0
Operation|+|None|".|0|0|0
DisplayText|<g_TR2>|0|0|0|0|10
Operation|mov|None|Its AOB is "|0|0|0
GetAngle|1|<<g_TR2>>|0|0|0|0|0
Operation|+|None|<g_TR2>|0|0|0
Operation|+|None|". Range to target is "|0|0|0
GetContactDistance|<<g_TR3>>|0|0|0|0|0
Operation|+|<g_TR2>|<g_TR3>|0|0|0
Operation|+|None|" and is making "|0|0|0
Operation|+|None|<tas>|0|0|0
Operation|+|None|" Knots|0|0|0
AddDisplayText|<g_TR2>|0|0|0|0|10

I add comments so I can 'see' what's going on....

Operation|mov|None|You have targeted a "|0|0|0
GetContactName|<<g_TR2>>|0|0|0|0|0
Operation|+|None|<g_TR2>|0|0|0
Operation|+|None|". Its heading is "|0|0|0
;
;(g_TR1) You have targeted a "x". Its heading is "
;
GetContactHeading|<<g_TR2>>|0|0|0|0|0
; have to convert numerical value into string value
Operation|str|<<g_TR2>>|<g_TR2>|0|0|0
Operation|+|None|<g_TR2>|0|0|0
Operation|+|None|".|0|0|0
;
;(g_TR1) You have targeted a "x". Its heading is "y".
;
DisplayText|None|0|0|0|0|10
;
Operation|mov|None|Its AOB is "|0|0|0
GetAngle|1|<<g_TR2>>|0|0|0|0|0
; have to convert numerical value into string value
Operation|str|<<g_TR2>>|<g_TR2>|0|0|0
Operation|+|None|<g_TR2>|0|0|0
Operation|+|None|". Range to target is "|0|0|0
;
;(g_TR1) Its AOB is "x". Range to target is "
;
GetContactDistance|<<g_TR3>>|0|0|0|0|0
; have to convert numerical value into string value
Operation|str|<<g_TR3>>|<g_TR3>|0|0|0
Operation|+|None|<g_TR3>|0|0|0
Operation|+|None|" and is making "|0|0|0
;
;(g_TR1) Its AOB is "x". Range to target is "y" and is making "
;
; have to convert numerical TAS into string
Operation|str|<<g_TR4>>|<tas>|0|0|0
Operation|+|None|<g_TR4>|0|0|0
Operation|+|None|" Knots|0|0|0
;
;(g_TR1) Its AOB is "x". Range to target is "y" and is making "z" Knots
;
AddDisplayText|None|0|0|0|0|10

That should do it
TheDarkWraith is offline   Reply With Quote
Old 12-05-10, 05:09 PM   #6
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

Can I follow g_TR2 through this.

Operation|mov|None|You have targeted a "|0|0|0( Builds string by moving "youhave targeted a"" into g_TR1 in operand 1)
GetContactName|<<g_TR2>>|0|0|0|0|0(this save name in g_TR2)
Operation|+|None|<g_TR2>|0|0|0(This add name(g_TR2) to text in g_TR1, so g_TR2 is free again)??
Operation|+|None|". Its heading is "|0|0|0(this add more text to g_TR1)
;
;(g_TR1) You have targeted a "x". Its heading is "
;
GetContactHeading|<<g_TR2>>|0|0|0|0|0(this gets heading (value))
; have to convert numerical value into string value
Operation|str|<<g_TR2>>|<g_TR2>|0|0|0(<<g_TR2>> (heading value) has been added to operand 2 as g_TR2)
Operation|+|None|<g_TR2>|0|0|0(this add g_TR2 to g_TR1)
Operation|+|None|".|0|0|0(this adds ." to g_TR1)
;
;(g_TR1) You have targeted a "x". Its heading is "y".
;
DisplayText|None|0|0|0|0|10(this displays g_TR1)

__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 12-05-10, 06:38 PM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

don't understand what you're asking. Variables can be assigned anything at anytime. You can overwrite them, add to them, basically do whatever you want.
TheDarkWraith 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:02 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.