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-29-11, 09:42 PM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

@ Sober - found a way to do what you were asking It's going to be a big improvement to the randomness of the AI

Another thing interesting is I found a problem with the fatigue model for the warships (non-merchants). Their fatigue was working but it wasn't 'fatigueing' fast enough....merchants were fine. This will be fixed in next version.
TheDarkWraith is offline   Reply With Quote
Old 01-29-11, 10:15 PM   #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 TheDarkWraith View Post
@ Sober - found a way to do what you were asking It's going to be a big improvement to the randomness of the AI

Another thing interesting is I found a problem with the fatigue model for the warships (non-merchants). Their fatigue was working but it wasn't 'fatigueing' fast enough....merchants were fine. This will be fixed in next version.
Will this happen on restarting a game or on the fly , every "NewContact'' changes the number etc ?

Last edited by THE_MASK; 01-29-11 at 10:29 PM.
THE_MASK is offline   Reply With Quote
Old 01-29-11, 10:35 PM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by sober View Post
Will this happen on restarting a game or on the fly , every "NewContact'' changes the number etc ?
Yes, every new contact. Here's why:

VISUAL_DIFFICULTY_MIN = 85;
VISUAL_DIFFICULTY_MAX = 100;
HYDROPHONE_DIFFICULTY_MIN = 85;
HYDROPHONE_DIFFICULTY_MAX = 100;
RADAR_DIFFICULTY_MIN = 85;
RADAR_DIFFICULTY_MAX = 100;
SONAR_DIFFICULTY_MIN = 85;
SONAR_DIFFICULTY_MAX = 100;
# for merchants
VISUAL_DIFFICULTY_MERCHANT_MIN = 85;
VISUAL_DIFFICULTY_MERCHANT_MAX = 100;
HYDROPHONE_DIFFICULTY_MERCHANT_MIN = 85;
HYDROPHONE_DIFFICULTY_MERCHANT_MAX = 100;
RADAR_DIFFICULTY_MERCHANT_MIN = 85;
RADAR_DIFFICULTY_MERCHANT_MAX = 100;
SONAR_DIFFICULTY_MERCHANT_MIN = 85;
SONAR_DIFFICULTY_MERCHANT_MAX = 100;

Notice that there's a min and max for each one. Every new contact picks a random number between min and max for each. How's that for random AI (those numbers get divided by 100 in the code)
TheDarkWraith is offline   Reply With Quote
Old 01-29-11, 10:44 PM   #4
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

SH5 just got a whole lot better , thank you sir .
THE_MASK is offline   Reply With Quote
Old 01-29-11, 10:47 PM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by sober View Post
SH5 just got a whole lot better , thank you sir .
oh and each watch rotation (after the 4 tiers of fatigue) picks new random numbers also
TheDarkWraith is offline   Reply With Quote
Old 01-29-11, 10:55 PM   #6
marleymen
Planesman
 
Join Date: Apr 2005
Location: Con dos cojones, ESPAÑA
Posts: 192
Downloads: 126
Uploads: 0
Default

You are very talented man.

Why don´t you send your CV to Ubisoft?
marleymen is offline   Reply With Quote
Old 01-29-11, 11:00 PM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by marleymen View Post
You are very talented man.

Why don´t you send your CV to Ubisoft?
by CV I'm assuming you mean resume? If so, I'm too overqualified to work there
TheDarkWraith is offline   Reply With Quote
Old 01-29-11, 10:55 PM   #8
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 TheDarkWraith View Post
oh and each watch rotation (after the 4 tiers of fatigue) picks new random numbers also
I was just going to suggest that , great minds think alike
THE_MASK 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:06 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.