# r41ngee/dota-localization-changer architecture

> Architecture diagram of the GitHub repository r41ngee/dota-localization-changer, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/r41ngee/dota-localization-changer
- Repository: https://github.com/r41ngee/dota-localization-changer

## Overview

Dota 2 Localization Changer is a Tkinter application for editing Russian names for heroes, skills, facets, and items, then applying the changes to Dota 2. The main workflow runs from GUI editing through localization serialization and VPK modification; preset save/load and filters are additional user-facing capabilities. The excerpts show the GUI, data types, KV parser, configuration, preset operations, and VPK CLI calls, but omit much of main.py, so some documented workflow links are shown with README evidence rather than inferred implementation details.

Main entry points: [`dota_localization_changer/main.py`](https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/main.py) (Editor GUI), [`dota_localization_changer/presets.py`](https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/presets.py) (Preset manager), [`dota_localization_changer/config.py`](https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/config.py) (Game settings), [`dota_localization_changer/bin/vpkeditcli.exe`](https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/bin/vpkeditcli.exe) (VPK editor CLI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_gui["Editor GUI<br/>[main.py]"]
  node_filters["Search filters<br/>[main.py]"]
end

subgraph group_domain["Localization domain"]
  node_entity["Localization entities<br/>[dotatypes.py]"]
  node_kv["KV parser<br/>[kvparser2.py]"]
  node_source_data["Localization data<br/>[hero_tags.json]"]
  node_item_data["Item tags<br/>[items_tags.json]"]
end

subgraph group_persistence["Settings and presets"]
  node_settings["Game settings<br/>[config.py]"]
  node_config_file["Saved configuration<br/>[config.json]"]
  node_presets["Preset manager<br/>[presets.py]"]
  node_preset_files[("Preset files<br/>[presets.py]")]
end

subgraph group_apply["Game application"]
  node_vpk_cli["VPK editor CLI<br/>[vpkeditcli.exe]"]
end

node_user(("Player"))
node_game[("Dota 2 files")]

node_user -->|"edits names"| node_gui
node_gui -->|"filters entries"| node_filters
node_gui -->|"edits entities"| node_entity
node_gui -->|"changes game path"| node_settings
node_gui -->|"saves and loads"| node_presets
node_presets -->|"serializes heroes"| node_entity
node_presets -->|"reads and writes"| node_preset_files
node_gui -.->|"serializes localization"| node_kv
node_gui -->|"invokes CLI"| node_vpk_cli
node_vpk_cli -->|"modifies VPK"| node_game
node_source_data -.->|"provides entries"| node_gui
node_item_data -.->|"provides entries"| node_gui
node_settings -->|"reads and writes"| node_config_file

click node_gui "https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/main.py"
click node_filters "https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/main.py"
click node_entity "https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/dotatypes.py"
click node_kv "https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/kvparser2.py"
click node_source_data "https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/data/hero_tags.json"
click node_item_data "https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/data/items_tags.json"
click node_settings "https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/config.py"
click node_config_file "https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/data/config.json"
click node_presets "https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/presets.py"
click node_preset_files "https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/presets.py"
click node_vpk_cli "https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/bin/vpkeditcli.exe"

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_gui,node_filters toneBlue
class node_entity,node_kv,node_source_data,node_item_data,node_game toneAmber
class node_settings,node_config_file,node_presets,node_preset_files toneMint
class node_vpk_cli toneRose
class node_user toneIndigo
```

## Components

### User interface

- [Editor GUI](https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/main.py): `dota_localization_changer/main.py`
- [Search filters](https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/main.py): `dota_localization_changer/main.py`

### Localization domain

- [Localization entities](https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/dotatypes.py): `dota_localization_changer/dotatypes.py`
- [KV parser](https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/kvparser2.py): `dota_localization_changer/kvparser2.py`
- [Localization data](https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/data/hero_tags.json): `dota_localization_changer/data/hero_tags.json`
- [Item tags](https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/data/items_tags.json): `dota_localization_changer/data/items_tags.json`

### Settings and presets

- [Game settings](https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/config.py): `dota_localization_changer/config.py`
- [Saved configuration](https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/data/config.json): `dota_localization_changer/data/config.json`
- [Preset manager](https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/presets.py): `dota_localization_changer/presets.py`
- [Preset files](https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/presets.py): `dota_localization_changer/presets.py`

### Game application

- [VPK editor CLI](https://github.com/r41ngee/dota-localization-changer/blob/main/dota_localization_changer/bin/vpkeditcli.exe): `dota_localization_changer/bin/vpkeditcli.exe`

### Other components

- **Player**
- **Dota 2 files**

## Connections

- Player → Editor GUI: edits names (evidence: `README.md`)
- Editor GUI → Search filters: filters entries (evidence: `dota_localization_changer/main.py`)
- Editor GUI → Localization entities: edits entities (evidence: `dota_localization_changer/main.py`)
- Editor GUI → Game settings: changes game path (evidence: `dota_localization_changer/main.py`)
- Editor GUI → Preset manager: saves and loads (evidence: `dota_localization_changer/main.py`)
- Preset manager → Localization entities: serializes heroes (evidence: `dota_localization_changer/presets.py`)
- Preset manager → Preset files: reads and writes (evidence: `dota_localization_changer/presets.py`)
- Editor GUI → KV parser: serializes localization (evidence: `dota_localization_changer/main.py`)
- Editor GUI → VPK editor CLI: invokes CLI (evidence: `dota_localization_changer/main.py`)
- VPK editor CLI → Dota 2 files: modifies VPK
- Localization data → Editor GUI: provides entries
- Item tags → Editor GUI: provides entries
- Game settings → Saved configuration: reads and writes (evidence: `dota_localization_changer/config.py`)
