Author |
Topic: AEI - Could not open gameroom.cfg (Read 3435 times) |
|
Muzz
Forum Junior Member
Arimaa player #7559
Gender:
Posts: 6
|
|
AEI - Could not open gameroom.cfg
« on: May 4th, 2013, 8:08pm » |
Quote 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:
Posts: 883
|
|
Re: AEI - Could not open gameroom.cfg
« Reply #1 on: May 5th, 2013, 2:50am » |
Quote 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:
Posts: 1016
|
|
Re: AEI - Could not open gameroom.cfg
« Reply #2 on: May 5th, 2013, 4:10am » |
Quote 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:
Posts: 6
|
|
Re: AEI - Could not open gameroom.cfg
« Reply #3 on: May 5th, 2013, 6:28am » |
Quote 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:
Posts: 883
|
|
Re: AEI - Could not open gameroom.cfg
« Reply #4 on: May 5th, 2013, 12:08pm » |
Quote Modify
|
May be it is in bot section the command to run contains just -?
|
|
IP Logged |
|
|
|
Muzz
Forum Junior Member
Arimaa player #7559
Gender:
Posts: 6
|
|
Re: AEI - Could not open gameroom.cfg
« Reply #5 on: May 5th, 2013, 4:41pm » |
Quote 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:
Posts: 1016
|
|
Re: AEI - Could not open gameroom.cfg
« Reply #6 on: May 7th, 2013, 4:14am » |
Quote 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:
Posts: 6
|
|
Re: AEI - Could not open gameroom.cfg
« Reply #7 on: May 7th, 2013, 8:31am » |
Quote Modify
|
Thank you very much, it's now working perfectly for me!
|
|
IP Logged |
|
|
|
|