timdine wrote:That sounds great! Your username looks familiar, as in related to where I got some of the source for these things.
These are the versions I'm trying to make work now. They look like they're the versions you continued on from the originals. I almost had the original running, but I'm struggling a bit with the relationship of ailadder/springgrid. Is it right to assume ailadder is the front end for springgrid now?
https://github.com/gajop/springgrid
https://github.com/gajop/ailadder
https://github.com/gajop/botrunner
That's great, since you're using my modifications I can probably help you out, just it's been a while since I've last touched it, so things might be fuzzy.
Those repos are correct, but you don't need ailadder (as you'll see below).
timdine wrote:
Downloaded ailadder, unzipped and run setupwebsite.py I choose a directory to install the website to, files copy. I choose a database to use. I choose mysql (v5.6 default install). I get positive feedback that the database is populated and "This configuration completed."
Installed Apache 2.2, configured Apache to execute py.
Code: Select all
Alias /ailadder "C:/Utils/ailadder"
<Directory "C:/Utils/ailadder">
AllowOverride All
Options Indexes FollowSymLinks ExecCGI
AddHandler cgi-script .cgi .py
Order allow,deny
Allow from all
</Directory>
You can completely drop this step, you no longer need apache or ailadder.
timdine wrote:
Downloaded botrunner, unzipped the botrunner folder. Run botrunner.py using python 3.3. Running it with 2.7 it gives and error with urllib.request and a few others packages. I did some fiddling to get the config to go. End result is a config.py with the appropriate values filled into the fields. Run bot runner, it can't find botrunner_webservice which doesn't exist in your repository on github (I'm assuming this is somehow dealt with in springgrid).
Correct, the botrunner_webservice is a service offered by springgrid.
timdine wrote:
ailadder opens in a browser. I can login, view leagues, see accounts, etc. There are no registered botrunners though which makes sense given where I am.
Suggestions where to go next? I'm not entirely clear where springgrid fits into the mix.
I did have the original ailadder and botrunner registering, but not returning a good response to the ping function in particular. For this run through I've grabbed your latest cut of the apps since I'm assuming it's the most recent version. Thanks in advance for any suggestions you may have.
OK, so here's the thing, in the hugh's original architecture you had three components: 1) springgrid - which was used to schedule matches, 2) botrunners - which executed those matches and 3) ailadder - a separate webserver which was the frontend to springgrid, and allowed you to make leagues and similar.
The only problem is, it was never really done completely. You never had a concept of leagues - which would allow you to queue a large number of games between AIs. Such an architecture turned out to struggle when having to queue that many matches (the springgrid <-> ailadder communication was slow, and I wasn't smart enough to do that in separate threads).
In any case, it turned out needlessly complex to have both a springgrid and an ailadder webserver, so I merged that into a single one (springgrid), and that's all what you need now.
Also, since I didn't really like using cgibin in today's day and age, I rewrote springgrid to use pylons instead (got slightly annoyed later that they deprecated that for pyramid, but that's another story).
So all you need to do is setup springgrid now, and have botrunners connect to it :)