Commander AI simulations
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Commander AI simulations
by edhstats » 18 Nov 2015, 18:43
Hi, this is my first post to the forum having only stumbled on Forge a couple of days ago and I think it's a pretty amazing program so well done to the developers involved!
I have been looking at the AI vs AI features and I am interested in running simulations of 4 player commander games using my decklists. I googled and found this thread:
viewtopic.php?t=11212
I naturally just tried adding a third and fourth deck to the parameters to see what would happen, but it only performed the simulation with two decks.
I know I can run 4 player simulations in the GUI but I am not interested in seeing the games played out in front of me as I want to run many games and it takes too long to run them in the GUI.
So is there another command I can run that allows 4 player commander games through the command line?
Many thanks in advance!
I have been looking at the AI vs AI features and I am interested in running simulations of 4 player commander games using my decklists. I googled and found this thread:
viewtopic.php?t=11212
I naturally just tried adding a third and fourth deck to the parameters to see what would happen, but it only performed the simulation with two decks.
I know I can run 4 player simulations in the GUI but I am not interested in seeing the games played out in front of me as I want to run many games and it takes too long to run them in the GUI.
So is there another command I can run that allows 4 player commander games through the command line?
Many thanks in advance!
Re: Commander AI simulations
by friarsol » 18 Nov 2015, 21:46
I'll take a look. I know Max isn't working on the project anymore, but if the simulations are still working just fine (as it sounds), it shouldn't be too hard to allow the simulations to play out more than 2 players.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Commander AI simulations
by friarsol » 19 Nov 2015, 04:29
Ok, soo.. I've added multiple players, and different formats capability to the Simulator you linked to, which has changed its arguments slightly.. As of r30347,
forge.exe sim -d <deck1[.dck]> ... <deckX[.dck]> -n [N] -f [F]
So for example, in my testing I was running...
forge.exe sim -d "Heavenly Inferno" "Political Puppets" "Devour for Power" -f Commander
which plays 1 game of Commander with those three decks (that I happen to have in that deck store).
forge.exe sim -d <deck1[.dck]> ... <deckX[.dck]> -n [N] -f [F]
So for example, in my testing I was running...
forge.exe sim -d "Heavenly Inferno" "Political Puppets" "Devour for Power" -f Commander
which plays 1 game of Commander with those three decks (that I happen to have in that deck store).
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Commander AI simulations
by edhstats » 19 Nov 2015, 17:46
Hi Friarsol, thanks for the reply. I wasn't expecting one so quickly. This functions is exactly what I was looking for thank you!
Re: Commander AI simulations
by edhstats » 19 Nov 2015, 19:54
Did the AIs cast their commanders when you tested the function? The AIs don't seem to be casting their commanders when I know they do through the GUI. Just checking with you first before I put it on the bug thread.
Re: Commander AI simulations
by friarsol » 19 Nov 2015, 20:17
I didn't really look that closely, I was just making sure the game fired, and seemed to complete successfully. It's the same AI code, so I don't see why that would matter?edhstats wrote:Did the AIs cast their commanders when you tested the function? The AIs don't seem to be casting their commanders when I know they do through the GUI. Just checking with you first before I put it on the bug thread.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Commander AI simulations
by edhstats » 19 Nov 2015, 20:41
No worries! I just wondered, as in 20 games with different decks none of the commanders were ever cast. *shrug*
Re: Commander AI simulations
by friarsol » 19 Nov 2015, 20:43
I'll take a look when I get a chance. Maybe it's not setting up a Commander game properly.edhstats wrote:No worries! I just wondered, as in 20 games with different decks none of the commanders were ever cast. *shrug*
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Commander AI simulations
by friarsol » 19 Nov 2015, 22:14
Ah I figured it out. A few more things needed to be initialized for variants to actually be available. Should be fixed in r30358
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
9 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 70 guests