Starting wesnoth from the command line with AI sides
Moderator: Forum Moderators
- Pentarctagon
- Project Manager
- Posts: 5564
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Starting wesnoth from the command line with AI sides
I'm trying to start wesnoth via the command line with this:
which based on my reading of --help should have it start on the Freelands with boths sides as AIs, however both sides are still human controlled. What am I doing wrong?
Code: Select all
./wesnoth -m --exit-at-end --controller 1:ai_default_rca --controller 2:ai_default_rca --era era_default
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: Starting wesnoth from the command line with AI sides
The blank space in
--controller 1:ai_default_rca
looks suspicious to me.- Pentarctagon
- Project Manager
- Posts: 5564
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Starting wesnoth from the command line with AI sides
Removing the space causes the error:
The --help description also has it with the space:
Code: Select all
Error in command line: unrecognised option '--controller1:ai_default_rca'
Code: Select all
--controller arg selects the controller for this side. <arg> should have format side:value
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: Starting wesnoth from the command line with AI sides
There is some part of the script that run freelands with two ai sides this each time someone makes a commit, but I can't remember exactly what the syntax is...
Code: Select all
travis.yml
- Pentarctagon
- Project Manager
- Posts: 5564
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Starting wesnoth from the command line with AI sides
It looks like it's in play_test_executor.sh, which has:
Specifying a particular ai would probably be with --ai-config or --algorithm then.
Code: Select all
--controller 1:ai --controller 2:ai
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code