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 06-15-10, 03:39 PM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

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). Check your TDC range dial and you'll see the incorrect range is reported with this method. I explored this method also already. If there was a way to set the dials 'hands' by code then this solution would be viable as you could take the range reading from the SH4 style dial and set the TDC range dial to that value. But I haven't found any way to set the Range, AOB, or Speed dials by code yet.

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. That makes a two step method vice an automatic one. Plus we are using German subs not American subs.

Last edited by TheDarkWraith; 06-15-10 at 03:51 PM.
TheDarkWraith is offline   Reply With Quote
Old 06-15-10, 03:54 PM   #2
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default

Quote:
Originally Posted by TheDarkWraith View Post
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.

Last edited by reaper7; 06-15-10 at 04:20 PM.
reaper7 is offline   Reply With Quote
Old 06-15-10, 04:00 PM   #3
Gorshkov
Commodore
 
Join Date: Mar 2007
Posts: 604
Downloads: 172
Uploads: 0
Default

This is some TDC stuff from American subs present in SH4. Is this SH5 game so screwed-up you cannot find anything more historically accurate?
Gorshkov is offline   Reply With Quote
Old 06-15-10, 04:07 PM   #4
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default

Quote:
Originally Posted by Gorshkov View Post
This is some TDC stuff from American subs present in SH4. Is this SH5 game so screwed-up you cannot find anything more historically accurate?

Yes, the above is just proof of concept. The fix will not require the dial onscreen.
That is just some of the reduntant sh3/4 stuff left in the game from the devs.
All very handy stuff, allows alot of mod options.
Also those are the American dials but they are just graphics 2 mins in photoshop and they wouldn't look american .
That is how most graphic mods are done - change whats there to what you want it to be.
reaper7 is offline   Reply With Quote
Old 06-15-10, 04:17 PM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by reaper7 View Post
Yes, the above is just proof of concept. The fix will not require the dial onscreen.
That is just some of the reduntant sh3/4 stuff left in the game from the devs.
All very handy stuff, allows alot of mod options.
Also those are the American dials but they are just graphics 2 mins in photoshop and they wouldn't look american .
That is how most graphic mods are done - change whats there to what you want it to be.
I think you're onto something but it's still not completely automated. You have to click on the use stadimeter and then you have to click on send range to TDC. Maybe there's a way to completely automate it Is the TDC range dial showing the correct range reading? Something tells me it isn't.
TheDarkWraith is offline   Reply With Quote
Old 06-15-10, 04:31 PM   #6
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default

Quote:
Originally Posted by TheDarkWraith View Post
I think you're onto something but it's still not completely automated. You have to click on the use stadimeter and then you have to click on send range to TDC. Maybe there's a way to completely automate it Is the TDC range dial showing the correct range reading? Something tells me it isn't.

It should, I will check. Maybe something like:

(ButtonName).MouseLeftButtonDown +=
Game.SubmarineCommands.ExecuteCommand( "Set_tgt_mast_height_international" )

(ButtonName).MouseLeftButtonUp +=
Game.SubmarineCommands.ExecuteCommand( "DIAL_TGT_RANGE" )

These are the 2 buttons:
PageTorpedoSolution_RightPanel_Range_SendRangeButt on and PageTorpedoSolution_RightPanel_StadimeterButton
reaper7 is offline   Reply With Quote
Old 06-15-10, 04:32 PM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

I got an idea for completely automating it.....trying it now This find of yours might be the most excellent thing so far for SH5 if it also cures the resetting of the speed and AOB when using the stadimeter
TheDarkWraith is offline   Reply With Quote
Old 06-15-10, 04:44 PM   #8
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default

A picture says a 1000 words

reaper7 is offline   Reply With Quote
Reply

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 12:21 AM.


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.