TobyAdd / clicks

clickbot for replay engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This README is also available in russian language.

Clickbot for ReplayEngine

This is repo for RE clickbot. Original RE repo

Overview

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 optional

Bundled binaries available in releases.

Parser system

Clickbot uses a "parser" system. You can add your own parsers by creating parsername.py file in parser directory, and add to it:

  • Variable name containing human-readable parser name (e.g. ReplayEngine)
  • Variable wildcard containing wildcard for replay file (e.g. *.re)
  • Class Parser containing:
    • __init__ method, with such arguments: (self, path) where:
      • path - path to a file
    • parse method 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.

Clickpacks

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/

About

clickbot for replay engine

License:MIT License


Languages

Language:Python 98.0%Language:Shell 2.0%