Arimaa Forum (http://arimaa.com/arimaa/forum/cgi/YaBB.cgi)
Arimaa >> Bot Development >> AEI - Could not open gameroom.cfg
(Message started by: Muzz on May 4th, 2013, 8:08pm)

Title: AEI - Could not open gameroom.cfg
Post by Muzz on May 4th, 2013, 8:08pm
So, as the title might suggest, I've been attempting to set up a bot, and whenever I run gameroom.cfg I get the following error message-

Could not open 'gameroom.cfg'
this file must be readable and contain the configuration
for connecting to the gameroom.

This seems to be fairly self-explanatory (there is something wrong with the gameroom.cfg file) but all I have done to it is change the bot username and password. Am I missing out a step, or is something else going wrong ?

Thanks for taking the time to help me out!

Title: Re: AEI - Could not open gameroom.cfg
Post by Hippo on May 5th, 2013, 2:50am

on 05/04/13 at 20:08:30, Muzz wrote:
So, as the title might suggest, I've been attempting to set up a bot, and whenever I run gameroom.cfg I get the following error message-

Could not open 'gameroom.cfg'
this file must be readable and contain the configuration
for connecting to the gameroom.

This seems to be fairly self-explanatory (there is something wrong with the gameroom.cfg file) but all I have done to it is change the bot username and password. Am I missing out a step, or is something else going wrong ?

Thanks for taking the time to help me out!


I really don't know. I have it in the current directory together with gameroom.py which I run there and everything goes well.

Title: Re: AEI - Could not open gameroom.cfg
Post by Janzert on May 5th, 2013, 4:10am
You are trying to run gameroom.py right? I think so since that sounds like an error from it not the OS, but just to double check.

Anyway that error generally really means that gameroom.py couldn't even open the file. So the contents aren't even a concern yet. Offhand there are two things that seem likely. Since AEI doesn't come with a file called gameroom.cfg make sure you renamed or copied gameroom_example.cfg to the right name. The second thing is make sure you are running gameroom.py from the directory with the cfg file. Also in general unless you've done some work to setup python paths and such the config file needs to be in the AEI directory and gameroom.py run from there.

Janzert

Title: Re: AEI - Could not open gameroom.cfg
Post by Muzz on May 5th, 2013, 6:28am
Thanks for taking a look, I've got it working now. However, I now get a different error message saying

'-' is not recognized as an internal or external command, operable program or batch file.

Any ideas on this one ?

I realize I'm making a few assumptions at the moment, mainly that I can change the gameroom.cfg file and have it play a match online. Is this correct, or am I assuming too much ?

Title: Re: AEI - Could not open gameroom.cfg
Post by Hippo on May 5th, 2013, 12:08pm
May be it is in bot section the command to run contains just -?

Title: Re: AEI - Could not open gameroom.cfg
Post by Muzz on May 5th, 2013, 4:41pm
I'm pretty sure you're right on that. But what should it be ? I hadn't changed it at all. I simply wish to run the engine provided with the aei (board.py I think) in the gameroom and then build my own from there.

Title: Re: AEI - Could not open gameroom.cfg
Post by Janzert on May 7th, 2013, 4:14am
What is the cmdline set to in gameroom.cfg?

The sample engine supplied with AEI is called simple_engine.py and would need a cmdline looking something like:

cmdline = simple_engine.py

The sample just plays a random step game, but it's probably not very suitable for building a real bot off of.

Janzert

Title: Re: AEI - Could not open gameroom.cfg
Post by Muzz on May 7th, 2013, 8:31am
Thank you very much, it's now working perfectly for me!



Arimaa Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.