zapsaber/README.md

51 lines
1.8 KiB
Markdown
Raw Normal View History

2022-11-25 06:27:56 +00:00
# ZapSaber
2022-11-24 02:19:11 +00:00
2022-11-24 20:35:08 +00:00
Bzzzt!
2022-11-25 20:34:42 +00:00
<iframe width="560" height="315" src="https://www.youtube.com/embed/vlPxbOCqqys" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
2022-11-24 20:35:08 +00:00
Improving Beat Saber scores through estim since 2022!
## Configuration
Configuration is done through a JSON file named `config.json` in the same directory as `zapsaber.py`. It must look something like this:
```json
{
"username": "<your username>",
"apiKey": "<your API key>",
"code": "<your shocker's code>",
"comboA": 100,
"comboB": 300,
2022-11-24 23:07:25 +00:00
"comboABreak": ["vibrate", 1.0, 20],
"comboBBreak": ["shock", 1.0, 5],
"fail": ["shock", 2.0, 10]
2022-11-24 20:35:08 +00:00
}
```
The values for combo breaks and fail is an array.
2022-11-24 23:07:25 +00:00
1. `vibrate`, `shock`, and `beep` (if action is `beep`, intensity is ignored)
2. Duration
3. Intensity
2022-11-24 23:12:46 +00:00
## Running
2022-11-25 06:15:41 +00:00
You'll need Python 3.9+ and Poetry:
2022-11-24 23:12:46 +00:00
pip install poetry
Install dependencies:
poetry update
2022-11-25 06:27:56 +00:00
Ensure you have the DataPuller mod from Mod Assistant installed, then start up Beat Saber and run ZapSaber!
2022-11-24 23:12:46 +00:00
poetry run python zapsaber.py
2022-11-25 20:34:42 +00:00
## Safety
Please note that you are exercising. You are exercising *and* you are in VR, where you can't see stuff, and you have electronics strapped to your head. It's already a pretty bad idea to wear a shocker around your neck, but you definitely shouldn't in this case. May I suggest the outside of the thigh? It's meaty, safe to zap, and I promise it still smarts quite a bit.
Also, since the possibility of stumbling is real, it's a good idea to set sensible limits on your zaps. Depending on your tolerance, shocking above, say, 15 may not be a good idea. Stumbling and breaking your $1000 Index should be avoided, if possible.