![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1 |
sim2reality
![]() Join Date: Jun 2007
Location: AM 82
Posts: 2,280
Downloads: 258
Uploads: 30
|
![]()
I have found the Solution to the Stadimeter.
You say "But TDW has done it already". Yes but I fixed it with no complex scripting or no external progamming at all. All done with just the Stock UI. Can be added to any SH5 easily. The solution struck me at work Today, and I thought no that can't work its to simple and to obvious. But guess what it works and perfectly. The Solution is hidden away in SH5 like most things, they never got rid of most of the SH3/4 UI. And that includes the SH4 Targetting TDC Interface. With Range, Speed etc. Including its stadimeter - thats the one thats being referenced in the Dials.cfg from SH4 and still in SH5. Code:
[Dial58] ; will be changed by code Name=TorpedoSolution_Mast_Height Type=70; DIAL_TGT_MAST_HEIGHT_INTERNATIONAL Cmd=Set_tgt_mast_height_international; Dial=0x431A0002 CrtVal=0x431A0001 NewVal=0x0 DialVal=-90,98 RealVal=15,130; height Circular=Yes CmdOnDrag=Yes Logarithmic=7.189;4.656 RelativeDrag=Yes SndStep=5 SndList=1,Menu.TDC.AngleOnBow,360 [Dial59] ; will be changed by code Name=TorpedoSolution_Temporary_Range Type=68; DIAL_TGT_RANGE ;Cmd=Set_tgt_sel_value; Dial=0x431A0001 CrtVal=0x431A0003 NewVal=0x0 DialVal=10,0 RealVal=11000,220; range Circular=Yes ;CmdOnDrag=Yes Logarithmic=-0.98;51.0 ;RelativeDrag=Yes ;SndStep=5 ![]() ![]() ![]() ![]() So all thats needed is a button to be placed on screen to activate the stadimeter: Is to Replacce the value in the Dials.cfg CrtVal=0x431A0001 ; ID of stadimeter button. with the value of your Button. The Send Range Button to TDC ID is: CrtVal=0x431A0005 Will do some further tests to see if I can replace the SH4 TDC with a single button via script. I think this should be easy enough ![]() You may notice is the last pic the range is 1080m in the Sh4 TDC and 4623m in the XO manual thats because the XO manual is getting the broken SH5 value (Mast height is always 20M). To fix that all that should be required is to change the following Type=68; DIAL_TGT_RANGE ;Cmd=Set_tgt_sel_value; Dial=0x431A0001 CrtVal=0x431A0003 to match the Dial ID on the SH5 Range Dial. Last edited by reaper7; 06-15-10 at 03:34 PM. |
![]() |
![]() |
|
|