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

Please post here for questions and discussion about modding for Strategic Command.
Post Reply
User avatar
Lothos
Posts: 1243
Joined: Tue May 23, 2006 8:22 pm

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

Post by Lothos »

Can you make both Allies and Axis AI controlled? Is that possible
User avatar
Hubert Cater
Posts: 5986
Joined: Mon Jul 22, 2013 11:42 am
Contact:

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

Post 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.
User avatar
Elessar2
Posts: 1440
Joined: Wed Nov 30, 2016 12:35 am

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

Post by Elessar2 »

Do those logs keep track of builds and tech purchases (diplo too)? That is VERY helpful, HC.
User avatar
Lothos
Posts: 1243
Joined: Tue May 23, 2006 8:22 pm

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

Post 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?
User avatar
Hubert Cater
Posts: 5986
Joined: Mon Jul 22, 2013 11:42 am
Contact:

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

Post 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.
User avatar
Hubert Cater
Posts: 5986
Joined: Mon Jul 22, 2013 11:42 am
Contact:

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

Post 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.
User avatar
Lothos
Posts: 1243
Joined: Tue May 23, 2006 8:22 pm

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

Post 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!!! :)
User avatar
Hubert Cater
Posts: 5986
Joined: Mon Jul 22, 2013 11:42 am
Contact:

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

Post by Hubert Cater »

Great and glad to hear it is this helpful :D
Batavian
Posts: 45
Joined: Mon Jul 19, 2004 12:59 am

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

Post by Batavian »

Great question. And thanks to Hubert for making this possible. I am trying this. It will be interesting to see the outcome.
pzgndr
Posts: 3679
Joined: Thu Mar 18, 2004 12:51 am
Location: Delaware

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

Post 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.
Bill Macon
Empires in Arms Developer
Strategic Command Developer
Post Reply

Return to “Scenario Design and Modding”