View Single Post
Old 09-24-10, 07:06 AM   #838
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
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