Ripple's score server https://ripple.moe
python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Giuseppe Guerra 16aaf4c23c Merge branch 'master' of zxq.co:ripple/lets 2 weeks ago
common @ baa058465c Updated submodule common 2 months ago
constants Fix pp calc exception not being re-raised 2 months ago
handlers Get rid of the horrible == true and == false comparison 2 weeks ago
helpers Fix typo in config file (sentry dns -> dsn) 3 months ago
objects Get rid of the horrible == true and == false comparison 2 weeks ago
pp Rewritten tomejerry 4 months ago
pubSubHandlers .SCORES. Cythonized some files 1 year ago
secret @ 249d5a7553 Updated submodule secret 2 months ago
.gitignore Rewritten tomejerry 4 months ago
.gitmodules Force calc-no-replay branch for maniapp-osu-tools 4 months ago
.landscape.yaml .HIDE. Update landscape config file 1 year ago
LICENSE Update README and LICENSE 2 years ago
README.md Update README 4 months ago
full_build.sh Add full build script 1 year ago
lets.py Add comments 2 months ago
personalBestCache.py .SCORES. .HIDE. Log personal best stuff as debug 2 years ago
requirements.txt Update requests to 2.20.0 2 weeks ago
run.sh Use pyoppai rather than calling oppai as a subprocess 1 year ago
runserver.bat .SCORES. More error checks in ripp 2 years ago
setup.py Ignore pyx files in .pyenv 7 months ago
tomejerry.py Fix wrong query in tomejerry beatmapid recalculator 2 months ago
userStatsCache.py .SCORES. General refactoring 1 year ago
version 🔼 1.17.1 🔼 2 months ago

README.md

LETS Code Health

Latest Essential Tatoe Server

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

  • Ingame scoreboards
  • Score submission
  • Screenshots
  • Replays
  • osu!direct, thanks to cheesegull
  • Tillerino-like API (partially broken)
  • osu!standard and taiko pp calculation with oppai-ng, made by Franc[e]sco
  • osu!mania pp calculation with a slightly edited version of osu-tools, made by the osu! team
  • catch the beat pp calculation with catch-the-pp, made by Sunpy and cythonized by Nyo

Requirements

  • Python 3.6
  • Cython
  • C compiler

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). This compiles catch-the-pp as well.

$ 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, compile oppai-ng (inside pp/oppai-ng) and osu-tools (inside pp/maniapp-osu-tools).

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.

usage: tomejerry.py [-h]
                    [-r | -z | -i ID | -m MODS | -g GAMEMODE | -u USERID | -b BEATMAPID | -fhd]
                    [-w WORKERS] [-cs CHUNKSIZE] [-v]

pp recalc tool for ripple, new version.

optional arguments:
  -h, --help            show this help message and exit
  -r, --recalc          calculates pp for all high scores
  -z, --zero            calculates pp for 0 pp high scores
  -i ID, --id ID        calculates pp for the score with this score_id
  -m MODS, --mods MODS  calculates pp for high scores with these mods (flags)
  -g GAMEMODE, --gamemode GAMEMODE
                        calculates pp for scores played on this game mode
                        (std:0, taiko:1, ctb:2, mania:3)
  -u USERID, --userid USERID
                        calculates pp for high scores set by a specific user
                        (user_id)
  -b BEATMAPID, --beatmapid BEATMAPID
                        calculates pp for high scores played on a specific
                        beatmap (beatmap_id)
  -fhd, --fixstdhd      calculates pp for std hd high scores (14/05/2018 pp
                        algorithm changes)
  -w WORKERS, --workers WORKERS
                        number of workers. 16 by default. Max 32
  -cs CHUNKSIZE, --chunksize CHUNKSIZE
                        score chunks size
  -v, --verbose         verbose/debug mode

License

This project is licensed under the GNU AGPL 3 License.
See the “LICENSE” file for more information.