AI file error for Japan

Post bug reports and ask for tech support here.

Moderators: Joel Billings, JanSorensen

Post Reply
mcaryf
Posts: 168
Joined: Fri Jul 11, 2003 3:29 pm
Location: Uk

AI file error for Japan

Post by mcaryf »

I have been trying out my idea to create a Kamikaze unit out of the Japanese TAC AIR. In order to do this I have played a number of hands off games having modded the AI.TXT file to make the Japanese start building Kamikaze's after 1943. I was surprised to find that my change to the AI.TXT file seemed to have no effect although I was sure I was doing it right:

AI_BUILD,PLAYER_JAP,TAC AIR,2,3,AI_B_FLAG_AFTER,1943,1,0,0,250

I then examined the lines above and I found stray commas at the end of two of the preceding lines (for HEAVY AIR and CARRIER AIR) as follows:

AI_BUILD,PLAYER_JAP,TRANSPORT FLEET,2,3,AI_B_FLAG_BEFORE,1942,1
AI_BUILD,PLAYER_JAP,ARTILLERY,1,2,AI_B_FLAG_AFTER,1942,1,0,0,75
AI_BUILD,PLAYER_JAP,HEAVY AIR,1,2,AI_B_FLAG_AFTER,1942,1,
AI_BUILD,PLAYER_JAP,INFANTRY,2,3,AI_B_FLAG_BEFORE,1942,1
AI_BUILD,PLAYER_JAP,CARRIER AIR,1,2,AI_B_FLAG_AFTER,1942,1,
AI_BUILD,PLAYER_JAP,TAC AIR,1,2,AI_B_FLAG_AFTER,1941,1,0,0,50
AI_BUILD,PLAYER_JAP,MILITIA,1,1,AI_B_FLAG_AFTER,1942,1,0,0,50

I am reasonably sure that I did not inadvertently add these myself as I copied away the AI.TXT file before amending it.

In any event I have removed the commas and sure enough the Japanese started to build my Kamikaze TAC AIR unit.

I would be interested to know if this is a bug and if so how much of the AI instructions will have been lost as a result of it.

For anybody interested the Kamikaze unit does give some interesting results - it is a cost 1 TAC AIR unit with relatively poor values except for Sea Attack. It needs the Japanese to have bigger populations to build enough Kamikazes so I added 3 population points for Korea, 1 for Formosa and 1 for Ryukwu and took one away from Honshu, so a net gain of 4 points. All these additions are quite legitimate (except Ryukwu) in terms of the actual populations of the time. The last run through resulted in the Japanese building a total of 12 Kamikaze units and not being finally defeated until Summer 1947.

Mike
JanSorensen
Posts: 2536
Joined: Sun May 01, 2005 10:18 pm
Location: Aalborg, Denmark

RE: AI file error for Japan

Post by JanSorensen »

Good catch on the possible error. I am adding this to the bug list to have it looked into.
Post Reply

Return to “Gary Grigsby's World at War - Support”