Page 1 of 1

Is their a way to make the AI play against the AI

Posted: Wed Apr 06, 2022 9:22 pm
by Lothos
Can you make both Allies and Axis AI controlled? Is that possible

Re: Is their a way to make the AI play against the AI

Posted: Wed Apr 06, 2022 11:49 pm
by Hubert Cater
Yes if you press F3 before the game starts, or actually at anytime during the game, the game will play AI vs AI. If it is currently your turn and you press F3, the game will not begin AI vs AI until you hit end turn.

Using F1 will keep track of saves for every turn, and using F2 will create logs to keep track of all kinds of AI and game play data.

The files can be accessed in your USER documents folder for the game, e.g. where you find your saves on your PC for the game.

Re: Is their a way to make the AI play against the AI

Posted: Thu Apr 07, 2022 12:01 am
by Elessar2
Do those logs keep track of builds and tech purchases (diplo too)? That is VERY helpful, HC.

Re: Is their a way to make the AI play against the AI

Posted: Thu Apr 07, 2022 12:02 am
by Lothos
Hubert Cater wrote: Wed Apr 06, 2022 11:49 pm Yes if you press F3 before the game starts, or actually at anytime during the game, the game will play AI vs AI. If it is currently your turn and you press F3, the game will not begin AI vs AI until you hit end turn.

Using F1 will keep track of saves for every turn, and using F2 will create logs to keep track of all kinds of AI and game play data.

The files can be accessed in your USER documents folder for the game, e.g. where you find your saves on your PC for the game.
Awesome is their a way to break it out of the AI vs AI loop so you can see whats going on?

Re: Is their a way to make the AI play against the AI

Posted: Thu Apr 07, 2022 12:18 am
by Hubert Cater
Elessar2 wrote: Thu Apr 07, 2022 12:01 am Do those logs keep track of builds and tech purchases (diplo too)? That is VERY helpful, HC.
Yes I find it very helpful indeed when building up and testing the AI as it keeps track of the following:

planning (including what Global Variable values have been assigned for the duration of the game)
decisions
diplomacy
research
weather
summaries (all in game summary messages)

I would suggest deleting the created debuglogs folder when you are done and before you start a new game as the data is just appended. This is helpful when you pause a test and start it up again, but not so much when you start a fresh game as you could lose track of where one game ends and the next game begins in the logs.

Re: Is their a way to make the AI play against the AI

Posted: Thu Apr 07, 2022 12:19 am
by Hubert Cater
Lothos wrote: Thu Apr 07, 2022 12:02 am Awesome is their a way to break it out of the AI vs AI loop so you can see whats going on?
Yes, just hit F3 again and it will break out on its own after the end of the default AI turn, e.g. this turns off AI vs AI mode and will return to the human player turn as soon as it logically can.

Re: Is their a way to make the AI play against the AI

Posted: Fri Apr 08, 2022 1:02 am
by Lothos
Hubert Cater wrote: Thu Apr 07, 2022 12:19 am
Lothos wrote: Thu Apr 07, 2022 12:02 am Awesome is their a way to break it out of the AI vs AI loop so you can see whats going on?
Yes, just hit F3 again and it will break out on its own after the end of the default AI turn, e.g. this turns off AI vs AI mode and will return to the human player turn as soon as it logically can.
OMG, this has really helped me speed things up with the F3 and F1 commands.

THANK YOU
THANK YOU!!!

AND THANK YOU!!! :)

Re: Is their a way to make the AI play against the AI

Posted: Fri Apr 08, 2022 2:28 am
by Hubert Cater
Great and glad to hear it is this helpful :D

Re: Is their a way to make the AI play against the AI

Posted: Tue Apr 26, 2022 3:47 pm
by Batavian
Great question. And thanks to Hubert for making this possible. I am trying this. It will be interesting to see the outcome.

Re: Is their a way to make the AI play against the AI

Posted: Wed Apr 27, 2022 12:57 pm
by pzgndr
Lothos wrote: Fri Apr 08, 2022 1:02 am OMG, this has really helped me speed things up with the F3 and F1 commands.
This feature has been available for years. Personally, I would run AI-AI games overnight for my Advanced Third Reich mod with both sides on default difficulty and then review the game progress at various historical points in 1941, 1942, 1943, and 1944. See if the Axis and Allies were on track, and if not then why. Then I could adjust AI strategies, modify CTVs if certain land/air/naval combats seemed out of whack, or add unit events to handicap the computer opponent as needed. My philosophy being that the default AI should be able to provide a reasonably competitive historical game with some variability thrown in. Modders should all be using F1, F2, and F3 to playtest their campaigns for optimal performance.