Jump to content
  • 0

Trying to Make Tournement with .bat


tripleap74

Question

So, I am trying to use .bat files to simulate rounds of a tournament. Here is a sample of the kind of code I am currently using:

set rounds=1
set p1=Example1
set p2=Example2
set st=kfm.def
"mugen.exe"  -rounds %rounds% -p1 "%p1%" -p2 "%p2%" -s %st% -p1.color 1 -p2.color 2 -p1.ai 8 -p2.ai 8 

set rounds=1
set p1=Example3
set p2=Example4
set st=kfm.def
"mugen.exe"  -rounds %rounds% -p1 "%p1%" -p2 "%p2%" -s %st% -p1.color 1 -p2.color 2 -p1.ai 8 -p2.ai 8

The way I am currently doing this, I would have to manually change every name in the .bat file to then run another tournament. I was curious how to go about automating the process with something along the lines of reading a character list and looping down the character list. I’m sure there are other, better ways of doing this that I am not thinking of so any suggestions would be greatly appreciated.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...