![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
07-20-13, 05:40 PM
|
#2476 |
|
Black Magic
![]() |
All the code is finished for using the stadimeter as a sextant. I went to test it in game:
Seems to me the angle is greater than 8.95 degrees ![]() What I did was add 3 new commands to the game: Enable_Sextant Disable_Sextant and Sextant_angle Sextant_angle is not a command the user calls. Instead the game calls it passing the angle calculated between the two green lines to all the scripts. Thus it's easy to intercept in the scripts (Param1Float) and grab the angle. How this all works: First, in order to use the stadimeter as a sextant you have to have the TDC on. Next you have to bring up the sextant window. In my UIs mod click the Navigator to bring up his orders bar. Then click the Sextant to display the Sextant window. Next place the green line on the horizon. Then you have to enable the stadimeter as sextant (call the Enable_Sextant command). You do this in my UIs mod by pressing the Enable sextant button. If you decide you do not want to use the sextant simply press the Disable sextant to return stadimeter to normal (which calls the Disable_Sextant command). Then press the stadimeter button to use the sextant (in my UIs mod press the stadimeter button located above the TDC Range dial). Then move the green line to the position in the sky you want to take a reading on. The angle is automatically updated in the Sextant box for you (in my UIs mod). Once done taking you reading simply click the scope screen (just like you do with the stadimeter) to stop using the sextant. You do not need to click the Disable sextant button after this, the game automatically clears the bit for you. We need to figure out the math required to get this angle value correct. All I did was grab the value that the game calculates and would show in the old torpedo box (think back SH3). EDIT: added another new command to the game: Stadimeter_active This command is not called by the player. It is called by the game. When the stadimeter goes active the game will call this command passing 1 in Param1 (goes out to all the scripts). When the stadimeter is no longer active the game will call this command passing 0 in Param1 (goes out to all the scripts). Very useful for many things! Last edited by TheDarkWraith; 07-20-13 at 07:44 PM. |
|
|
07-20-13, 06:20 PM
|
#2477 |
|
Captain
![]() Join Date: May 2011
Posts: 489
Downloads: 106
Uploads: 0
|
Excuse me for spamming this thred with my enthusiasm, but holy cow that sounds awesome!
![]() TDW, you are steadily turning this once-broken game into a true gem.
|
|
|
07-20-13, 06:23 PM
|
#2478 | |
|
Black Magic
![]() |
Quote:
I'm having a blast turning it into what it should've been on release day.
Last edited by TheDarkWraith; 07-20-13 at 07:34 PM. |
|
|
|
07-20-13, 08:20 PM
|
#2479 |
|
Black Magic
![]() |
The new upcoming patch for stadimeter used as sextant just gives you an angle. You then have to take that angle and use star charts and other info to figure out your position.
|
|
|
07-20-13, 08:34 PM
|
#2480 |
|
Ace of the deep .
|
OK , i see . So someone should do an ingame tutorial then . Using the TDW tutorial scripts .
|
|
|
07-20-13, 10:38 PM
|
#2481 |
|
Black Magic
![]() |
I think a screenshot will help explain where I'm pulling this angle value from:
Circled in red is the angle val. Yes this is an SH3 screenshot but it's the same code for the stadimeter in SH5. I'm reading this value in the game code and passing it out to all the scripts via the new command. The script file takes the value passed and displays it in the sextant window. Now surely this value means something to somebody I haven't been able to figure out if the value is correct or not when using the stadimeter as a sextant. To me the angle looks incorrect.I'll have a new test version available here soon so you all can play around with it. |
|
|
07-20-13, 10:48 PM
|
#2482 | |
|
Bosun
![]() Join Date: Jun 2013
Posts: 66
Downloads: 66
Uploads: 0
|
Quote:
Thank u for our reply. I am including a reference herein of my post at Workshop/How to Use TDW GenericPatcher for the Beginner at number 26 posted on the 19th of this month. I wanted to let u c where I have a conflict between the patched files and two mods..... It might help you find the reason why some of us are not getting human sound at hydrophone station. There is a post in a thread... somewhere ... I can not locate which explains how to use the hydrophone with a 3 min 15 sec time to compute the speed of target.... any idea where? Rol |
|
|
|
07-20-13, 11:14 PM
|
#2483 | |
|
Black Magic
![]() |
Quote:
|
|
|
|
07-20-13, 11:15 PM
|
#2484 |
|
Count Dracula
|
I have just made the new part from my charts mod with all star charts ...waiting for your release.
__________________
|
|
|
07-20-13, 11:17 PM
|
#2485 |
|
Black Magic
![]() |
test version 1.0.139.0 released. See here: http://www.subsim.com/radioroom/show...postcount=2450
If you already followed the directions from test version 1.0.134.0 you do not need to do them again. You are safe to just go ahead and use this new test version. @Fifi - AI subs problem fixed. You should be able to hear all subs now on the hydrophone and it should show Submarine for them all. I'm really questioning the angle val when using the stadimeter as a sextant. To me the angle val looks way too small. I am no expert in celestial navigation though and it may be correct. By letting you all test this you can tell me yes, no, or better yet if no why the value is wrong. |
|
|
07-20-13, 11:28 PM
|
#2486 |
|
Count Dracula
|
part 4 from my charts it's released this part have star charts
__________________
Last edited by Sjizzle; 07-21-13 at 12:10 AM. |
|
|
07-21-13, 03:35 AM
|
#2487 | |
|
Navy Seal
![]() |
Quote:
![]() Thank you so much TDW. Will test it tomorrow first hour
__________________
|
|
|
|
07-21-13, 05:36 AM
|
#2488 |
|
Ocean Warrior
![]() |
@ TDW
Generic Patcher manual RUS (1.0.134 test - 1.0.139 test) - http://www.4sync.com/archive/C5Ht54I...l_RUS__10.html
__________________
. Where does human stupidity end? . ![]() ![]() El sueño de la razón produce monstruos © - and for some people awakening will be cruel |
|
|
07-21-13, 06:32 AM
|
#2489 |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
A few remarks RE. your sextant/stadimeter implementation.
- It has been noted several times that SH5's celestial sphere is not so accurate to allow accurate position measurements. This is not to say that you should give up your idea, but I think this fact had to be mentioned in order to avoid wrong interpretations of the test results ![]() - If possible, I would make the sextant only accessible from UZO or (better) totally independent from existing scopes (though you migh need for their code in order to implement it). In any case, it should be only available in the conning tower station. - If you manage to unlink the sextant from other scopes, using a dedicated custom mask for it would be a good idea. - For obvious reasons, unliking the sextant from the need to switch the TDC on would be another good idea but, as you didn't implement it, I guess it is not possible
|
|
|
07-21-13, 07:38 AM
|
#2490 |
|
Sea Lord
![]() Join Date: Mar 2007
Posts: 1,897
Downloads: 172
Uploads: 0
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
