Quote:
Originally Posted by TheDarkWraith
two problems with this:
1) the XO TDC dialog box is showing the incorrect range (4623m vice the 1080m on the dial). So the user would have to either change the XO TDC dialog box value or change the TDC range dial to the correct value. This is because the correct mast height is not being set (for those dials).
2) that's an american dial from an american sub that would have to be visible at all times so the user can read the correct range and change either of the above listed items. Plus we are using German subs not American subs.
|
Yes, that was just my proof of concept. Both very easy to fix.
1)Just fixed the first one 2 secs ago.
In the dials.cfg change the highlighted item
;Cmd=Set_tgt_sel_value; to
Cmd=Set_tgt_sel_value;
Code:
[Dial59]
; will be changed by code
Name=TorpedoSolution_Temporary_Range
Type=68; DIAL_TGT_RANGE
Cmd=Set_tgt_sel_value;
Dial=0x431A0001
Now it sends the range to TDC repalacing the current SH5 one

.
2) The American dial is not needed that was just from my proof on concept.
All thats needed is the stadimeter ID replace the Id in the dials.cfg with the Id from your own button.
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
Change to the Id of your button
and in
Code:
[Dial59]
; will be changed by code
Name=TorpedoSolution_Temporary_Range
Type=68; DIAL_TGT_RANGE
Cmd=Set_tgt_sel_value;
Dial=0x431A0001
CrtVal=0x431A0003
Change to the Id of your button.
EDIT: (I'm wrong about Note2)
Jumped the gun aliitle bit the Device ID's for buttons are hardcoded so the XO manual and the TDCCOmputer ID can not be swapped.
Will look for a simple workaround. You could always pull the 2 buttons from the dial into the UI - that is what I will be doing in my Mod.
Will post the results.