# huyhg245/thebums_macro architecture

> Architecture diagram of the GitHub repository huyhg245/thebums_macro, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/huyhg245/thebums_macro
- Repository: https://github.com/huyhg245/thebums_macro

## Overview

The Bums Macro automates keyboard and mouse interactions for Roblox: Attack on Titan Revolution. Its main workflow is to run a macro, recognize game screens, perform gameplay actions, and recover or reconnect when needed. The README also documents settings, preset sharing, session analytics, diagnostics, and update management. The excerpts show reconnect recognition, optional Hybrid AI verification, and local feature stores; main.py and other unsampled runtime wiring are represented only where the README supports it, so some relationships are omitted.

Main entry points: [`main.py`](https://github.com/huyhg245/thebums_macro/blob/main/main.py) (Macro Application), [`thebums_reconnect.py`](https://github.com/huyhg245/thebums_macro/blob/main/thebums_reconnect.py) (Reconnect State Machine), [`thebums_hybrid_ai.py`](https://github.com/huyhg245/thebums_macro/blob/main/thebums_hybrid_ai.py) (Hybrid AI Advisor), [`thebums_features.py`](https://github.com/huyhg245/thebums_macro/blob/main/thebums_features.py) (Preset Storage)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_automation["Macro Automation"]
  node_app["Macro Application<br/>[main.py]"]
  node_macro["Gameplay Macros<br/>[main.py]"]
end

subgraph group_recognition["Screen Recognition"]
  node_screen["Screen Detection<br/>[main.py]"]
  node_reconnect["Reconnect State Machine"]
  node_hybrid["Hybrid AI Advisor"]
end

subgraph group_settings["Settings and Presets"]
  node_settings_ui["Settings Interface<br/>[main.py]"]
  node_preset_store[("Preset Storage")]
  node_share_codes["Preset Sharing"]
end

subgraph group_operations["Session Operations"]
  node_session_history[("Session Analytics")]
  node_diagnostics["Diagnostics<br/>[main.py]"]
  node_error_snapshots[("Error Snapshots")]
  node_update_manager["Update Manager<br/>[main.py]"]
  node_update_history[("Update History")]
end

node_user(("Player"))
node_roblox["Roblox Game"]

node_user -->|"starts"| node_app
node_app -->|"runs"| node_macro
node_macro -->|"recognizes screens"| node_screen
node_macro -->|"sends input"| node_roblox
node_screen -->|"uses reconnect"| node_reconnect
node_reconnect -->|"verifies candidates"| node_hybrid
node_user -->|"configures"| node_settings_ui
node_settings_ui -.->|"manages presets"| node_preset_store
node_settings_ui -.->|"shares presets"| node_share_codes
node_app -.->|"records sessions"| node_session_history
node_user -->|"runs diagnostics"| node_diagnostics
node_app -.->|"saves error snapshots"| node_error_snapshots
node_user -->|"checks updates"| node_update_manager
node_update_manager -.->|"records transactions"| node_update_history

click node_app "https://github.com/huyhg245/thebums_macro/blob/main/main.py"
click node_macro "https://github.com/huyhg245/thebums_macro/blob/main/main.py"
click node_screen "https://github.com/huyhg245/thebums_macro/blob/main/main.py"
click node_reconnect "https://github.com/huyhg245/thebums_macro/blob/main/thebums_reconnect.py"
click node_hybrid "https://github.com/huyhg245/thebums_macro/blob/main/thebums_hybrid_ai.py"
click node_settings_ui "https://github.com/huyhg245/thebums_macro/blob/main/main.py"
click node_preset_store "https://github.com/huyhg245/thebums_macro/blob/main/thebums_features.py"
click node_share_codes "https://github.com/huyhg245/thebums_macro/blob/main/thebums_features.py"
click node_session_history "https://github.com/huyhg245/thebums_macro/blob/main/thebums_features.py"
click node_diagnostics "https://github.com/huyhg245/thebums_macro/blob/main/main.py"
click node_error_snapshots "https://github.com/huyhg245/thebums_macro/blob/main/thebums_features.py"
click node_update_manager "https://github.com/huyhg245/thebums_macro/blob/main/main.py"
click node_update_history "https://github.com/huyhg245/thebums_macro/blob/main/thebums_features.py"

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_macro toneBlue
class node_screen,node_reconnect,node_hybrid toneAmber
class node_settings_ui,node_preset_store,node_share_codes toneMint
class node_session_history,node_diagnostics,node_error_snapshots,node_update_manager,node_update_history toneRose
class node_user,node_roblox toneIndigo
```

## Components

### Macro Automation

- [Macro Application](https://github.com/huyhg245/thebums_macro/blob/main/main.py): `main.py`
- [Gameplay Macros](https://github.com/huyhg245/thebums_macro/blob/main/main.py): `main.py`

### Screen Recognition

- [Screen Detection](https://github.com/huyhg245/thebums_macro/blob/main/main.py): `main.py`
- [Reconnect State Machine](https://github.com/huyhg245/thebums_macro/blob/main/thebums_reconnect.py): `thebums_reconnect.py`
- [Hybrid AI Advisor](https://github.com/huyhg245/thebums_macro/blob/main/thebums_hybrid_ai.py): `thebums_hybrid_ai.py`

### Settings and Presets

- [Settings Interface](https://github.com/huyhg245/thebums_macro/blob/main/main.py): `main.py`
- [Preset Storage](https://github.com/huyhg245/thebums_macro/blob/main/thebums_features.py): `thebums_features.py`
- [Preset Sharing](https://github.com/huyhg245/thebums_macro/blob/main/thebums_features.py): `thebums_features.py`

### Session Operations

- [Session Analytics](https://github.com/huyhg245/thebums_macro/blob/main/thebums_features.py): `thebums_features.py`
- [Diagnostics](https://github.com/huyhg245/thebums_macro/blob/main/main.py): `main.py`
- [Error Snapshots](https://github.com/huyhg245/thebums_macro/blob/main/thebums_features.py): `thebums_features.py`
- [Update Manager](https://github.com/huyhg245/thebums_macro/blob/main/main.py): `main.py`
- [Update History](https://github.com/huyhg245/thebums_macro/blob/main/thebums_features.py): `thebums_features.py`

### Other components

- **Player**
- **Roblox Game**

## Connections

- Player → Macro Application: starts (evidence: `README.md`)
- Macro Application → Gameplay Macros: runs (evidence: `README.md`)
- Gameplay Macros → Screen Detection: recognizes screens (evidence: `README.md`)
- Gameplay Macros → Roblox Game: sends input (evidence: `README.md`)
- Screen Detection → Reconnect State Machine: uses reconnect (evidence: `README.md`)
- Reconnect State Machine → Hybrid AI Advisor: verifies candidates (evidence: `thebums_reconnect.py`)
- Player → Settings Interface: configures (evidence: `README.md`)
- Settings Interface → Preset Storage: manages presets
- Settings Interface → Preset Sharing: shares presets (evidence: `README.md`)
- Macro Application → Session Analytics: records sessions (evidence: `README.md`)
- Player → Diagnostics: runs diagnostics (evidence: `README.md`)
- Macro Application → Error Snapshots: saves error snapshots (evidence: `README.md`)
- Player → Update Manager: checks updates (evidence: `README.md`)
- Update Manager → Update History: records transactions (evidence: `README.md`)
