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-03-10, 02:35 AM   #1
Zedi
Sea Lord
 
Join Date: Mar 2010
Posts: 1,845
Downloads: 184
Uploads: 2
Default

TDW, is possible to make a time limit for the HK groups? I mean, 20 hours (or more) of cat &mouse play is way to much for a game. It's realistic, but I dont see anybody able to spend 20 hours of their lifetime into a game trying to dodge some AI that wont give up hunting you. I'm thinking about something like.. if no TC used, set hunt limit to 1 - 2 hours, then loose contact.
Zedi is offline   Reply With Quote
Old 12-03-10, 05:53 AM   #2
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 Magnum View Post
TDW, is possible to make a time limit for the HK groups? I mean, 20 hours (or more) of cat &mouse play is way to much for a game. It's realistic, but I dont see anybody able to spend 20 hours of their lifetime into a game trying to dodge some AI that wont give up hunting you. I'm thinking about something like.. if no TC used, set hunt limit to 1 - 2 hours, then loose contact.
What about adjusting this

C:\Users\#####\Documents\SH5 mods\IRAI_0_0_29_TheDarkWraith\IRAI_0_0_29_ByTheDa rkWraith\MODS\IRAI_0_0_29_ByTheDarkWraith\data\Scr ipts\AI\init
###################### Difficulty parameters ####################
# Note: difficulty is in range 0.0 - 1.0 with 0.0 being no difficulty (sensor doesn't exist)
# for non-merchants
VISUAL_DIFFICULTY = 1.0;
HYDROPHONE_DIFFICULTY = 1.0;
RADAR_DIFFICULTY = 1.0;
SONAR_DIFFICULTY = 1.0;
# for merchants
VISUAL_DIFFICULTY_MERCHANT = 1.0;
HYDROPHONE_DIFFICULTY_MERCHANT = 1.0;
RADAR_DIFFICULTY_MERCHANT = 1.0;
SONAR_DIFFICULTY_MERCHANT = 1.0;
THE_MASK is offline   Reply With Quote
Old 12-03-10, 06:15 AM   #3
Zedi
Sea Lord
 
Join Date: Mar 2010
Posts: 1,845
Downloads: 184
Uploads: 2
Default

The difficulty is the essence of this mod. I want them to be hardcore, but not forever. Maybe their mom can call them home for a tea after a while...
Zedi is offline   Reply With Quote
Old 12-03-10, 06:20 AM   #4
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 Magnum View Post
The difficulty is the essence of this mod. I want them to be hardcore, but not forever. Maybe their mom can call them home for a tea after a while...
Your idea is good though , the more options the better . As long as it is an option though .
THE_MASK is offline   Reply With Quote
Old 12-03-10, 07:37 AM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Magnum View Post
TDW, is possible to make a time limit for the HK groups? I mean, 20 hours (or more) of cat &mouse play is way to much for a game. It's realistic, but I dont see anybody able to spend 20 hours of their lifetime into a game trying to dodge some AI that wont give up hunting you. I'm thinking about something like.. if no TC used, set hunt limit to 1 - 2 hours, then loose contact.
there are two possible ways you could do this. One is to cut the time they can search for you and/or the other way is increase fatigue over time. These values can be found in \data\Scripts\AI\init.aix

To cut time they can search for you play with these values (below are all in seconds):
# Hunter-Killer group spiral search time upon lost contact
HK_SPIRAL_MIN_SEARCH_TIME = 180.0; # used as min value of a Random function
HK_SPIRAL_MAX_SEARCH_TIME = 420.0; # used as max value of a Random function
# Hunter-Killer group wait time inbetween spiral searches
INVESTIGATE_FOLLOW_WAYPOINTS_TIME = 990.0; # 15 mins (90 to account for CONTACT_LOST_BEGIN_SEARCH_TIME)
# for escorts that are guarding convoy but attacking a contact, this is the time they can keep attacking when contact is lost
PLASTER_GUARD_CONVOY_DC_WAYPOINTS = 360.0;
# this is the time that if a unit is a director and the contact lost time >
# MAX_CONTACT_LOST_DC_TIME it waits until contact lost time is this value before
# heading back to convoy and following it's waypoints (not part of HK group)
DIRECTOR_SEARCH_TIME = 900.0; # 15 mins
CONVOY_ESCORT_SPIRAL_TIME = 600.0;

