Skip to content

Ch1: Setup guide

XVs32 edited this page Sep 12, 2023 · 3 revisions

Common

You need to do this no matter what

  • Run Chrome or Chromium with debug mode
    • Example: chrome --remote-debugging-port=9222 --remote-allow-origins=*
      (For Windows user: If you don't know how to start chrome with options, read this)
      (--remote-allow-origins=* is needed at the moment (2023/05/04)ref):
    • Use task manager to kill all chrome process if needed.
      This debug instance of Chrome must be the first instance of Chrome run. If you have other Chrome windows open,
      close all of them before re-starting with remote-debugging enabled.
    • How do I know if the debug mode is on?
      • ✔️Access 127.0.0.1:9222, you should see a blank screen as follow:
        Screenshot from 2023-05-04 22-34-30
      • ❌Kill ALL chrome process and retry if you see this:
        Screenshot from 2023-05-04 22-28-56

Start Up

Pick one from Beginner, Gamer or Developer

Beginner

You have limited features but easiest installation.

  • Windows
    • Double click kcauto_cui.exe
  • Linux
    • Run ./kcauto_cui

That's it!

Gamer

A bit more complicated but full access to all features.

  • Windows
    • run .\kcauto_cui.exe in Powershell for better user experience
    • or, run .\kcauto.exe --cfg <your_config_name> to specify your own config file
      (note that you do not need to add .json here)
  • Linux
    • Run ./kcauto_cui
    • or, run ./kcauto.bin --cfg <your_config_name> to specify your own config file
      (note that you do not need to add .json here)

Developer

Your own Python environment, free to edit/fix the tool yourself.

  • Install Python 3.7.3

  • (Unix only) Install additional pacakges python3-tk scrot

  • Install pip if not already installed

  • (Optional, but recommended) Install pipenv using pip install pipenv

  • Install dependencies:

    • pip-mode: pip install -r requirements.txt
    • pipenv-mode: pipenv shell, then pipenv install --ignore-pipfile
  • Windows

    • run python .\kcauto\kcauto_cui.py
    • or, run python kcauto --cfg <your_config_name> to specify your own config file
      (note that you do not need to add .json here)
  • Linux

    • Run python3.7 ./kcauto/kcauto_cui.py
    • or, run python3.7 kcauto --cfg <your_config_name> to specify your own config file
      (note that you do not need to add .json here)