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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 09-24-10, 07:06 AM   #11
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Antar View Post
Fast tests with IRAI 0.26:
Mission type: small convoy - 8 merchants with 5 escorts
All unit competent level: 1942 / equipmment: middle war

+ Merchants are not stopping now,
+ Part of ecsort are attacking my uboat,
+ Convoy changes course at this same direction,

- Escort keep max 14kt (when run to looking area),
- Escort do not loop to check last known postion of uboat,
- Convoy change direction too slow
In part of the tactics there is a function that tells the AI to use full speed until it reaches x distance from contact. During this full speed run it ignores whether it has the contact detected or not. It's main goal is just to reach the last position of the contact it detected (and hopefully detect the contact on the way to this destination). There is a maximum amount of time that a contact can be lost before the current tactic is reset or the escort is told to resume following waypoints. If at the end of this full speed run that time has been exceeded then the escort will immediately return to following waypoints (which can mean returning back to convoy).

There are parameters in the init.aix file that one can adjust to tweak the AI for testing purposes. Try playing with all the values to help me adjust the AI. For convoy changing direction there are many parameters that affect this:
CONVOY_LEADER_ACTION_SPEED_CHANGE_MIN = 0.4;
CONVOY_LEADER_ACTION_SPEED_CHANGE_MAX = 0.8;
CONVOY_LEADER_ACTION_COURSE_CHANGE = 40.0;
CONVOY_LEADER_ACTION_COURSE_SPEED_CHANGE_TIME = 4.0;
CONVOY_LEADER_CONTACT_LOST_CONTINUE_ACTION_TIME = 600.0; # 10 mins
MERCHANT_CONVOY_LEADER_ACTION_SPEED_CHANGE_MIN = 0.5;
MERCHANT_CONVOY_LEADER_ACTION_SPEED_CHANGE_MAX = 0.9;
MERCHANT_CONVOY_LEADER_ACTION_COURSE_CHANGE = 45.0;
MERCHANT_CONVOY_LEADER_ACTION_COURSE_SPEED_CHANGE_ TIME = 2.0;
MERCHANT_CONVOY_LEADER_CONTACT_LOST_CONTINUE_ACTIO N_TIME = 600.0; # 10 mins
TheDarkWraith is offline   Reply With Quote
 


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 05:27 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.