Revive your lamps!
This little script aims to regenerate your *raja score.db using data from Bokutachi.
Disclaimer : This leaves out some relatively important data (such as ghost data, seeds, wether random was used or not...). Do not try to import your db on any website after using this, or be ready for unforeseen consequences.
- Install Node 18 or higher. If you encounter any problem downgrade to 18. (tested on v18.20.5)
- Clone this repository.
- Install dependencies :
npm i - Find your score.db inside your *raja installation. It is located inside
player/<playerid>. BACK IT UP. Then copy it to the repo's folder. - Run the script :
node index.js -u <your bokutachi username> -d <name of the db> - Copy your
score.dbback to the player's folder.
You can also run the script and dump the SQL that would've been run on the db to a file : -o dump.sql
- "I've got a ton of 'UNIQUE constraint failed' errors!!! What are those?!"
These errors are because your local database already had a score for the chart. This chart was left intact and not synced with Bokutachi.
If you want to sync from 0, clear the scores table from your score.db with a tool like DB Browser for SQLite.
- *"My raja now crashes! What do I do??"
Restore your backup. You backed up your score.db... Right?