It is currently 25 Apr 2024, 00:41
   
Text Size

Commander AI simulations

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Commander AI simulations

Postby 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!
edhstats
 
Posts: 4
Joined: 18 Nov 2015, 18:10
Has thanked: 1 time
Been thanked: 0 time

Re: Commander AI simulations

Postby 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

Postby 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).
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Commander AI simulations

Postby 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!
edhstats
 
Posts: 4
Joined: 18 Nov 2015, 18:10
Has thanked: 1 time
Been thanked: 0 time

Re: Commander AI simulations

Postby 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.
edhstats
 
Posts: 4
Joined: 18 Nov 2015, 18:10
Has thanked: 1 time
Been thanked: 0 time

Re: Commander AI simulations

Postby friarsol » 19 Nov 2015, 20:17

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?
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Commander AI simulations

Postby 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*
edhstats
 
Posts: 4
Joined: 18 Nov 2015, 18:10
Has thanked: 1 time
Been thanked: 0 time

Re: Commander AI simulations

Postby friarsol » 19 Nov 2015, 20:43

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.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Commander AI simulations

Postby 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


Return to Developer's Corner

Who is online

Users browsing this forum: Google [Bot] and 70 guests


Who is online

In total there are 71 users online :: 1 registered, 0 hidden and 70 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: Google [Bot] and 70 guests

Login Form