This README is also available in russian language.
This is repo for RE clickbot. Original RE repo
This clickbot is used in ReplayEngine, but if you want you can use it in your own projects.
$ ./clicks.py -c="clickpack folder" -r="replay.re" -o="output.flac" \
-s=300 -h=-1 -e=5 # this arguments are optionalBundled binaries available in releases.
Clickbot uses a "parser" system. You can add your own parsers by creating parsername.py
file in parser directory, and add to it:
- Variable
namecontaining human-readable parser name (e.g.ReplayEngine) - Variable
wildcardcontaining wildcard for replay file (e.g.*.re) - Class
Parsercontaining:__init__method, with such arguments: (self, path) where:- path - path to a file
parsemethod returning such hash (dict):
{"fps": INT, "replay": [
{"frame": INT, "hold": BOOL, "player": INT(1,2)},
...
]}
When Clickbot is built with PyInstaller parsers get fusen into the executable and to add/delete parsers you need to rebuild application. Main parser included with standart distro is ReplayEngine parser (replayengine.py), but not limited to. Feel free to fork repo and add your own parsers.
Here's clickpack format:
clickpack/
├─ p1/
│ ├─ softclicks/ # optional
│ │ ├─ holds/
│ │ ├─ releases/
│ ├─ hardclicks/ # optional
│ │ ├─ holds/
│ │ ├─ releases/
│ ├─ holds/
│ ├─ releases/
├─ p2/ # optional
│ ├─ softclicks/ # optional
│ │ ├─ holds/
│ │ ├─ releases/
│ ├─ hardclicks/ # optional
│ │ ├─ holds/
│ │ ├─ releases/
│ ├─ holds/
│ ├─ releases/