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-11-12, 01:16 AM   #1
charognard
Navy Dude
 
Join Date: Feb 2009
Posts: 171
Downloads: 201
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
The problem is because of how the AI in SH5 works. A group of ships is assigned a leader. That leader can only handle one contact at a time. The leader is responsible for setting the current tactic to be used. The current tactic dictates what the remaining ships do/don't do. Let's say that some ships are assigned protect convoy (from my IRAI mod). Those ships will stay with the convoy no matter what. They will not break rank even if you are 500 feet away from them. But enter inside of the convoy and they will break rank and seek you out. Now let's say some of the other ships are assigned plaster role. Their job is to seek out subs and DC them. Now let's say one of them finds a sub. He will in turn radio his buddies to come join the party. Thus is why they never try and seek out the second sub. The only time you would see some of the ships with the convoy break rank and go after another ship/sub was if they were assigned the role guard convoy and they spotted you.
Now we could spin this into another scenario. Let's say that the leader has his eyes on a ship/airplane contact. The tactic that it will set will have nothing to do with subs thus the chances of it sending out escorts to look for subs is slim to none.
In my IRAI mod if I didn't set a tactic or I set a tactic that let everyone 'be on their own' you wouldn't have convoys sailing in nice rows of ships following one another being led by an escort. It would be mayhem. It's a fine balancing act to get ships to follow another and to make the AI responsive.
If the actual group routines worked for the AI I could much more with them. But those functions always cause CTDs when I try to use them.
Yes i have understand how tactics and leader work.

I have set a mission with 2 convoy, and on ub near of each. Well, the first sub detected taunt the escort and all DD from the 2 convoy ( exept few who stay with marchants ). Even if the second is at 5km...

I have tryed to set in my mission single DD, indépendant groups from convoy and DD grouped with marchand, in all case, it s the same...

But, this isn t the main problem, if 8 DD come on the first contact and kill it, after they can go on the second, but, 8 DD elite, set with late equipement, can t kill an IP sub running fast, it s the most important probleme. In sh3, if you stay at IP, the first DC have great chance to kill you...
charognard is offline   Reply With Quote
Old 01-11-12, 03:10 AM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by charognard View Post
Yes i have understand how tactics and leader work.

I have set a mission with 2 convoy, and on ub near of each. Well, the first sub detected taunt the escort and all DD from the 2 convoy ( exept few who stay with marchants ). Even if the second is at 5km...

I have tryed to set in my mission single DD, indépendant groups from convoy and DD grouped with marchand, in all case, it s the same...

But, this isn t the main problem, if 8 DD come on the first contact and kill it, after they can go on the second, but, 8 DD elite, set with late equipement, can t kill an IP sub running fast, it s the most important probleme. In sh3, if you stay at IP, the first DC have great chance to kill you...
if you have v31 installed remove it. That version (single file) really loosened up the AI's sensors. Set the difficulty settings to 100/100 and disable fatigue model. Now you need to adjust the DC settings to give them a larger damage radius and higher MinEF and MaxEF so that they do more damage in that larger damage radius. The DCs were adjusted so that the escorts could DC at shallow depths and not destroy themselves like they did in stock game.

If you want to adjust the depth which DC attacks can be made then you need to edit the \data\Scripts\AI\init.aix file. I have a setting in there that controls the minimum depth they can start DC attacks.
TheDarkWraith is offline   Reply With Quote
Old 01-11-12, 03:36 AM   #3
Stew U-582
Lieutenant
 
Join Date: Apr 2007
Location: Adelaide Australia
Posts: 266
Downloads: 242
Uploads: 0
Default

Thanks for replying so quickly. You must keep a keen eye on
subsim. Everytime ive asked something of you ive got a response within
the hour.
I had a look at the sim file but think ill leave it be. I was just suprised
at the AI behaviour. Usually if I tried to take on a Taskforce with so
many escorts I would have got hammered , Im not used to getting
away but Early War you should be able to get away without too much
trouble. Later years is a diferent story. Im keen to see how the AI
changes over time.

Thanks Again

BTW I realy enjoy the mods youve released , thanks for sharing with the
comunity.
Finally im going to try RealNav , wish me luck.
__________________
Captain Stu from Down Under , Down Under

Stew U-582 is offline   Reply With Quote
Old 01-11-12, 03:40 AM   #4
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

If you use realnav be sure to download Trevallys auto scripts .

http://www.subsim.com/radioroom/down...o=file&id=3098
THE_MASK is offline   Reply With Quote
Old 01-11-12, 04:40 AM   #5
charognard
Navy Dude
 
Join Date: Feb 2009
Posts: 171
Downloads: 201
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
if you have v31 installed remove it. That version (single file) really loosened up the AI's sensors. Set the difficulty settings to 100/100 and disable fatigue model. Now you need to adjust the DC settings to give them a larger damage radius and higher MinEF and MaxEF so that they do more damage in that larger damage radius. The DCs were adjusted so that the escorts could DC at shallow depths and not destroy themselves like they did in stock game.

If you want to adjust the depth which DC attacks can be made then you need to edit the \data\Scripts\AI\init.aix file. I have a setting in there that controls the minimum depth they can start DC attacks.
How can i remove fatigue model plz ? And what is the minimum depth DC setting name into your .aix ?
charognard is offline   Reply With Quote
Old 01-11-12, 10:32 AM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by charognard View Post
How can i remove fatigue model plz ? And what is the minimum depth DC setting name into your .aix ?
Looked over my init.aix file and remembered some things:

FULL_THROTTLE_DISTANCE = 2000.0; this is the distance from contact that the warships will use full throttle until (you could set this distance as low as 500.0 with no problem)
PLASTER_DC_SETUP_RUN_SPEED = 0.5; this is the speed the warships will use when setting up for a DC run
PLASTER_DC_RUN_SPEED = 0.8; this is the speed the warships will use for their DC run (set to 1.0 for them to use full throttle)

for a sub contact the warships will use the PLASTER_DC_SETUP_RUN_SPEED inbetween FULL_THROTTLE_DISTANCE and PLASTER_DC_SETUP_DISTANCE. They will use PLASTER_DC_RUN_SPEED between PLASTER_DC_SETUP_DISTANCE and PLASTER_DC_RUN_DISTANCE

set all of these to 0 to remove fatigue model:
SHIPFATIGUESENSORREDUCTIONCRUISEMIN = 15; # min sensor reduction amount for each tier in cruise
SHIPFATIGUESENSORREDUCTIONCRUISEMAX = 30; # max sensor reduction amount for each tier in cruise
SHIPFATIGUESENSORREDUCTIONALERTMIN = 25; # min sensor reduction amount for each tier in alert
SHIPFATIGUESENSORREDUCTIONALERTMAX = 50; # max sensor reduction amount for each tier in alert
SHIPFATIGUESENSORREDUCTIONDAMAGEDMIN = 35; # min sensor reduction amount for each tier in damaged
SHIPFATIGUESENSORREDUCTIONDAMAGEDMAX = 70; # max sensor reduction amount for each tier in damaged
SHIPFATIGUESENSORREDUCTIONDAMAGEDALERTMIN = 45; # min sensor reduction amount for each tier in damaged
SHIPFATIGUESENSORREDUCTIONDAMAGEDALERTMAX = 90; # max sensor reduction amount for each tier in damaged

for ship DCs you have to look into the Ship-weapons.aix file:

precond
{
Ship:CanFireDCRacks() and Ship:GetContactDepth() <= -8 and Ship:GetCurrentSpeed() >= 2
}

if you make the -8 value smaller (less negative) then they will DC sooner. Notice that I also have a speed restriction on them. They have to be moving at 2 knots or more of speed.
TheDarkWraith is offline   Reply With Quote
Old 01-11-12, 11:41 AM   #7
charognard
Navy Dude
 
Join Date: Feb 2009
Posts: 171
Downloads: 201
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
Looked over my init.aix file and remembered some things:

FULL_THROTTLE_DISTANCE = 2000.0; this is the distance from contact that the warships will use full throttle until (you could set this distance as low as 500.0 with no problem)
PLASTER_DC_SETUP_RUN_SPEED = 0.5; this is the speed the warships will use when setting up for a DC run
PLASTER_DC_RUN_SPEED = 0.8; this is the speed the warships will use for their DC run (set to 1.0 for them to use full throttle)

for a sub contact the warships will use the PLASTER_DC_SETUP_RUN_SPEED inbetween FULL_THROTTLE_DISTANCE and PLASTER_DC_SETUP_DISTANCE. They will use PLASTER_DC_RUN_SPEED between PLASTER_DC_SETUP_DISTANCE and PLASTER_DC_RUN_DISTANCE

set all of these to 0 to remove fatigue model:
SHIPFATIGUESENSORREDUCTIONCRUISEMIN = 15; # min sensor reduction amount for each tier in cruise
SHIPFATIGUESENSORREDUCTIONCRUISEMAX = 30; # max sensor reduction amount for each tier in cruise
SHIPFATIGUESENSORREDUCTIONALERTMIN = 25; # min sensor reduction amount for each tier in alert
SHIPFATIGUESENSORREDUCTIONALERTMAX = 50; # max sensor reduction amount for each tier in alert
SHIPFATIGUESENSORREDUCTIONDAMAGEDMIN = 35; # min sensor reduction amount for each tier in damaged
SHIPFATIGUESENSORREDUCTIONDAMAGEDMAX = 70; # max sensor reduction amount for each tier in damaged
SHIPFATIGUESENSORREDUCTIONDAMAGEDALERTMIN = 45; # min sensor reduction amount for each tier in damaged
SHIPFATIGUESENSORREDUCTIONDAMAGEDALERTMAX = 90; # max sensor reduction amount for each tier in damaged

for ship DCs you have to look into the Ship-weapons.aix file:

precond
{
Ship:CanFireDCRacks() and Ship:GetContactDepth() <= -8 and Ship:GetCurrentSpeed() >= 2
}

if you make the -8 value smaller (less negative) then they will DC sooner. Notice that I also have a speed restriction on them. They have to be moving at 2 knots or more of speed.
A great thx TDW, i think i ll can do something ith this values...

Well, is a DD can use his canon to hit a low depth immerged sub and can he inflict somme damages ?? Is there any historical event like this ?
charognard is offline   Reply With Quote
Old 01-12-12, 12:41 PM   #8
charognard
Navy Dude
 
Join Date: Feb 2009
Posts: 171
Downloads: 201
Uploads: 0
Default

Quote:
FULL_THROTTLE_DISTANCE = 2000.0; this is the distance from contact that the warships will use full throttle until (you could set this distance as low as 500.0 with no problem)
I have changed it to 500, but DD allways coming at 15knt... Any another ideas ?
charognard is offline   Reply With Quote
Old 01-12-12, 02:59 PM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by charognard View Post
I have changed it to 500, but DD allways coming at 15knt... Any another ideas ?
what are you trying to accomplish? You want them at full throttle all the time? If so you need to change the DC_setup_speed and run speed and set them to 1.0
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 12:00 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.