Getting the Scoring Overview for Offline Play


Problems running or configuring the software, commands & options, compiling, different platforms, using the interface, documentation, etc.

Lair Larrikin

Posts: 23

Joined: Wednesday, 7th September 2011, 17:43

Post Sunday, 19th February 2012, 09:48

Getting the Scoring Overview for Offline Play

Hello,

i was wondering if it possible to get an offline scoring overview like this :

http://crawl.akrasiac.org/scoring/players/maxxillo.html

working for the offline version of the game, maybe a bit of adjustement to the destination folder of the code ?
is it possible to get the generation code ?

Thx :)

Spider Stomper

Posts: 243

Joined: Sunday, 28th August 2011, 14:04

Post Sunday, 19th February 2012, 17:46

Re: Getting the Scoring Overview for Offline Play

http://crawl.develz.org/info/index.php?q=scoring

I think html.py in http://crawl.akrasiac.org/scoring/code is the script that makes that HTML page.

For this message the author CommanderC has received thanks:
rchandra

Lair Larrikin

Posts: 23

Joined: Wednesday, 7th September 2011, 17:43

Post Monday, 20th February 2012, 22:58

Re: Getting the Scoring Overview for Offline Play

thx for the reply i watched both the links, but i didnt get how to use that :(

could u help me more ?

Spider Stomper

Posts: 243

Joined: Sunday, 28th August 2011, 14:04

Post Tuesday, 21st February 2012, 17:58

Re: Getting the Scoring Overview for Offline Play

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
- git

In 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!

For this message the author CommanderC has received thanks:
rchandra

Lair Larrikin

Posts: 23

Joined: Wednesday, 7th September 2011, 17:43

Post Wednesday, 22nd February 2012, 20:00

Re: Getting the Scoring Overview for Offline Play

Thx a lot !!
This is a lot of reading and i need some time to try it, but i am sure it will work !!
I have Windows and maybe i have to' change things

I will be back soon after tried it

Lair Larrikin

Posts: 23

Joined: Wednesday, 7th September 2011, 17:43

Post Wednesday, 22nd February 2012, 23:31

Re: Getting the Scoring Overview for Offline Play

i tried to figure out on how to get all working, but sadly i am really not that good with linux and traducing linux things in windows things :(

i will appreciate if u could translate in some more windows like language all the step u writed ( i know that they are right but i am just too bad :( )

Thx anyway if u cannot

Lair Larrikin

Posts: 23

Joined: Wednesday, 7th September 2011, 17:43

Post Wednesday, 29th February 2012, 15:25

Re: Getting the Scoring Overview for Offline Play

i am still here hoping someone can explain better for windows usage :(

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 12 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.