It's still a bit ugly, but I have managed to get this stuff working in my PC. This is what I've done:
First, you will need to install these programs:
-
mysql-
mysql-python-
python2-mako-
gitIn Archlinux, I just type this:
- Code:
$ sudo pacman -S mysql mysql-python python2-mako git
Now, launch mysqld:
- Code:
$ sudo rc.d start mysqld
Run mysql, and make an user called 'scoring' and database with the same name:
- Code:
$ mysql -u root -p
> CREATE USER 'scoring'@'localhost';
> CREATE DATABASE scoring;
> GRANT ALL ON scoring.* TO 'scoring'@'localhost';
Get the scoring code that is running in crawl.akrasiac.org:
- Code:
$ mkdir scoring
$ cd scoring
$ git clone http://crawl.akrasiac.org/scoring/code/.git/
Make the tables:
- Code:
$ cd code
$ mysql -uscoring -p scoring < database.sql
Open crawl_utils.py and make these changes:
- Replace snark with your username.
- set RAWDATA_PATH = '/home/username/path/to/your/saves'
Open scload.py and set the variables LOG and MILESTONES to these values:
- Code:
LOG=['/home/username/path/to/your/saves/logfile']
MILESTONES=[]
Open morgue.py and add this to the MORGUE_BASES array:
- Code:
[ R(r'logfile'), 'localhost'],
Run this command:
- Code:
$ python2 scbootstrap.py
Get this
file and place it in the scoring/code/scoring folder.
Open scoring/code/scoring/players/yourname.html in your web browser.
Enjoy!