![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
10-07-13, 05:56 PM
|
#1 |
|
Watch
![]() Join Date: Dec 2011
Posts: 26
Downloads: 17
Uploads: 0
|
Alright. Here are the steps to reproduce.
Mods: Generic Mod Enabler - v2.6.0.157 [C:\Ubisoft\Silent Hunter 5\MODS] NewUIs_TDC_7_1_0_ByTheDarkWraith NewUIs_TDC_7_1_0_Real_Navigation Manos Scopes-patch for 16x9 Also have the TDW hydrophone exe fixes activated. 1. Load up the historical mission TDW Torp Tutorial. 2. Make sure, your sub is NOT heading North. Turn to heading 320 degrees by making a 40 degrees turn to port/left. 3. The contact should be at around 106 degrees. Go to the sonarman, activate the hydrophone station and point the needle to 106 degrees. 4. Ask the sonar man to follow the selected target (see picture). He responds: "Sonarman: no near contact to follow" 5. You can, however, make him pick up the contact by pointing the needle to 66 degrees The aforementioned changes to /data/Scripts/Stations/Hydrophone.py fix this issue.
|
|
|
10-08-13, 05:19 PM
|
#2 | |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
|
|
|
|
10-21-13, 03:31 AM
|
#3 | |
|
Captain
![]() Join Date: Sep 2013
Posts: 542
Downloads: 70
Uploads: 0
|
Quote:
|
|
|
|
10-21-13, 08:39 AM
|
#4 | |
|
Watch
![]() Join Date: Dec 2011
Posts: 26
Downloads: 17
Uploads: 0
|
Quote:
TDWs original Code in HydrophoneFollowNearestContact(): (/data/Scripts/Stations/Hydrophone.py) Code:
for contact in contacts:
if sub.HeadingDEGToContact( contact ) >= ( hydroangle - sweeprange ) and sub.HeadingDEGToContact( contact ) <= ( hydroangle + sweeprange ) and sub.RangeToContact( contact ) <= maxrange:
if hydrocontact == None:
hydrocontact = contact
else:
if sub.HeadingDEGToContact( contact ) <= sub.HeadingDEGToContact( hydrocontact ) and sub.RangeToContact( contact ) < sub.RangeToContact( hydrocontact ):
hydrocontact = contact
Code:
for contact in contacts:
if TDWUtils.GetContactHeading( sub.HeadingDEGToContact( contact ) - sub.HeadingDEG ) >= ( hydroangle - sweeprange ) and TDWUtils.GetContactHeading( sub.HeadingDEGToContact( contact ) - sub.HeadingDEG ) <= ( hydroangle + sweeprange ) and sub.RangeToContact( contact ) <= maxrange:
if hydrocontact == None:
hydrocontact = contact
else:
if sub.RangeToContact( contact ) < sub.RangeToContact( hydrocontact ):
hydrocontact = contact
The change in the second line ensures the code deals with bearings relative to the sub's course instead of true, north-aligned bearings. The change in the sixth line ommits a bogus if-condition. Why only select the nearest contact, if it also happens to be at a lesser bearing than other contacts in that area, and otherwise follow a contact further away. The command is called "Hydrophone follow nearest contact", after all. This fix is available as a mod, activate it via JSGME after TDWs NewUIs: http://www.deguero.de/jel/Hydrophone..._0_To_7_5_0.7z |
|
|
|
10-21-13, 09:05 AM
|
#5 |
|
Captain
![]() Join Date: Sep 2013
Posts: 542
Downloads: 70
Uploads: 0
|
Much appreciated, will test and report back!
|
|
|
![]() |
| Tags |
| dbrn, favorite, new ui |
| Thread Tools | |
| Display Modes | |
|
|
