SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH4 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=219)
-   -   [REL] Input Target Distance on TBT (https://www.subsim.com/radioroom/showthread.php?t=111371)

ottos 04-10-07 10:10 AM

[REL] Input Target Distance on TBT (ready for 1.2patch)
 
--Clickable target distance dial--
Hi all,
Wanna directly move TARGET DISTANCE DIAL instead of TAGET MAST HEIGHT DIAL on the attack data tool?
I found the way, its piece of cake.

Open the file \Data\Menu\cfg\Dials.cfg
Just only add or delete semicolon at each top of 4 lines and change 1 value,
OR copy and paste following description
--------------------------------------------------------------------------------
[Dial58]
; will be changed by code
Name=TorpedoSolution_Mast_Height
Type=70; DIAL_TGT_MAST_HEIGHT_INTERNATIONAL
;Cmd=Set_tgt_mast_height_international; <--- add semicolon
Dial=0x431A0002
CrtVal=0x431A0001
NewVal=0x0
DialVal=-90,98
RealVal=15,130; height
Circular=Yes
;CmdOnDrag=Yes; <--- add semicolon
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; <--- delete semicolon
Dial=0x431A0001
CrtVal=0x431A0003
NewVal=0x0
;DialVal=10,0 <--- add semicolon
DialVal=17,0 <--- change value (*)
RealVal=11000,220; range
Circular=Yes
CmdOnDrag=Yes; <--- delete semicolon
Logarithmic=-0.98;51.0
RelativeDrag=Yes <---delete semicolon (edit:fix for mouse point problem)
;SndStep=5
;SndList=1,Menu.TDC.AngleOnBow,360
--------------------------------------------------------------------------------
That's all!

JSGME compliant file (for patch1.2)
http://rapidshare.com/files/26509790...forPatch12_.7z

note:
*I have measured the degree. but if you feel complaint about the result (=distance value), please adjust DialVal from15to20.
*Check mark of RECmanual (TAGET MAST HEIGHT) funcion normally, dont worry about it.
*If you install any mod using Dials.cfg already. Please edit the file by yourself.
*Any modders can use or arrange this method without my permission, if you want.

cheers,:D
sorry for my poor English.


(edit)
I notice that mouse point problem can solve with delete semicolon at above PINK colour line.
So I have replaced the DL file..

Jungman 04-10-07 04:58 PM

:sunny: Nice find! When doing a true manual TDC, it was frustrating not being able to input directly the range data for a ship beyond ~1500 yards without dancing around the frigging must lock a ship stadimeter work around.

Thank you!

Jace11 04-10-07 06:01 PM

Superb!!! Just made a submerged attack using the periscope to point to bearing, the sonar to estimate range and the manual dialing to send the range to the TDC.

It works, I hit em!!! One at very long range!!

ottos 04-17-07 01:24 PM

redy for 1.2 patch
 
Dials.cfg file has be changed by 1.2 patch, but editing part of this MOD is not change.
Thus I only replace DLfile link, and leave ReadmeFile and topic description as it is.

http://rapidshare.com/files/26509790...forPatch12_.7z

Cheers,

Fincuan 04-07-08 09:30 AM

Here's a JSGME-ready version of the above mod. It also uses Jimimadrid's excellent JTxE for installation. It should work with any other mod on any version of SH4.

Installation instructions:
  1. Unrar to your MODS-folder
  2. Enable in JSGME
  3. Run JTxE.exe from your SH4 root folder and enable the mod

Uninstallation is done in reversed order, ie. first disable it from JTxE


Download here

M. Sarsfield 04-07-08 09:45 AM

Can the range still be inputted using the stadimeter with this mod or is it strictly manual range inputs, now?

Fincuan 04-07-08 09:48 AM

Stadimeter still works as before

Nuc 04-07-08 02:29 PM

Great fix I have had several situations where I wnated to do this. thanks

capt_frank 04-07-08 03:19 PM

If I wanted to do this manually, would I edit the Data\Menu\cfg\Dials.cfg file as illustrated in the initial post?

Fincuan 04-07-08 03:40 PM

Quote:

Originally Posted by capt_frank
If I wanted to do this manually, would I edit the Data\Menu\cfg\Dials.cfg file as illustrated in the initial post?

Yep, just follow ottos' instructions and you'll be fine. Even though it says 1.2 it works fine in both 1.4 and 1.5 if you do it manually or use JTxE.

capt_frank 04-07-08 04:38 PM

Great, thanks!!

Munchausen 04-07-08 05:22 PM

I tried the mod and found that the index marker was stuck in one position on the mast height dial. So I fiddled with the settings in both sections (Dial58/59) without much luck until I finally decided to see what happens if I enabled both. Turns out it can be done.

This is what I did:
Quote:


[Dial58]
; will be changed by code
Name=TorpedoSolution_Mast_Height
Type=70; DIAL_TGT_MAST_HEIGHT_INTERNATIONAL
Cmd=Set_tgt_mast_height_international; <--- did not disable
Dial=0x431A0002
CrtVal=0x431A0001
NewVal=0x0
DialVal=-90,98
RealVal=15,130; height
Circular=Yes
CmdOnDrag=Yes; <--- did not disable
Logarithmic=7.189;4.656
RelativeDrag=Yes; <--- enabled
;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; <--- delete semicolon (did this)
Dial=0x431A0001
CrtVal=0x431A0003
NewVal=0x0
;DialVal=10,0 <--- add semicolon (didn’t do this)
DialVal=17,0 <--- change value (maybe ... depends on how you eyeball it, I guess)

RealVal=11000,220; range
Circular=Yes
CmdOnDrag=Yes; <--- delete semicolon (did this)
Logarithmic=-0.98;51.0
RelativeDrag=Yes <---delete semicolon (did this ... makes a big difference)
;SndStep=5
;SndList=1,Menu.TDC.AngleOnBow,360

Now, I can input any range to the TDC and also adjust the mast height by doing this:
  • Drag index marker (outer dial) full left.
  • Rotate inner dial counter-clockwise to desired range.
  • Send range to the TDC.
Enabling “RelativeDrag” makes it possible to manipulate the two dials accurately. Also, the stadimeter still works ... and I feel like I’m using it as intended: measuring mast height.

:up: Thanks for pointing me in the right direction.

Mav87th 04-20-08 07:52 PM

Could some of you post the original values for those two sections ?

I have lost my original dials.cfg file and can not make it work. Neither the new modification nor the original that lets you slide the mast head height

Here is my settings now:

[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
;SndList=1,Menu.TDC.AngleOnBow,360

tedhealy 04-20-08 08:35 PM

[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
;SndList=1,Menu.TDC.AngleOnBow,360

Mav87th 04-21-08 03:50 AM

Now THAT is strange. I have the correct Dial settings, but still can not turn the mast height indicator at all. Its stuck at 64 somehow.....

Munchausen 04-21-08 12:35 PM

Quote:

Originally Posted by Mav87th
I have the correct Dial settings, but still can not turn the mast height indicator at all. Its stuck at 64 somehow.....

The original modification (first post) freezes the height indicator at 64 feet. By making some additional changes and enabling both dials, I got both of them to work. The real key was to enable "RelativeDrag" ... otherwise you end up chasing the index pointer around the gauge.

When taking a stadimeter reading, I usually set the pointer at 12 o'clock (top of the gauge) ... for some reason, it gives me a more accurate reading (closer, even, than using an unmodded gauge). For manually inputting a range, I simply rotate the inner dial until the pointer stops rotating ... then continue rotating the inner dial until the correct range is under the pointer.

P.S. Even though the height indicator rotates, I don't think its position is of any consequence. Maybe it helps if you first identify your target, set the mast height manually, then take your stadimeter shot. But I doubt it.

ottos 04-22-08 12:58 PM

wow! who did salvage this old thread? lol

@Munchausen, thanks for your improvement.
But unfortunately. I feel your improvement makes difficult operation rather than mine,
because two rings move together with one drug.

In my first post discription, the mast height rings goes correct value,
with opening recognition manual , lock the target, and click the button, which have
popup tips "Send mast height to TDC. You must look directly on the target for it to work."

Of course, I dont know other peoples feel like as me...... :P

BTW, this mod(?) has included in my "ini Pack for jimimadrid's JTxE.exe"
http://www.subsim.com/radioroom/showthread.php?t=127076

regards,
sorry for my bad English:oops:

Mav87th 04-23-08 09:18 AM

FINALLY i found the bugger that blocked my mouse guidance of the Stadimeter.

It was the very top line of the commands.cfg file that had to few commands enabled. Somehow this screwed up the TDC......:doh:

[Commands]
CommandsNb=600

That one was in my modifications set to 500 clearly not enough when there is 566 commands in the file.....doh

Munchausen 04-25-08 01:35 AM

Quote:

Originally Posted by ottos
In my first post discription, the mast height rings goes correct value,
with opening recognition manual , lock the target, and click the button, which have
popup tips "Send mast height to TDC. You must look directly on the target for it to work."

I don't remember the indexer moving at all. I'll check it again when I get back from my current patrol. If it does move (reflecting proper mast height) I'll probably switch back to your original mod.

:yep: Either way, it's better than no mod at all.

Mav87th 04-25-08 12:19 PM

It works this way:

1) If you identify the ship via hacking it off in the recognitions book
or.... if you give the order "Identify Target" via the WO

In this mode the marker swings too the value given in the ships cfg file for mastheadheight. No matter what you slide it to afterwards it will take the stadimeter reading from this.

2) If you do NOT identify the ship (aka nothing is present in the top field of the TDC)

In this mode you can slide it to any value you want to and take a stadimeter reading that is calibrated from that height. AKA if you have a ONI-208-J book and thus can make out the Funnel height to say 60 ft. then you put the slider on 60 ft. and take your stadimeter shot at the funnel top. If you want the top of the mast then you slide it to the top of the mast height as given in the ONI..

This (2) is how i use it, as i find it VERY helpfull to be able to use any part of the ship i see fit for the measurement. I allso enjoy paging around in the ONI to identify the ship - on long ranges guestimessing from what i can see. fx. starting out with naming it from Mast Funnel placements like the HARUNA MARU is a MMF-split (Mast Mast Funnel with a split superstructure)

If anyone here is interested i can make a mod (build on top of "JP Ship Dimension Fix1.3") available for use with any SH4 ver. where you have the ONI pages for the merchants in SH4 and ship cfg files with Gross tonnage, height, beam, length and draft from the ONI (and crew amount when possible).


All times are GMT -5. The time now is 05:06 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.