to play with fatigue adjust these values:
############### watch rotation and fatigue #####################
SHIPWATCHROTATION = 180; # in minutes (there are 4 tiers of fatigue) this is a base time
SHIPFATIGUEMIN = 0.5; # min time of current tier (ShipWatchRotation / 4) when next tier starts
SHIPFATIGUEMAX = 1.5; # max time of current tier (ShipWatchRotation / 4) when next tier starts
SHIPFATIGUESENSORREDUCTIONCRUISEMIN = 0.015; # min sensor reduction amount for each tier in cruise
SHIPFATIGUESENSORREDUCTIONCRUISEMAX = 0.03; # max sensor reduction amount for each tier in cruise
SHIPFATIGUESENSORREDUCTIONALERTMIN = 0.025; # min sensor reduction amount for each tier in alert
SHIPFATIGUESENSORREDUCTIONALERTMAX = 0.05; # max sensor reduction amount for each tier in alert
SHIPFATIGUESENSORREDUCTIONDAMAGEDMIN = 0.035; # min sensor reduction amount for each tier in damaged
SHIPFATIGUESENSORREDUCTIONDAMAGEDMAX = 0.07; # max sensor reduction amount for each tier in damaged
SHIPFATIGUESENSORREDUCTIONDAMAGEDALERTMIN = 0.045; # min sensor reduction amount for each tier in damaged
SHIPFATIGUESENSORREDUCTIONDAMAGEDALERTMAX = 0.09; # max sensor reduction amount for each tier in damaged

I personally would play with the fatigue numbers. I would increase all of them 0.025 at a time and test until I got what I was looking for. The fatigue numbers above reduce the sensor effectiveness of the ship's sensors by the amount shown on each tier change of fatigue. If you want them to enter fatigue faster then adjust SHIPWATCHROTATION to a small number.
TheDarkWraith is offline   Reply With Quote
Old 12-11-10, 04:07 PM   #6
rascal101
Grey Wolf
 
Join Date: Jun 2006
Posts: 769
Downloads: 200
Uploads: 0
Default

HI Mr TDW
Have decided to experiment with changeing Watch Rotation and fiddle with fatigue as you suggest - am flying a bit blind as I dont know exactly what I am doing- the idea is to play and test till I find something that works

So my first attempt has been to change SHIPWATCHROTATION from 180 to 125 and see what happens - if you can offer any more information that would be great

Is it possible to set these so the game AI gets better in stages as you play - so in 1939 the Escort AI is fairly soft, and then as the game years progress the AI gets better and better - Any ideas any one

Regards
Rascal

Quote:
Originally Posted by TheDarkWraith View Post
there are two possible ways you could do this. One is to cut the time they can search for you and/or the other way is increase fatigue over time. These values can be found in \data\Scripts\AI\init.aix

To cut time they can search for you play with these values (below are all in seconds):
# Hunter-Killer group spiral search time upon lost contact
HK_SPIRAL_MIN_SEARCH_TIME = 180.0; # used as min value of a Random function
HK_SPIRAL_MAX_SEARCH_TIME = 420.0; # used as max value of a Random function
# Hunter-Killer group wait time inbetween spiral searches
INVESTIGATE_FOLLOW_WAYPOINTS_TIME = 990.0; # 15 mins (90 to account for CONTACT_LOST_BEGIN_SEARCH_TIME)
# for escorts that are guarding convoy but attacking a contact, this is the time they can keep attacking when contact is lost
PLASTER_GUARD_CONVOY_DC_WAYPOINTS = 360.0;
# this is the time that if a unit is a director and the contact lost time >
# MAX_CONTACT_LOST_DC_TIME it waits until contact lost time is this value before
# heading back to convoy and following it's waypoints (not part of HK group)
DIRECTOR_SEARCH_TIME = 900.0; # 15 mins
CONVOY_ESCORT_SPIRAL_TIME = 600.0;

to play with fatigue adjust these values:
############### watch rotation and fatigue #####################
SHIPWATCHROTATION = 180; # in minutes (there are 4 tiers of fatigue) this is a base time
SHIPFATIGUEMIN = 0.5; # min time of current tier (ShipWatchRotation / 4) when next tier starts
SHIPFATIGUEMAX = 1.5; # max time of current tier (ShipWatchRotation / 4) when next tier starts
SHIPFATIGUESENSORREDUCTIONCRUISEMIN = 0.015; # min sensor reduction amount for each tier in cruise
SHIPFATIGUESENSORREDUCTIONCRUISEMAX = 0.03; # max sensor reduction amount for each tier in cruise
SHIPFATIGUESENSORREDUCTIONALERTMIN = 0.025; # min sensor reduction amount for each tier in alert
SHIPFATIGUESENSORREDUCTIONALERTMAX = 0.05; # max sensor reduction amount for each tier in alert
SHIPFATIGUESENSORREDUCTIONDAMAGEDMIN = 0.035; # min sensor reduction amount for each tier in damaged
SHIPFATIGUESENSORREDUCTIONDAMAGEDMAX = 0.07; # max sensor reduction amount for each tier in damaged
SHIPFATIGUESENSORREDUCTIONDAMAGEDALERTMIN = 0.045; # min sensor reduction amount for each tier in damaged
SHIPFATIGUESENSORREDUCTIONDAMAGEDALERTMAX = 0.09; # max sensor reduction amount for each tier in damaged

