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 01-16-12, 03:58 PM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Rongel View Post
A-ha!

Finally managed to get the ships to fire at my periscope. It only happens when there is other u-boat or a ship that the enemy is firing. I made a single mission where there is a friendly u-boat. Both of use were submerged. I lifted the periscope and made sure that I was spotted. Nothing. Theb the other u-boat surfaced and enemies opened fire at it. And it was only then, that the nearby ships targeted my periscope and attacked me. They were clearly dividing their firepower between us. And when the other u-boat was destroyed the firing stopped, and they left my periscope alone.

I bet that the situation in Trevally's wolfpack mission was the same, that there was one surfaced u-boat that triggered the periscope shooting. So they can shoot at your periscope when you are submerged and spotted, but only if they have the "shooting mode" already going on by shooting at other ships.
this sounds like a serious bug in the exe regarding the AI. I can almost see what the function CanFireGuns() for the AI is doing:

if has contact:
if contact is submarine:
if submarine is surfaced: <---- more than likely what they did
TheDarkWraith is offline   Reply With Quote
Old 01-16-12, 05:20 PM   #2
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

Good find Rongel
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 01-17-12, 04:28 AM   #3
Rongel
Grey Wolf
 
Join Date: Jan 2009
Location: Finland
Posts: 857
Downloads: 174
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
this sounds like a serious bug in the exe regarding the AI. I can almost see what the function CanFireGuns() for the AI is doing:

if has contact:
if contact is submarine:
if submarine is surfaced: <---- more than likely what they did
Yep seems that way. Because the plane attack system works, I tried to switch the commands. So I replaced Ship:CanFireCannons() to Plane:CanFireCannons() and, suprise suprise, it worked and the ships were shooting at me the moment I was spotted, even when I was submerged! So simply changing the commands, this could work!

I guess the IRAI is telling the planes to attack last known place of the sub after it's dissappeared, because the ships acted that way too. That seemed to be little too much and it could cause difficulties in large convoys. Needs more testing...
Rongel is offline   Reply With Quote
Old 01-21-12, 08:57 AM   #4
Rongel
Grey Wolf
 
Join Date: Jan 2009
Location: Finland
Posts: 857
Downloads: 174
Uploads: 0
Default

Tested more of this periscope shooting...

Unfortunately replacing the Ship:CanFireCannons() with Plane:CanFireCannons() causes the ships to act like planes. I sneaked to this big convoy, and when the first torpedo hit, all ships that had guns started to fire at my general direction (where the ships thought I was, I was undetected I think). They continued to shoot aproximately 15 minutes and caused pretty nice chaos! I think at least three of them were destroyed by friendly fire!



So it seems the only way to fix this is through exe modding...

Still it was nice to see a bit more aggressive ships. Currently when you are in periscope depth and periscope is up, surface ships can't do anything to you, if they don't have DC's (except ram).
Rongel is offline   Reply With Quote
Old 02-01-12, 05:22 AM   #5
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

IRAI_0_0_30\sensors\
[SensorParameters]
;Visual.

does this line look ok

Visual range factor=0.5;0.30 ;[>=0] was 0.5, decreased by 25%
should these factors be the other way around ?
THE_MASK is offline   Reply With Quote
Old 02-01-12, 09:21 AM   #6
pedrobas
Seasoned Skipper
 
Join Date: Apr 2007
Location: Huelva, Spain
Posts: 664
Downloads: 301
Uploads: 0
Default

Quote:
Originally Posted by sober View Post
IRAI_0_0_30\sensors\
[SensorParameters]
;Visual.

does this line look ok

Visual range factor=0.5;0.30 ;[>=0] was 0.5, decreased by 25%
should these factors be the other way around ?
I think so, i thought just the same when i saw that,
pedrobas is offline   Reply With Quote
Old 02-01-12, 11:10 AM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by sober View Post
IRAI_0_0_30\sensors\
[SensorParameters]
;Visual.

does this line look ok

Visual range factor=0.5;0.30 ;[>=0] was 0.5, decreased by 25%
should these factors be the other way around ?
Anything after the first ; is considered a comment and thus ignored
TheDarkWraith is offline   Reply With Quote
Old 02-01-12, 11:21 AM   #8
pedrobas
Seasoned Skipper
 
Join Date: Apr 2007
Location: Huelva, Spain
Posts: 664
Downloads: 301
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
Anything after the first ; is considered a comment and thus ignored
Yes i know but it´s set to 0.5 and in the coment says that "was 0.5"
pedrobas is offline   Reply With Quote
Old 02-01-12, 02:59 PM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by pedrobas View Post
Yes i know but it´s set to 0.5 and in the coment says that "was 0.5"
I never updated the comment as the versions changed
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 06:09 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.