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 12-14-13, 12:24 PM   #1
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default Are coastal batteries really working?

As the title says:

recently I have set a custom mission where a couple of 'small coastal guns' (which I had purposedly put in the British roster) are facing a number of Stuka bombers, result: guns and planes are ignoring each other, even though my crew keeps reporting the presence of "coastal defences", and guns' location is shown on the TAI map.

I digged into coastal gun's files, and everything looks okay. The sim file got _unit, cmdr_, wpn_Cannon and ob_Sensor controllers, and controller settings seem correct. I then had a look into the AI scripts folder, and I was surprised not to find any reference to land units.

Out of curiosity: has anyone ever seen coastal guns doing their job?
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 12-14-13, 03:28 PM   #2
Mikemike47
Grey Wolf
 
Join Date: Sep 2006
Location: NY
Posts: 989
Downloads: 1081
Uploads: 6
Default

Quote:
Originally Posted by gap View Post
my crew keeps reporting the presence of "coastal defences", and guns' location is shown on the TAI map.

has anyone ever seen coastal guns doing their job?
No, I haven't either. I had coastal defenses reported by crew in Scapa flow and using OH II v 2.2 or v2.1, but no gun activity.

I do remember that coastal defenses was reported by crew in SH4, and the AI guns were firing at me and even damaged sub; never in SH5 can I recall it happening correctly.
Mikemike47 is offline   Reply With Quote
Old 12-14-13, 06:00 PM   #3
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Mikemike47 View Post
No, I haven't either. I had coastal defenses reported by crew in Scapa flow and using OH II v 2.2 or v2.1, but no gun activity.

I do remember that coastal defenses was reported by crew in SH4, and the AI guns were firing at me and even damaged sub; never in SH5 can I recall it happening correctly.
Thank you for the precious information, Mike. It is probably time to have a look into SHIV, since you are reporting that its coastal guns worked as supposed. Unfortunately I know nothing about AI scripting. I only wish TDW was around
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 12-19-13, 02:36 PM   #4
Serge65
A-ganger
 
Join Date: Jan 2012
Posts: 78
Downloads: 59
Uploads: 0
Default

Quote:
Originally Posted by gap View Post
Thank you for the precious information, Mike. It is probably time to have a look into SHIV, since you are reporting that its coastal guns worked as supposed. Unfortunately I know nothing about AI scripting. I only wish TDW was around
It's not in the AI scripts. In the decompiled files SHSim.act (SH4) and SHim.act (SH5) there is a difference in the controllers cmdr_AICostal Defense.
Serge65 is offline   Reply With Quote
Old 12-19-13, 05:37 PM   #5
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Serge65 View Post
It's not in the AI scripts. In the decompiled files SHSim.act (SH4) and SHim.act (SH5) there is a difference in the controllers cmdr_AICostal Defense.
Thank you very much Serge. Hope tha someone (you all know who I have in mind ), will fix this feature one day
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 12-25-13, 03:46 PM   #6
Serge65
A-ganger
 
Join Date: Jan 2012
Posts: 78
Downloads: 59
Uploads: 0
Default

If the tanker is stalking you, change: data\Scripts\AI\Ship-Waypoint

strategy WaypointsCNFW(Ship)
precond
{
!Ship:CanFollowWaypoint()
}
action
{
Ship:Goto(0.7,false); ----> Ship:Goto(0.7,true);
Ship:SetThrottle(0.7);
}
}

and everything will be fine!
Serge65 is offline   Reply With Quote
Old 12-25-13, 04:51 PM   #7
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Serge65 View Post
If the tanker is stalking you
Do you mean the bug where the supply ship that we have just refitted from starts following us, ramming our boat if we don't move away quickly enough?
__________________
_____________________
|May the Force be with you!|
...\/
gap 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 02:51 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.