I personally would play with the fatigue numbers. I would increase all of them 0.025 at a time and test until I got what I was looking for. The fatigue numbers above reduce the sensor effectiveness of the ship's sensors by the amount shown on each tier change of fatigue. If you want them to enter fatigue faster then adjust SHIPWATCHROTATION to a small number.
rascal101 is offline   Reply With Quote
Old 12-14-10, 08:47 AM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by rascal101 View Post
So my first attempt has been to change SHIPWATCHROTATION from 180 to 125 and see what happens - if you can offer any more information that would be great

Is it possible to set these so the game AI gets better in stages as you play - so in 1939 the Escort AI is fairly soft, and then as the game years progress the AI gets better and better - Any ideas any one

Regards
Rascal
the devs didn't provide any way to get the current date thus there's no way to change AI behavior based on date. It's very limited what one can do with the ship AI (the sub AI is even worse and the airplane AI is pitiful).

Here's how the fatigue works:

the fatigue system has 4 levels. When a ship first spawns in game it's at fatigue level 1, a new watch crew has taken over and has no fatigue. All the sensors for that ship are at 100% capability (that's capability not sensor effectivess - two different things. A sensor can have a sensor effectiveness of 0.75 but be at 100% capability. As capability degrades it reduces the sensor effectiveness). A base tier time is defined as base ship watch rotation time +- ( 0.25 * base watch rotation ). Each level of fatigue uses this base tier time * random( SHIPFATIGUEMIN, SHIPFATIGUEMAX ) to get a random amount of time for each level of fatigue.
When a new fatigue level is started the ship's sensors are reduced by a random amount between SHIPFATIGUESENSORREDUCTIONxMIN and SHIPFATIGUESENSORREDUCTIONxMAX. After all 4 fatigue levels are done a fresh watch crew takes over and the ship's sensors are put back to 100% effectiveness and the cycle repeats.
TheDarkWraith is offline   Reply With Quote
Old 01-04-11, 08:09 AM   #8
Itkovian
Helmsman
 
Join Date: Feb 2010
Posts: 106
Downloads: 15
Uploads: 0
Default

A few questions:

- For the mod to work, should I return to port and sail out again?

- Having just installed the mod and loading an ongoing patrol, my conning tower seems to have sprouted a new antennae (a circular one, not sure what it is - radar? radar detector?). Is that part of the mod, or a bug?

- Does your mod change behavior when ships take damage? Due to conflict I had to remove the Damage Assessment mod (which causes ships to slow down after taking hits), and wonder if yours does something else to make damaged ships behave more realistically (I see in your notes that it does cause speed to decrease, at the very least).

Thank you.

Itkovian
Itkovian is offline   Reply With Quote
Old 01-04-11, 09:33 AM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Itkovian View Post
A few questions:

- For the mod to work, should I return to port and sail out again?

- Having just installed the mod and loading an ongoing patrol, my conning tower seems to have sprouted a new antennae (a circular one, not sure what it is - radar? radar detector?). Is that part of the mod, or a bug?

- Does your mod change behavior when ships take damage? Due to conflict I had to remove the Damage Assessment mod (which causes ships to slow down after taking hits), and wonder if yours does something else to make damaged ships behave more realistically (I see in your notes that it does cause speed to decrease, at the very least).

Thank you.

Itkovian
I would always install/remove mods in port.
The new antenna is the radio DF loop. It is part of the mod. You will also notice another antenna when you submerge. That is the radio antenna.
The mod changes all aspects of AI behavior.
TheDarkWraith is offline   Reply With Quote
Old 01-04-11, 11:31 AM   #10
Itkovian
Helmsman
 
Join Date: Feb 2010
Posts: 106
Downloads: 15
Uploads: 0
Default

Hum, is it too late for me now that the mod is already installed? Or would just going back to port and leaving again "reset" things so all is well?

As for the DF loop, is that a historical mod? As in something our subs were missing that real Type VIIs had? Does it have gameplay impacts, or is it a cosmetic change for realism?

Thank you.

Itkovian
Itkovian is offline   Reply With Quote
Old 03-31-11, 06:29 AM   #11
Dignan
Seasoned Skipper
 
