# typicalcold/roblox-external-esp-obs-hide architecture

> Architecture diagram of the GitHub repository typicalcold/roblox-external-esp-obs-hide, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-06-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/typicalcold/roblox-external-esp-obs-hide
- Repository: https://github.com/typicalcold/roblox-external-esp-obs-hide

## Overview

##### Project Type and Purpose
- This is an open-source, two-process external overlay tool for Roblox:
- An injected Lua script (main.lua) running inside the Roblox client
- A Python application (external esp render.py) that reads data and draws the ESP overlay externally

##### Key Components from the File Structure
- main.lua: the injected Roblox/Lua script
- drawingdata/data.json & settings.json: file-based IPC between the two processes
- external esp render.py: Python rendering app
- pyMeow.zip: contains the pyMeow hooking library
- install.bat: installs Python dependencies (dearpygui, pyMeow, etc.)

##### How It Works (per README)
- Lua script captures 3D player positions, converts to 2D screen coords via WorldToScreenPoint(), writes JSON

1. Roblox Client Process (with injected main.lua)
- Captures game data
- Writes to drawingdata/data.json
2. File System (drawingdata directory)
- data.json (producer → consumer)
- settings.json (consumer reads rendering prefs)
3. External Python Renderer Process
- Reads JSON files
- Uses pyMeow for in-process hooking / DirectX overlay
- Uses DearPyGUI for UI & drawing primitives
4. Operating System / GPU
- Underlies both processes, handles windowing, DirectX/OpenGL calls

##### Relationships & Data Flows
- OS as the backdrop for process scheduling and GPU access

##### Architectural Patterns & Principles
- Producer–Consumer via file-based IPC
- Separation of concerns: game-side data capture vs. external rendering
- Modular libraries: Lua for in-game, Python + pyMeow + DearPyGUI for external

##### Technologies & Frameworks to Label
- Lua & Roblox API (WorldToScreenPoint)
- JSON (drawingdata/data.json)
- Python 3.x
- pyMeow (DLL injection / hooking)
- DearPyGUI (overlay UI)
- Windows 10/11, DirectX/OpenGL

##### Essential Detail Checklist
- All components named & labeled
- Annotations for JSON schema, hook library, UI library

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Game-Side Process
    subgraph "Game-Side Layer"
        Roblox["Roblox Client Process\n(main.lua)"]:::game
    end

    %% File System IPC
    subgraph "File-Based IPC Storage"
        Dir["drawingdata/"]:::fs
        Data["data.json"]:::fs
        Settings["settings.json"]:::fs
        Dir --> Data
        Dir --> Settings
    end

    %% External Renderer
    subgraph "External Renderer Layer"
        PythonApp["External Python Renderer\n(external esp render.py)"]:::renderer
        PyMeow["pyMeow.zip"]:::lib
        PythonApp --> PyMeow
    end

    %% Project Resources
    subgraph "Project Resources"
        Installer["install.bat"]:::resource
        Readme["README.md"]:::resource
    end

    %% OS / GPU
    OS["Operating System / GPU"]:::os

    %% Data Flows
    Roblox -->|"write JSON"| Data
    Data -->|"read JSON"| PythonApp
    PythonApp -->|"hook & draw overlay"| Roblox

    %% Dependencies
    Installer --> PythonApp
    OS --> Roblox
    OS --> PythonApp

    %% Click Events
    click Roblox "https://github.com/typicalcold/roblox-external-esp-obs-hide/blob/main/main.lua"
    click Dir "https://github.com/typicalcold/roblox-external-esp-obs-hide/tree/main/drawingdata/"
    click Data "https://github.com/typicalcold/roblox-external-esp-obs-hide/blob/main/drawingdata/data.json"
    click Settings "https://github.com/typicalcold/roblox-external-esp-obs-hide/blob/main/drawingdata/settings.json"
    click PythonApp "https://github.com/typicalcold/roblox-external-esp-obs-hide/blob/main/external esp render.py"
    click PyMeow "https://github.com/typicalcold/roblox-external-esp-obs-hide/blob/main/pyMeow.zip"
    click Installer "https://github.com/typicalcold/roblox-external-esp-obs-hide/blob/main/install.bat"
    click Readme "https://github.com/typicalcold/roblox-external-esp-obs-hide/blob/main/README.md"

    %% Styles
    classDef game fill:#e0ffe0,stroke:#2d7a2d,color:#000;
    classDef fs fill:#e0f0ff,stroke:#2471a3,color:#000;
    classDef renderer fill:#ffe0b3,stroke:#b36b00,color:#000;
    classDef os fill:#d3d3d3,stroke:#555,color:#000;
    classDef lib fill:#ffdead,stroke:#cc9900,color:#000;
    classDef resource fill:#f0f0f0,stroke:#888,color:#000;
```
