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 03-02-14, 11:09 AM   #1
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

@ TDW

talking again about the optimal values to be set in your sonar patch, maybe you can get some clues from the comments to this other mod by Stiebler (for SH3). He used a different approach though: rather than varying minimum signal strenght, he varied the minimum surface factor of the sonar sensor.
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 03-02-14, 02:31 PM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
@ TDW

talking again about the optimal values to be set in your sonar patch, maybe you can get some clues from the comments to this other mod by Stiebler (for SH3). He used a different approach though: rather than varying minimum signal strenght, he varied the minimum surface factor of the sonar sensor.
That's a poor approach varying the minimum surface thing. If that test fails then no contact is detected. My way at least gets some kind of signal strength returned thus enabling a chance for contact to be detected.
TheDarkWraith is offline   Reply With Quote
Old 03-02-14, 02:33 PM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Stumbled upon how the game decides which contact of a list of contacts detected by a unit is selected as the contact detected. Each unit has a priority number assigned to them. When the game iterates over all the contacts detected the unit with the highest priority value is the contact detected. Always wondered how the game decided this
TheDarkWraith is offline   Reply With Quote
Old 03-02-14, 02:40 PM   #4
Silent Steel
Sea Lord
 
Join Date: Jun 2008
Location: Noch dabei
Posts: 1,732
Downloads: 618
Uploads: 0
Default

You are Black Magic
Silent Steel is offline   Reply With Quote
Old 03-02-14, 02:49 PM   #5
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

Quote:
Originally Posted by TheDarkWraith View Post
Stumbled upon how the game decides which contact of a list of contacts detected by a unit is selected as the contact detected. Each unit has a priority number assigned to them. When the game iterates over all the contacts detected the unit with the highest priority value is the contact detected. Always wondered how the game decided this
This IS an awesome find .
THE_MASK is offline   Reply With Quote
Old 03-02-14, 02:58 PM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by sober View Post
This IS an awesome find .
Yes it is. I always wanted the AI subs to target merchants instead of warships first
TheDarkWraith is offline   Reply With Quote
Old 03-02-14, 03:17 PM   #7
Tonci87
Samurai Navy
 
Join Date: Jun 2012
Posts: 590
Downloads: 119
Uploads: 0


Default

Quote:
Originally Posted by TheDarkWraith View Post
Yes it is. I always wanted the AI subs to target merchants instead of warships first
Ooh I like where this is going
Tonci87 is offline   Reply With Quote
Old 03-02-14, 04:16 PM   #8
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
That's a poor approach varying the minimum surface thing. If that test fails then no contact is detected. My way at least gets some kind of signal strength returned thus enabling a chance for contact to be detected.
yep, I also agree that your approach is better, and not only under the 'signal strenght vs minimum surface' respect imo. My suggestion was to take inspiration from the comments to Stiebler's mod, rather than from the mod itself

Quote:
Originally Posted by TheDarkWraith View Post
Stumbled upon how the game decides which contact of a list of contacts detected by a unit is selected as the contact detected. Each unit has a priority number assigned to them. When the game iterates over all the contacts detected the unit with the highest priority value is the contact detected. Always wondered how the game decided this
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 03-02-14, 07:07 PM   #9
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

Quote:
Originally Posted by TheDarkWraith View Post
Stumbled upon how the game decides which contact of a list of contacts detected by a unit is selected as the contact detected. Each unit has a priority number assigned to them. When the game iterates over all the contacts detected the unit with the highest priority value is the contact detected. Always wondered how the game decided this
Is this related in the mission editor 2 .
High priority contact True or False ?
THE_MASK is offline   Reply With Quote
Old 03-02-14, 07:14 PM   #10
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by sober View Post
Is this related in the mission editor 2 .
High priority contact True or False ?
Good question and well spotted
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 03-02-14, 10:29 PM   #11
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by sober View Post
Is this related in the mission editor 2 .
High priority contact True or False ?
Nope, completely different. That deals with how the unit is seen on the map.

The priorities I'm talking about are hard-coded in the SH5.exe. I'm not going to attempt to redo them but instead just insert some code to see if unit is AI sub and if so then merchants are priority over everything else.
TheDarkWraith is offline   Reply With Quote
Old 03-03-14, 04:46 AM   #12
Stormfly
Serial Port Protector
 
Stormfly's Avatar
 
Join Date: Sep 2002
Posts: 1,424
Downloads: 370
Uploads: 0
Default

and what about a possible solution for multiplayer then, problem is that always only 1 sub get engaged in multiplayer, other subs are totaly ignored by the escorts, even if surfaced and in fireing range...
__________________
Stormy......

Stormfly is offline   Reply With Quote
Old 03-03-14, 12:10 PM   #13
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Stormfly View Post
and what about a possible solution for multiplayer then, problem is that always only 1 sub get engaged in multiplayer, other subs are totaly ignored by the escorts, even if surfaced and in fireing range...
That's going to be a little tricky. Other than the priority thing I talked about earlier the sensor with the highest signal strength returned for it's contact is the contact the unit will track and engage.
TheDarkWraith 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 01:01 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.