Join Date: Mar 2008
Posts: 698
Downloads: 262
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
I would always install/remove mods in port.
The new antenna is the radio DF loop. It is part of the mod. You will also notice another antenna when you submerge. That is the radio antenna.
The mod changes all aspects of AI behavior.

TDW, is this radio antenna (looks like an ice pick) detectable by escorts? At periscope depth it sticks out of the water and if you want to move while at p depth, it produces a wake and a splash. Any way to lower this thing?
Dignan is offline   Reply With Quote
Old 12-14-10, 01:02 AM   #12
rascal101
Grey Wolf
 
Join Date: Jun 2006
Posts: 769
Downloads: 200
Uploads: 0
Default

Question for TheDarkWraith

OK have tested this and sadly it does not seem to change the super magical behaviour of the Escorts- OK its Nov 1939 - I come across a single escrot on patrol off SW coast UK -medium fog- crash dived to avoid surface encounter - then spent the next 16-20 hrs game time avoiding the Escort - 160m depth silent running -

No manouvers seemed to shake it kept my bow and stern always to the destroyer where possible - indeed sometimes the detroyer would go away and I almost thought I'd won, then out the blue he would just appear in the distance and sail right over me and start the whole game all over again - just doing circles over me with at least one part of the circle right on top of me


I then tried surfacing to loose him in the fog - even though I was beyond his visual range no matter how many direction changes I made, while out side his line of site in fog he still just altered course to match my own - as if the fog was not there and her could see me quite clearly - dont forget its 1939 so no radar.

This leads me to suspect this mod is flawed - though I mean no ill will to TDW I have tried messing with certain parramaters of this mod - I re-set the SHIPWATCHROTATION from 180 to 125 with no apparent change in behavior

Mr TDW - you have provided some of the best mods for this game - however the Escort AI seems to be tweaked way too high -
I would stress the above encounter took place in Nov 1939 - so ASDIC and SONAR are either non existent or primitive, and there would not have been any radar either.

And yet this escort was able to find me no matter what I did, submerged or on the surface, the fog made no difference even though according to the date and technology avaliabel at the time simulated both the escort and I should have only had dead reconging and visual tracking

Please Mr TDW can you have another look at this fantastic mod, its good but not yet realistic

Best Regards to all Subsimmers and dont forget to dontate - I tipped in $10 over the weekend - keep Subsim afloat!

Rascal

Quote:
Originally Posted by TheDarkWraith View Post
there are two possible ways you could do this. One is to cut the time they can search for you and/or the other way is increase fatigue over time. These values can be found in \data\Scripts\AI\init.aix

To cut time they can search for you play with these values (below are all in seconds):
# Hunter-Killer group spiral search time upon lost contact
HK_SPIRAL_MIN_SEARCH_TIME = 180.0; # used as min value of a Random function
HK_SPIRAL_MAX_SEARCH_TIME = 420.0; # used as max value of a Random function
# Hunter-Killer group wait time inbetween spiral searches
INVESTIGATE_FOLLOW_WAYPOINTS_TIME = 990.0; # 15 mins (90 to account for CONTACT_LOST_BEGIN_SEARCH_TIME)
# for escorts that are guarding convoy but attacking a contact, this is the time they can keep attacking when contact is lost
PLASTER_GUARD_CONVOY_DC_WAYPOINTS = 360.0;
# this is the time that if a unit is a director and the contact lost time >
# MAX_CONTACT_LOST_DC_TIME it waits until contact lost time is this value before
# heading back to convoy and following it's waypoints (not part of HK group)
DIRECTOR_SEARCH_TIME = 900.0; # 15 mins
CONVOY_ESCORT_SPIRAL_TIME = 600.0;

to play with fatigue adjust these values:
############### watch rotation and fatigue #####################
SHIPWATCHROTATION = 180; # in minutes (there are 4 tiers of fatigue) this is a base time
SHIPFATIGUEMIN = 0.5; # min time of current tier (ShipWatchRotation / 4) when next tier starts
SHIPFATIGUEMAX = 1.5; # max time of current tier (ShipWatchRotation / 4) when next tier starts
SHIPFATIGUESENSORREDUCTIONCRUISEMIN = 0.015; # min sensor reduction amount for each tier in cruise
SHIPFATIGUESENSORREDUCTIONCRUISEMAX = 0.03; # max sensor reduction amount for each tier in cruise
SHIPFATIGUESENSORREDUCTIONALERTMIN = 0.025; # min sensor reduction amount for each tier in alert
SHIPFATIGUESENSORREDUCTIONALERTMAX = 0.05; # max sensor reduction amount for each tier in alert
SHIPFATIGUESENSORREDUCTIONDAMAGEDMIN = 0.035; # min sensor reduction amount for each tier in damaged
SHIPFATIGUESENSORREDUCTIONDAMAGEDMAX = 0.07; # max sensor reduction amount for each tier in damaged
SHIPFATIGUESENSORREDUCTIONDAMAGEDALERTMIN = 0.045; # min sensor reduction amount for each tier in damaged
SHIPFATIGUESENSORREDUCTIONDAMAGEDALERTMAX = 0.09; # max sensor reduction amount for each tier in damaged

