New Ripple's score server https://ripple.moe

Giuseppe Guerra 37a14e07cd .LETS. Enabled osu direct 1 week ago
common @ fbcc37e7de 5c89c62338 .HIDE. Update submodules 1 month ago
constants fae9b20eea .SCORES. Use levbod rather than bloodcat in osu!direct beatmaps listing/search 2 months ago
handlers 42ee513c27 .SCORES. .FIX. Check if ip is trusted when submitting and retrieving scores 2 weeks ago
helpers d8f4a36207 Switch from levbod to cheesegull for osu!direct api 2 months ago
objects cf2ced993e .LETS. .FIX. Strip LETS version string 2 months ago
pp 10fe21a79e .SCORES. General refactoring 3 months ago
pubSubHandlers 7726a018aa .SCORES. Cythonized some files 3 months ago
.gitignore a979180555 .SCORES. Add distutils setup file 3 months ago
.gitmodules 128cabe205 .HIDE. Change submodule url to new git server and use HTTPS instead of SSH - Nyo 2 months ago
.landscape.yaml 47810bd960 .HIDE. Update landscape config file 2 months ago
LICENSE 3480771dfd Update README and LICENSE 7 months ago
README.md fdb7b79807 Update README, add .landscape.yaml 3 months ago
__init__.py 1a9f412ddb First (uncomplete) release 11 months ago
full_build.sh 1b483029f5 Add full build script 3 months ago
lets.py 37a14e07cd .LETS. Enabled osu direct 1 week ago
personalBestCache.py f7547a64c3 .SCORES. .HIDE. Log personal best stuff as debug 4 months ago
requirements.txt 0f4117e6a7 .HIDE. Update requirements.txt 4 months ago
runserver.bat ddfc0e5afc .SCORES. More error checks in ripp 11 months ago
setup.py a979180555 .SCORES. Add distutils setup file 3 months ago
tomejerry.py 10fe21a79e .SCORES. General refactoring 3 months ago
userStatsCache.py 10fe21a79e .SCORES. General refactoring 3 months ago
version 570a1af4a4 .LETS. Disable osu direct 2 weeks ago

README.md

LETS Code Health

  • Origin: https://git.zxq.co/ripple/lets
  • Mirror: https://github.com/osuripple/lets

Latest Essential Tatoe Server

This server handles every non real time client feature, so:

  • Ingame scoreboards
  • Score submission
  • PP calculation through oppai (std) and wifipiano2 (mania)
  • Screenshots
  • Replays
  • osu!direct
  • Tillerino-like API

Requirements

  • Python 3.5
  • Cython
  • C compiler
  • MySQLdb (mysqlclient)
  • Tornado
  • Bcrypt
  • Progressbar2 (only for tomejerry.py )
  • Raven
  • Datadog
  • oppai

How to set up LETS

First of all, initialize and update the submodules

$ git submodule init && git submodule update

afterwards, install the required dependencies with pip

$ pip install -r requirements.txt

compile all *.pyx files to *.so or *.dll files using setup.py (distutils file)

$ python3 setup.py build_ext --inplace

then, run LETS once to create the default config file and edit it

$ python3 lets.py
$ nano config.ini

finally, configure oppai as described below.

How to set up oppai with LETS

LETS uses lolisamurai's oppai as pp calculator for std. We use a slightly modified version of oppai, you can find it here.
Go one directory above LETS (in the same directory where you have old-frontend, pep.py, lets and so on) and clone oppai inside the oppai folder, compile it with make and create the maps folder:

$ cd ..
$ git clone https://github.com/osuripple/oppai.git
$ cd oppai
$ make
$ chmod +x oppai
$ mkdir maps

Note: wifipiano (mania pp calculator) is tailor-made for LETS and doesn't require any configuration.

tomejerry.py

tomejerry.py is a tool that allows you to calculate pp for specific scores. It's extremely useful to do mass PP recalculations if you mess something up. It uses lets' config and packages, so make sure lets is installed and configured correctly before using it.
tomejerry supports a lot of parameters, the main ones are:

  • -r, to recalculate PP for every score on every game mode (only std and mania are supported at the moment)
  • -z to calculate PP for scores with 0 pp
  • -g x to recalculate PP for scores for x gamemode (0: std, 3: mania)
  • -i x to recalculate PP for score with x id
  • -n x to recalculate PP for scores submitted by user with x username
    For a full list of all the arguments supported by tomejerry, run python3 tomejerry.py --help

License

This project is licensed under the GNU AGPL 3 License.
See the "LICENSE" file for more information.
This project contains code taken by reference from osu-performance by Tom94.