Welcome, Guest. Please Login or Register.
Nov 21st, 2017, 3:08pm

Home Home Help Help Search Search Members Members Login Login Register Register
Arimaa Forum AEI - Could not open gameroom.cfg


   Arimaa Forum
   Arimaa
   Bot Development
(Moderator: supersamu)
   AEI - Could not open gameroom.cfg
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: AEI - Could not open gameroom.cfg  (Read 2052 times)
Muzz
Forum Junior Member
**



Arimaa player #7559

   


Gender: male
Posts: 6
AEI - Could not open gameroom.cfg
« on: May 4th, 2013, 8:08pm »
Quote Quote Modify Modify

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!
IP Logged
Hippo
Forum Guru
*****




Arimaa player #4450

   


Gender: male
Posts: 875
Re: AEI - Could not open gameroom.cfg
« Reply #1 on: May 5th, 2013, 2:50am »
Quote Quote Modify Modify

on May 4th, 2013, 8:08pm, 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.
IP Logged

Janzert
Forum Guru
*****



Arimaa player #247

   


Gender: male
Posts: 1014
Re: AEI - Could not open gameroom.cfg
« Reply #2 on: May 5th, 2013, 4:10am »
Quote Quote Modify Modify

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
IP Logged
Muzz
Forum Junior Member
**



Arimaa player #7559

   


Gender: male
Posts: 6
Re: AEI - Could not open gameroom.cfg
« Reply #3 on: May 5th, 2013, 6:28am »
Quote Quote Modify Modify

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 ?
IP Logged
Hippo
Forum Guru
*****




Arimaa player #4450

   


Gender: male
Posts: 875
Re: AEI - Could not open gameroom.cfg
« Reply #4 on: May 5th, 2013, 12:08pm »
Quote Quote Modify Modify

May be it is in bot section the command to run contains just -?
IP Logged

Muzz
Forum Junior Member
**



Arimaa player #7559

   


Gender: male
Posts: 6
Re: AEI - Could not open gameroom.cfg
« Reply #5 on: May 5th, 2013, 4:41pm »
Quote Quote Modify Modify

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.
IP Logged
Janzert
Forum Guru
*****



Arimaa player #247

   


Gender: male
Posts: 1014
Re: AEI - Could not open gameroom.cfg
« Reply #6 on: May 7th, 2013, 4:14am »
Quote Quote Modify Modify

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
IP Logged
Muzz
Forum Junior Member
**



Arimaa player #7559

   


Gender: male
Posts: 6
Re: AEI - Could not open gameroom.cfg
« Reply #7 on: May 7th, 2013, 8:31am »
Quote Quote Modify Modify

Thank you very much, it's now working perfectly for me!
IP Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

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