# achmadhafizh/play-kathana-bot-download architecture

> Architecture diagram of the GitHub repository achmadhafizh/play-kathana-bot-download, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/achmadhafizh/play-kathana-bot-download
- Repository: https://github.com/achmadhafizh/play-kathana-bot-download

## Overview

PlayKathanaBot is a cross-platform desktop auto-hunt bot. The main workflow is configuring a hunt, running either timed keypress automation or PRO vision-driven automation against a game, and monitoring or stopping it from the main window or floating HUD. The README also documents profiles, reconnect, diagnostics, and platform-specific background input. The supplied tree contains no application source files, so component paths and undocumented call wiring cannot be established; the graph reflects documented relationships only.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User Interface"]
  node_app["PlayKathanaBot"]
  node_config["Hunt Configuration"]
  node_hud["Floating Mini-HUD"]
  node_telemetry["Live Telemetry"]
end

subgraph group_automation["Hunt Automation"]
  node_classic["Classic Keypress Engine"]
  node_vision["Smart Vision Engine"]
  node_combat["Target &amp; Skill Actions"]
  node_buff["Sequential Pre-Buff"]
  node_loot["Loot Automation"]
  node_recovery["HP/MP Recovery"]
  node_guards["Target &amp; Dialog Guards"]
  node_reconnect["Reconnect Supervisor"]
end

subgraph group_platform["Platform Services"]
  node_input["Background Input"]
  node_ocr["Native OCR"]
end

subgraph group_state["Profiles &amp; Diagnostics"]
  node_profiles[("Hunt Profiles")]
  node_logs[("Diagnostic Logs")]
end

node_player(("Player"))
node_game["Game Client"]
node_steam["Steam"]
node_google["Google Sign-In"]

node_player -->|"operates"| node_app
node_app -->|"presents"| node_config
node_player -->|"sets options"| node_config
node_config -->|"saves and loads"| node_profiles
node_app -->|"starts"| node_classic
node_app -->|"starts"| node_vision
node_classic -->|"runs actions"| node_combat
node_classic -->|"runs buffs"| node_buff
node_classic -->|"runs pickup loop"| node_loot
node_vision -->|"runs actions"| node_combat
node_vision -->|"requests recognition"| node_ocr
node_vision -->|"detects needs"| node_recovery
node_vision -->|"checks targets and dialogs"| node_guards
node_combat -->|"sends inputs"| node_input
node_buff -->|"sends inputs"| node_input
node_loot -->|"sends inputs"| node_input
node_recovery -->|"sends potion inputs"| node_input
node_guards -->|"cycles targets"| node_input
node_input -->|"posts background input"| node_game
node_game -->|"provides screen content"| node_ocr
node_app -->|"supervises"| node_reconnect
node_reconnect -->|"relaunches game"| node_steam
node_reconnect -->|"selects server and character"| node_game
node_classic -->|"reports status"| node_telemetry
node_vision -->|"reports status and vitals"| node_telemetry
node_telemetry -->|"updates"| node_hud
node_player -->|"monitors and stops"| node_hud
node_app -->|"writes diagnostics"| node_logs
node_player -.->|"signs in"| node_google
node_google -.->|"authorizes PRO mode"| node_vision

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_config,node_hud,node_telemetry,node_game toneBlue
class node_classic,node_vision,node_combat,node_buff,node_loot,node_recovery,node_guards,node_reconnect toneAmber
class node_input,node_ocr toneMint
class node_profiles,node_logs toneRose
class node_player,node_steam,node_google toneIndigo
```

## Components

### User Interface

- **PlayKathanaBot**
- **Hunt Configuration**
- **Floating Mini-HUD**
- **Live Telemetry**

### Hunt Automation

- **Classic Keypress Engine**
- **Smart Vision Engine**
- **Target & Skill Actions**
- **Sequential Pre-Buff**
- **Loot Automation**
- **HP/MP Recovery**
- **Target & Dialog Guards**
- **Reconnect Supervisor**

### Platform Services

- **Background Input**
- **Native OCR**

### Profiles & Diagnostics

- **Hunt Profiles**
- **Diagnostic Logs**

### Other components

- **Player**
- **Game Client**
- **Steam**
- **Google Sign-In**

## Connections

- Player → PlayKathanaBot: operates
- PlayKathanaBot → Hunt Configuration: presents
- Player → Hunt Configuration: sets options
- Hunt Configuration → Hunt Profiles: saves and loads
- PlayKathanaBot → Classic Keypress Engine: starts
- PlayKathanaBot → Smart Vision Engine: starts
- Classic Keypress Engine → Target & Skill Actions: runs actions
- Classic Keypress Engine → Sequential Pre-Buff: runs buffs
- Classic Keypress Engine → Loot Automation: runs pickup loop
- Smart Vision Engine → Target & Skill Actions: runs actions
- Smart Vision Engine → Native OCR: requests recognition
- Smart Vision Engine → HP/MP Recovery: detects needs
- Smart Vision Engine → Target & Dialog Guards: checks targets and dialogs
- Target & Skill Actions → Background Input: sends inputs
- Sequential Pre-Buff → Background Input: sends inputs
- Loot Automation → Background Input: sends inputs
- HP/MP Recovery → Background Input: sends potion inputs
- Target & Dialog Guards → Background Input: cycles targets
- Background Input → Game Client: posts background input
- Game Client → Native OCR: provides screen content
- PlayKathanaBot → Reconnect Supervisor: supervises
- Reconnect Supervisor → Steam: relaunches game
- Reconnect Supervisor → Game Client: selects server and character
- Classic Keypress Engine → Live Telemetry: reports status
- Smart Vision Engine → Live Telemetry: reports status and vitals
- Live Telemetry → Floating Mini-HUD: updates
- Player → Floating Mini-HUD: monitors and stops
- PlayKathanaBot → Diagnostic Logs: writes diagnostics
- Player → Google Sign-In: signs in
- Google Sign-In → Smart Vision Engine: authorizes PRO mode
