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 08-15-10, 10:39 AM   #1
SteelViking
The Old Man
 
Join Date: Mar 2010
Location: U.S.A.-East Coast
Posts: 1,587
Downloads: 86
Uploads: 4
Default

Quote:
Originally Posted by TheDarkWraith View Post
no worries...convoys will still act the way they did. This applies to only single merchant (or to be more correct a merchant that is it's own Commander)
Ah, ok cool.
__________________

He sank 198,650 tons....who you ask?....Erich Topp, that's who!
SteelViking is offline   Reply With Quote
Old 08-15-10, 10:51 AM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by SteelViking View Post
Ah, ok cool.
Yeah I thought about that too but found a way to make them behave like a convoy still when they are part of one

Merchants now have their own difficulty settings also:

###################### 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;


I gave you the ability to change the difficulty of the new merchant behavior in v0.0.17. These values can be found in \data\Scripts\AI\init.aix. The new parameters added to control the single merchant's behavior in v0.0.17 are:
the below says that the merchant will start the familiar zig zag pattern when it detects you and you are <= 3000m (NOTE: this value is used in convoys also!)
MERCHANT_ZIGZAG_CONTACT_DISTANCE = 3000.0;
the below says that the merchant will go back to following it's waypoints when it's distance from you is >= 6000m
MERCHANT_CONTACT_DETECTED_WAYPOINTS_DISTANCE = 6000.0
the below is the base value of time for couse and speed changes. This value is also part of a Random function as the -min and max value of it. Value of Random function is added to base for final time (in minutes)
MERCHANT_CONTACT_DETECTED_COURSE_SPEED_CHANGE_TIME = 2.0
the below is the -min and max values of a Random function for determing the offset from current course for new course
MERCHANT_CONTACT_DETECTED_COURSE_CHANGE = 12.0
the below is the min value of a Random function for the speed change
MERCHANT_CONTACT_DETECTED_SPEED_CHANGE_MIN = 0.25
the below is the max value of the Random function above for the speed change
MERCHANT_CONTACT_DETECTED_SPEED_CHANGE_MAX = 1.0

need a few volunteers to test v0.0.17 before I release it as the changes are drastic from v0.0.16. PM me.
TheDarkWraith is offline   Reply With Quote
Old 08-15-10, 11:48 AM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

ok volunteers not needed. Works absolutely beautiful Convoy will scatter as each merchant ship is taking their own evasive maneuvers and speed changes. As each merchant ship enters into the safe zone it regroups in the convoy where it originally was (position in convoy) Time to package up v0.0.17 for release
TheDarkWraith is offline   Reply With Quote
Old 08-15-10, 12:13 PM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

v0.0.17 released. See post #1 for details
TheDarkWraith is offline   Reply With Quote
Old 08-15-10, 01:35 PM   #5
Kromus
Lieutenant
 
Join Date: Mar 2007
Posts: 250
Downloads: 142
Uploads: 0
Default

Just to be sure, if I want to change difficulty should I change any of these values between 0-1.0?

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;

Nothing else needs to be changed there? No other values in init.aix?
Kromus is offline   Reply With Quote
Old 08-15-10, 01:41 PM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Kromus View Post
Just to be sure, if I want to change difficulty should I change any of these values between 0-1.0?

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;

Nothing else needs to be changed there? No other values in init.aix?
that's all you have to change for difficulty. You decide how difficult you want each sensor of the ship's to be. Did I make it too easy
TheDarkWraith is offline   Reply With Quote
Old 08-15-10, 01:48 PM   #7
Kromus
Lieutenant
 
Join Date: Mar 2007
Posts: 250
Downloads: 142
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
that's all you have to change for difficulty. You decide how difficult you want each sensor of the ship's to be. Did I make it too easy
Ok, thx, just looked through that file and there are much more lines so I just wanted to be sure if it`s really that easy
Kromus 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 04: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.