|
Download README.md from Sqls1/dota2-data: direct link, hf CLI and curl.
- Browser
- Download file 7.53 kB
-
https://huggingface.co/datasets/Sqls1/dota2-data/resolve/main/README.md
- Command line
-
hf download hf://datasets/Sqls1/dota2-data/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Sqls1/dota2-data/resolve/main/README.md
7.53 kB
| pretty_name: Dota 2 Game Data and Texts | |
| license: other | |
| license_name: valve-content | |
| tags: | |
| - dota-2 | |
| - dota2 | |
| - game-assets | |
| - json | |
| - text | |
| - localization | |
| - game-data | |
| size_categories: | |
| - 10K<n<100K | |
| # Dota 2 Game Data and Texts | |
| <p align="center"><img src="https://huggingface.co/datasets/Sqls1/dota2-data/resolve/main/assets/banner.png" alt="Dota 2" width="766"></p> | |
| **Every script and text file of Dota 2 as JSON, and the code of its interface**: all items and cosmetics (`items_game`), heroes, abilities, units, shops, events, emoticons, chat wheel, voice line rules, and every localization of the game in all 28 languages. Straight from the game files, updated after every patch. 44,842 files, 1.2 GB. | |
| ## What's inside | |
| | Folder | What | Files | Size | | |
| |---|---|---:|---:| | |
| | `materials/` | materials | 27,712 | 79 MB | | |
| | `scripts/` | the game's scripts | 4,177 | 77 MB | | |
| | `panorama/` | the interface: layouts, styles, scripts | 4,126 | 25 MB | | |
| | `dotadex/` | files made for the Dotadex site | 2,852 | 478 MB | | |
| | `scenes/` | voice lines' choreography | 1,992 | 12 MB | | |
| | `resource/` | texts in every language, fonts | 1,460 | 466 MB | | |
| | `models/` | models' materials | 1,033 | 2 MB | | |
| | `soundevents/` | sound events | 956 | 19 MB | | |
| | `maps/` | maps' materials | 405 | 1 MB | | |
| | `particles/` | | 53 | 1 MB | | |
| | `soundstacks/` | the sound mixer | 29 | 1 MB | | |
| | `dev/` | | 22 | 1 MB | | |
| | `cfg/` | default settings | 7 | 1 MB | | |
| | `sounds/` | the sound mixer's graphs | 7 | 1 MB | | |
| - **`scripts/`, `resource/`**: the game's own files at their own paths, `<path>.json` for `<path>` in the game. KeyValues text becomes JSON objects with string values; a key a block repeats keeps every value, the next ones as `key#2`, `key#3` (items' `visuals` repeat `asset_modifier`). KeyValues3 and compiled resources (`.vdata_c`, response rules `.vrr_c`, ...) are decompiled to JSON. The few text files that are not KeyValues are kept as they are. | |
| - **`panorama/`**: the client's interface (Panorama UI), readable: every layout (`.xml`), style (`.css`) and script (`.js`, TypeScript ones compiled), decompiled from the game files: how every screen, tooltip and button of Dota 2 is built. | |
| - **`<path>.vmat.json`**: every material of the game (`materials/`, `models/.../materials`, `maps/...`): its shader, feature flags, parameters and the textures it names (those are in [dota2-textures](https://huggingface.co/datasets/Sqls1/dota2-textures)). | |
| - **`soundevents/<file>.vsndevts.json`**: every sound event: its sound files, volume, pitch, mix group, distance, layers (the sounds are in [dota2-sounds](https://huggingface.co/datasets/Sqls1/dota2-sounds)). | |
| - **`resource/*.otf`, `resource/*.ttf`**: Dota's own fonts (Radiance, Hypatia Sans). | |
| - **`patchnotes/patchnotes.vdpn.json`**: the patch notes the game shows, every patch with its item, hero and ability changes. | |
| - **`novels/<event>.vdvn.json`**: the events' visual novels (Crownfall, Dark Carnival, ...): every act, scene and line. | |
| - **`scenes/<hero>/<line>.vcd.json`**: the choreography of every voice line: what the hero's face and gestures do while it speaks, as timed flex animations; `scenes/<hero>.vcdlist` lists them. | |
| - **`soundstacks/`, `sounds/graphs/`**: the sound mixer: operator stacks, DSP presets, mix graphs. | |
| - the files at the game's root and in `cfg/`: match modes, workshop tags, default key bindings and video settings. | |
| - **`dotadex/`**: files made from those for the [Dotadex](https://s1nuxoff.github.io/Dotadex/) site, handy on their own: `dotadex/data/heroes.json`, `abilities.json`, `items.json`, `treasures.json` (chests and what drops from them), `voices/<hero>.json` (voice lines with their sound files), `i18n/<language>.json` (every text the site shows), and lighter pictures (`dotadex/images/`: loading screens and hero page backdrops at 1920 px, the hero grid in one atlas, cursor packs). | |
| Popular files: | |
| | File | What | | |
| |---|---| | |
| | `scripts/items/items_game.txt.json` | Every item, cosmetic, set, treasure and their visuals | | |
| | `scripts/npc/npc_heroes.txt.json`, `scripts/npc/heroes/*.json` | Heroes and their abilities | | |
| | `scripts/npc/npc_abilities.txt.json`, `scripts/npc/items.txt.json` | Abilities and shop items | | |
| | `scripts/npc/npc_units.txt.json` | Creeps, summons, buildings, Roshan | | |
| | `resource/localization/<file>_<language>.txt.json` | Every text of the game (`items_`, `abilities_`, `dota_`, `hero_lore_`, ...) | | |
| ## How to use it | |
| **One file, straight from its link** (works in a browser, an `<img>`, `fetch`; served with CORS): | |
| ``` | |
| https://huggingface.co/datasets/Sqls1/dota2-data/resolve/main/scripts/items/items_game.txt.json | |
| ``` | |
| **Python** ([huggingface_hub](https://huggingface.co/docs/huggingface_hub)): | |
| ```python | |
| from huggingface_hub import hf_hub_download, snapshot_download | |
| # one file | |
| path = hf_hub_download("Sqls1/dota2-data", "scripts/items/items_game.txt.json", repo_type="dataset") | |
| # a whole folder | |
| snapshot_download("Sqls1/dota2-data", repo_type="dataset", allow_patterns="resource/localization/*", local_dir="dota2-data") | |
| ``` | |
| **Command line** (`pip install -U huggingface_hub`): | |
| ```bash | |
| hf download Sqls1/dota2-data --repo-type dataset --include "resource/localization/*" --local-dir dota2-data | |
| ``` | |
| **Find anything:** `files.json` at the root lists every file with its size, one download instead of walking the folders: | |
| ```js | |
| const { files } = await (await fetch("https://huggingface.co/datasets/Sqls1/dota2-data/resolve/main/files.json")).json(); // [[path, size], ...] | |
| ``` | |
| ## How it stays up to date | |
| Read from the game files by `gamefiles.js` (scripts and texts) and `data.js`, `audio.js`, `models.js` (the `dotadex/` files). The [tracker](https://github.com/S1nuxoff/dota2-game-tracker) checks Steam every six hours; after a game update it exports only what changed and removes what the game removed. Everything at the game's own paths, so a file you know from the game is easy to find. | |
| Made for [Dotadex](https://s1nuxoff.github.io/Dotadex/), a site that shows every Dota 2 hero and cosmetic in 3D as the game does, and open to everyone. | |
| ## The whole family | |
| - **dota2-data**: every script and text of the game as JSON (items, heroes, abilities, 28 languages) (this one) | |
| - [dota2-images](https://huggingface.co/datasets/Sqls1/dota2-images): every picture of the interface: icons, portraits, loading screens | |
| - [dota2-videos](https://huggingface.co/datasets/Sqls1/dota2-videos): every video of the interface: animated hero portraits, trailers | |
| - [dota2-models](https://huggingface.co/datasets/Sqls1/dota2-models): every 3D model: heroes, cosmetics, units, buildings, props | |
| - [dota2-textures](https://huggingface.co/datasets/Sqls1/dota2-textures): every texture of the 3D models and maps, on its own | |
| - [dota2-particles](https://huggingface.co/datasets/Sqls1/dota2-particles): every particle effect system and its textures | |
| - [dota2-sounds](https://huggingface.co/datasets/Sqls1/dota2-sounds): every sound: voice lines, abilities, music, announcers | |
| - [dota2-maps](https://huggingface.co/datasets/Sqls1/dota2-maps): every map and scene: the main map, events, backgrounds, MVP screens | |
| ## License and credit | |
| Everything here is **Valve's** content (and the Dota 2 Workshop authors' for cosmetics), taken from the game files and shared for reference, research, fan sites, art and other non-commercial community projects. Dota 2 is a registered trademark of Valve Corporation. This is an unofficial, fan-made dataset, not affiliated with or endorsed by Valve. If you use it, please credit Valve and Dota 2. | |