I personally would play with the fatigue numbers. I would increase all of them 0.025 at a time and test until I got what I was looking for. The fatigue numbers above reduce the sensor effectiveness of the ship's sensors by the amount shown on each tier change of fatigue. If you want them to enter fatigue faster then adjust SHIPWATCHROTATION to a small number.
rascal101 is offline   Reply With Quote
Old 12-14-10, 08:32 AM   #13
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by rascal101 View Post
Question for TheDarkWraith

OK have tested this and sadly it does not seem to change the super magical behaviour of the Escorts- OK its Nov 1939 - I come across a single escrot on patrol off SW coast UK -medium fog- crash dived to avoid surface encounter - then spent the next 16-20 hrs game time avoiding the Escort - 160m depth silent running -

No manouvers seemed to shake it kept my bow and stern always to the destroyer where possible - indeed sometimes the detroyer would go away and I almost thought I'd won, then out the blue he would just appear in the distance and sail right over me and start the whole game all over again - just doing circles over me with at least one part of the circle right on top of me


I then tried surfacing to loose him in the fog - even though I was beyond his visual range no matter how many direction changes I made, while out side his line of site in fog he still just altered course to match my own - as if the fog was not there and her could see me quite clearly - dont forget its 1939 so no radar.

This leads me to suspect this mod is flawed - though I mean no ill will to TDW I have tried messing with certain parramaters of this mod - I re-set the SHIPWATCHROTATION from 180 to 125 with no apparent change in behavior

Mr TDW - you have provided some of the best mods for this game - however the Escort AI seems to be tweaked way too high -
I would stress the above encounter took place in Nov 1939 - so ASDIC and SONAR are either non existent or primitive, and there would not have been any radar either.

And yet this escort was able to find me no matter what I did, submerged or on the surface, the fog made no difference even though according to the date and technology avaliabel at the time simulated both the escort and I should have only had dead reconging and visual tracking

Please Mr TDW can you have another look at this fantastic mod, its good but not yet realistic

Best Regards to all Subsimmers and dont forget to dontate - I tipped in $10 over the weekend - keep Subsim afloat!

Rascal
set the sonar and hyrophone difficulty settings for escorts to 0.85 (leave all merchant difficulty settings at 1.0). Put the fatigue back to where it was. If it's still too hard adjust those values by subtracting 0.025 increments at a time. If it's too easy adjust those values by adding 0.025 increments at a time.
TheDarkWraith is offline   Reply With Quote
Old 12-03-10, 08:08 AM   #14
PL_Andrev
Grey Wolf
 
Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
Default

Quote:
Originally Posted by Magnum View Post
TDW, is possible to make a time limit for the HK groups? I mean, 20 hours (or more) of cat &mouse play is way to much for a game. It's realistic, but I dont see anybody able to spend 20 hours of their lifetime into a game trying to dodge some AI that wont give up hunting you. I'm thinking about something like.. if no TC used, set hunt limit to 1 - 2 hours, then loose contact.

I do not understand - what is the problem?

If you're seriously damaged then you have right.
But what is the problem with escape 1kt or less at 200-220 meters with silent run? This is only 3-10 hours (depend from speed).
They are following your current position when you are into the deep? I don't think so.

This is HK group to hunt you but not convoy's escort - they know that you are very close...

But that is true that they shouldn't try to hunt much time. I think 6 hours is max time.

Non-real game is bad. But a real game is bad too?
__________________

PL_Andrev is offline   Reply With Quote
Old 12-03-10, 08:37 AM   #15
Zedi
Sea Lord
 
Join Date: Mar 2010
Posts: 1,845
Downloads: 184
Uploads: 2
Default

Im playing in 1944 and is no way to escape, things are pretty different from 39. Decoys, 1ktn under 220m.. u name it, they just dont give up. And I don't use TC in battle, so after 1-2 hours of dodging dc's... I go play something else. I love the full realism and simulation, but spending hours of my life looking to a virtual sub hull, is too hardcore even for my taste.
Zedi 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 11:21 PM.


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.