Page 1 of 1

Commander AI simulations

PostPosted: 18 Nov 2015, 18:43
by edhstats
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!

Re: Commander AI simulations

PostPosted: 18 Nov 2015, 21:46
by friarsol
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.

Re: Commander AI simulations

PostPosted: 19 Nov 2015, 04:29
by friarsol
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).

Re: Commander AI simulations

PostPosted: 19 Nov 2015, 17:46
by edhstats
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

PostPosted: 19 Nov 2015, 19:54
by edhstats
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

PostPosted: 19 Nov 2015, 20:17
by friarsol
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.
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?

Re: Commander AI simulations

PostPosted: 19 Nov 2015, 20:41
by edhstats
No worries! I just wondered, as in 20 games with different decks none of the commanders were ever cast. *shrug*

Re: Commander AI simulations

PostPosted: 19 Nov 2015, 20:43
by friarsol
edhstats wrote:No worries! I just wondered, as in 20 games with different decks none of the commanders were ever cast. *shrug*
I'll take a look when I get a chance. Maybe it's not setting up a Commander game properly.

Re: Commander AI simulations

PostPosted: 19 Nov 2015, 22:14
by friarsol
Ah I figured it out. A few more things needed to be initialized for variants to actually be available. Should be fixed in r30358