Andy Mac
Posts: 13621
Joined: 5/12/2004 From: Alexandria, Scotland Status: online
|
OK going to write up a few notes of what I did when I wrote the downfall AI v 1. The first thing to note is doing the AI for a small map scenario is a lot easier than a full campaign one. The AI depends on ships being in a given loaction to help it form TF's and while it has some teleporting ability its not great. Key tools when writing AI scripts 1. you will need to run them tweak, run them tweak etc etc. 2. you need to know how to debud the Ai by knowing where the data comes from. The AI debugger -a$$um3 extension provides the land debug file 1003. - 10th Army - II US Corps, ACTIVE, target Chichi-jima, ds 451202, de 460201, prev 00, bt 611, wait 59, taav 0, tdav 4, side Allied *************** <<<<< Assault Units >>>>> 5925. - mod 1003, hq 5922, tf 0000, delay 000 <II US> ship 5258, dest none, target Chichi-jima 5927. - mod 1003, hq 5925, tf 0000, delay 000 <II Corps Combat> ship 5260, dest none, target Chichi-jima 5931. - mod 1003, hq 5925, tf 0000, delay 000 <24th (Sep) Infantry> ship 5263, dest none, target Chichi-jima 5932. - mod 1003, hq 5925, tf 0000, delay 000 <37th (Sep) Infantry> ship 5264, dest none, target Chichi-jima 5933. - mod 1003, hq 5925, tf 0000, delay 000 <102nd(Sep) Infantry> ship 5265, dest none, target Chichi-jima 5937. - mod 1003, hq 5922, tf 0000, delay 000 <193rd Tank> ship 5266, dest none, target Chichi-jima 5943. - mod 1003, hq 5925, tf 0000, delay 000 <93rd Infantry> ship 5150, dest none, target Chichi-jima <<<<< Air Group Units >>>>> <<<<< Defense Units >>>>> 5958. - mod 1003, hq 104, tf 0000, delay 000 <1st Tac Air Force> loc Kanoya, dest none, sb Kanoya, target Kanoya 5964. - mod 1003, hq 5958, tf 0000, delay 000 <1st RAAF M/W Sqn> loc Amami Oshima, dest none, sb Amami Oshima, target Amami Oshima 5965. - mod 1003, hq 5958, tf 0000, delay 000 <10th RAAF M/W Sqn> loc Daito Shoto, dest none, sb Daito Shoto, target Daito Shoto 5966. - mod 1003, hq 5958, tf 0000, delay 000 <11th RAAF M/W Sqn> loc Tanegashima, dest none, sb Tanegashima, target Tanegashima 5958. - mod 1003, hq 104, tf 0000, delay 000 <1st Tac Air Force> loc Kanoya, dest none, sb Kanoya, target Kanoya 5959. - mod 1003, hq 5958, tf 0000, delay 000 <1st TAF> loc Kanoya, dest none, sb Kanoya, target Kanoya 5960. - mod 1003, hq 5958, tf 0000, delay 000 <72nd RAAF Wing> loc Amami Oshima, dest none, sb Amami Oshima, target Amami Oshima 5961. - mod 1003, hq 5958, tf 0000, delay 000 <73rd RAAF Wing> loc Daito Shoto, dest none, sb Daito Shoto, target Daito Shoto 5962. - mod 1003, hq 5958, tf 0000, delay 000 <1st Fgtr RAAF Wing> loc Tanegashima, dest none, sb Tanegashima, target Tanegashima 5971. - mod 1003, hq 5958, tf 0000, delay 000 <32nd Australian Lt> loc Kanoya, dest none, sb Kanoya, target Kanoya 5972. - mod 1003, hq 5958, tf 0000, delay 000 <2nd Australian Hvy> loc Kanoya, dest none, sb Kanoya, target Kanoya 5973. - mod 1003, hq 5958, tf 0000, delay 000 <20th RAAF> loc Kanoya, dest none, sb Kanoya, target Kanoya 5974. - mod 1003, hq 5958, tf 0000, delay 000 <10 RAAF> loc Vigan, dest none, sb Oita, target Oita 5968. - mod 1003, hq 5958, tf 0000, delay 000 <6th RAAF> loc Daito Shoto, dest none, sb Daito Shoto, target Daito Shoto 5969. - mod 1003, hq 5958, tf 0000, delay 000 <9th RAN> loc Kanoya, dest none, sb Kanoya, target Kanoya End of Module 1003____________________________________ The output of that looks like the text above. The second area is to know that when an AI TF is under command of a script the name of the script tells you which AI script has it under command. Air units in the bottom left on the group screen tells you which AI script a given air group is operating under. So 1stly work out HOW to find out stuff.
|