Master Of Puppets
Tip: This document is large — use Ctrl+F (or Cmd+F on Mac) to search for topics.
The project current goal is to support the following client versions
Legacy
- 4.3.4 Cataclysm (2011) — supported
- 5.4.8 Mist of Pandaria (2013) — not yet playable. Pathing, navmesh, map and game data are all in place and the addon loads, but the addon still needs Mists-specific work. 702
Classic (Since 2019)
- 1.13.x Vanilla Classic
- 1.14.x Season of Mastery
- 1.15.x Era, Hardcore, Anniversary, Season of Discovery
- Note: Season of Discovery: New abilities and runes not implemented, workaround 559
- 2.5.x - Burning Crusade
- 3.4.x - Wrath of the Lich King
- 4.4.x - Cataclysm — supported
- 5.5.x - Mist of Pandaria — not yet playable, same as 5.4.8 above. 702
Wrath 3.3.5 is not planned: the bot depends on interact with target, which that client
does not have, and adding it needs client modification. 704
Table of Contents
Quick Start
For experienced users, here’s the minimal setup:
- Prerequisites: Windows 10+, .NET 10.0 SDK
- Download: Clone with submodules (the pathfinder pulls in the DotRecast submodule):
git clone --recurse-submodules https://github.com/Xian55/WowClassicGrindBot.git
Already cloned without it? Run git submodule update --init --recursive.
- Navigation data: download the pre-baked navmesh for your client’s era - no WoW
client or MPQ files needed (see Pathfinders):
.\scripts\download-navmesh.ps1 -Era precata # precata | cata | mop
Only needed if you intend to bake tiles yourself or run SpotAStar:
game archives in Json\MPQ\.
- Build: Run
BlazorServer\build.bat or open solution in Visual Studio
- Configure: Start WoW, run
BlazorServer\run.bat, configure addon in browser
- Play: Load a class profile, press Start
For detailed instructions, continue reading below.
Overview
Components
The system is composed of two main layers that communicate through pixel color encoding — no memory tampering or DLL injection.
- Lua Addon (
Addons/DataToColor/) — Runs inside the game client. Reads game state (player, target, buffs, equipment, action bars, etc.) and encodes it into pixel colors on hidden UI frames. Originally based on Happy-Pixels, heavily rewritten for performance with event-driven caching.
- C# Backend (13 .NET 10 projects) — Reads the encoded pixels via screen capture, decodes game state, makes decisions, and sends input back to the game via simulated keyboard/mouse messages. Runs as a web application (BlazorServer), a CLI tool (HeadlessServer), or a standalone pathfinding service (PathingAPI). See
docs/architecture.md for the full project breakdown.
- DotRecast fork (
external/DotRecast, git submodule) — Xian55/DotRecast @ wow-mods, the navmesh library the whole navigation system is built on. Recast’s usual workload is “bake offline on a build server, ship the result”; here a 34,000-yard world is baked on the user’s own machine, on first visit to an area, while the game client runs on the same box, which is what the fork exists to make viable. Clone with --recurse-submodules.
The fork carries two kinds of change: RcVec3f is aliased to System.Numerics.Vector3
so geometry crosses the boundary without conversion, and a measured bake-performance
campaign narrowed the hot data structures (areas to byte[], RcCompactSpan packed
16→8 bytes like the C++ original). Every commit is gated on the baked output staying
byte-identical — a per-tile SHA-256 over a 6-tile corpus — so none of it can change
where the bot walks.
📖 Why WowClassicGrindBot forks DotRecast
— the write-up of what was changed and why, with the numbers. Worth reading if you use
DotRecast yourself: the findings are about DotRecast, not about this bot, and several
apply to any C# Recast workload. It covers where the C# port pays a penalty against the
C++ original (the memory-bound sweeps, ranked by how much wider the storage is), the
benchmarking protocol that made the numbers trustworthy — interleaved A/B on an idle
box, because run-to-run spread on a dev machine is ±10–15% and a single before/after
pair proves nothing — and the two optimisations that looked obvious, were measured, and
were reverted for being slower.
The same material, commit by commit, is in
docs/dotrecast-fork.md.
Architecture
The bot is a Lua addon that encodes game state into pixel colors, and a .NET solution
that reads those pixels, decides what to do, and sends simulated input back. Thirteen
projects, layered so each host composes only what it needs.
Full details — project layout, dependency flow, technology stack and design
decisions — are in docs/architecture.md.
Technical Challenges
The game automation domain spans a lot of engineering ground: real-time screen capture,
GPU compute, native interop, pathfinding, and a small expression language for class
profiles. Each problem and how it was solved is written up separately.
See docs/technical-challenges.md.
Pathfinders
Pathfinding allows the bot to navigate the game world - walking around obstacles, across terrain, and to your defined routes.
Setting up navigation — the short version
For every supported client there is one answer: the built-in navmesh engine, with
tiles downloaded from the CDN. It is already the default, so setup is a single
command:
.\scripts\download-navmesh.ps1 -Era precata # use your client's era from the table
You do not need the WoW client, Json\MPQ, or any external service to navigate.
The engine answers from the downloaded tiles alone.
| Your client |
Era |
What to run |
Engine |
| Vanilla / SoM 1.13–1.15 |
precata |
download-navmesh.ps1 -Era precata |
Navmesh (default) |
| TBC 2.5.x |
precata |
download-navmesh.ps1 -Era precata |
Navmesh (default) |
| Wrath 3.3.5 |
precata |
download-navmesh.ps1 -Era precata |
Navmesh (default) |
| Cataclysm 4.3.4 |
cata |
download-navmesh.ps1 -Era cata |
Navmesh (default) |
| Cataclysm Classic 4.4.x |
cata |
download-navmesh.ps1 -Era cata |
Navmesh (default) |
| Mists 5.4.8 |
mop |
download-navmesh.ps1 -Era mop |
Navmesh (default) |
| MoP Classic 5.5.x |
mop |
download-navmesh.ps1 -Era mop |
Navmesh (default) |
Every client uses the same navmesh engine. An original client and its modern
re-release are the same world, so they share one era and one set of tiles: cata covers
4.3.4 and Cata Classic 4.4.x, mop covers 5.4.8 and MoP Classic 5.5.x. Verified with a
cata install holding zero game files: Elwynn→Stormwind 410 points, Ratchet→Crossroads
569, the log reporting disk-only, no game files.
Each era bundle is self-contained: -Era cata includes all four continents,
-Era mop all five. Unlike the minimap art, navmesh tiles are never shared
between eras — a stale mesh would route the bot through walls that exist in your
world, so you download exactly one era and that is all you need.
You only need the game archives in Json\MPQ if you want to bake tiles yourself
(a custom agent config, or an era with no published bundle) or run the legacy
Pathing:Engine=SpotAStar. Details below.
Running multiple bots
Give every instance its own in-process navmesh engine - the default. Point each
BlazorServer / HeadlessServer at the same downloaded tiles (a shared data_config.json
Root is fine, the tile cache is read-only) and run them independently. No pathing
server, no MPQ, nothing shared at runtime.
Do not point several bots at one PathingAPI (V1 Remote). It serves one search at
a time: the RateLimit filter answers a concurrent request with HTTP 429, which the
V1 client turns into an empty route - indistinguishable from “no path exists”, so the
second bot silently fails to navigate. Measured with two simultaneous WorldRoute
calls: one 200 in 555 ms, the other 429 in 8 ms. V1 Remote is meant for a single client
plus the route visualiser, not as a shared service.
That limit dates from the SpotAStar era, when a search cost seconds and serialising
made sense; a warm navmesh query is 1-8 ms. Serving N bots from one process is worth
doing and the per-continent pathfinder cache is already in place, but it needs the
search made re-entrant first (today it is SetLocations then DoSearch on singleton
state, and switching continent disposes the engine). Until then, one navmesh per bot
is the supported setup.
Cost of running them separately is small: with disk-only pathing there is no ADT
geometry in memory at all, just the navmesh tile cache - tiles average ~16 KB and only
the tens-to-hundreds around the active route stay resident.
Navmesh engine (default, recommended)
The bot ships an in-process DotRecast navmesh engine, now the default (Pathing:Engine=Navmesh). It runs from small pre-baked navmesh tiles and produces smooth, high-quality routes - the basis for the WASD spline follower. Versus the older backends it needs no external service and no MPQ at query time; the runtime query is pure managed, cross-platform code, and the tile data is tiny enough to distribute. Tiles are baked once from the game’s MPQ files (or downloaded pre-baked).
Recommended for every supported client, Vanilla through Mists. It supersedes both the legacy in-process grid pathfinder and the external navigation service.
Get the tiles — download pre-baked (no client/MPQ needed):
.\scripts\download-navmesh.ps1 -Force
Pulls the pre-baked tiles from the CDN into Json\PathInfo\navmesh\<era>\ (destination honors your data_config.json Root). Options: -Continent Northrend, -Era precata / -Era cata / -Era mop. If you run a custom agent config (different settings hash), bake instead (see navmesh bake skill).
Downloaded tiles are enough on their own: with no Json\MPQ\ at all, the navmesh
engine runs disk-only - it answers path and height queries from the baked tiles
and logs disk-only, no game files per continent. This matters most from Cataclysm
onward, where a client is tens of GB and there is no reason to keep one installed
just to walk over tiles that are already baked. Two things still need the archives,
and say so plainly rather than failing obscurely:
- Baking tiles (
POST api/PPather/Bake, BakeTile, area-grid extraction) - it reads ADT geometry.
Pathing:Engine=SpotAStar - it walks the triangle world directly and has no tile cache to fall back to.
Bake settings feed the tile cache directory name, so a disk-only install must be
configured the same as whatever baked the tiles or it computes a different hash and
sees none of them. Outland is the live example: it only resolves with
Navmesh:Bake:MinWorldZ: { "Expansion01": -700 }, which is already the shipped default.
Tiles are published per geometry era, each complete on its own:
| era |
clients |
continents |
tiles |
precata |
Vanilla, TBC, Wrath (som/tbc/wrath, legacy_*) |
4 |
51,113 |
cata |
Cataclysm 4.3.4 and Cata Classic 4.4.x (cata, legacy_cata) |
8 |
58,537 |
mop |
Mists 5.4.8 and MoP Classic 5.5.x (mop, legacy_mop) |
10 |
70,363 |
Cataclysm and Mists ship maps that are not zones of the four originals and have
their own MapID, so they need their own bake: Deepholm (646), the Lost Isles + Kezan
(648), Gilneas (654) and the Maelstrom (730), plus the Wandering Isle (860) on Mists.
Vashj’ir, Uldum, Mount Hyjal and Twilight Highlands are not among them - those are
zones on Azeroth/Kalimdor and come with the main continents.
The split matters: Cataclysm’s Shattering rebuilt Azeroth and Kalimdor, so the eras are
genuinely different worlds and never share navmesh tiles. Mists is separate from Cataclysm
for the same reason - their old worlds are close but not identical, and Mists adds Pandaria.
Cataclysm Classic (4.4.x) and MoP Classic (5.5.x) use the same bundles as their
original counterparts — ClientEra maps them to the same era and the world is the same.
Which should you use?
- Everyone: the default in-process navmesh engine - high quality, no external service. Download pre-baked tiles for your era.
- Baking your own tiles: needs the original game archives (Vanilla-Wrath, 4.3.4, 5.4.8). The modern re-releases cannot bake from their own install — download the published bundles, or bake from the matching original client.
- Legacy fallbacks: the grid engine (
Pathing:Engine=SpotAStar) and V1/V3 Remote remain available; V3 (AmeisenNavigation) is no longer required for anything.
Legacy / alternative backends
These predate the navmesh engine and are kept for compatibility. Outdoors the app can discover an available service in this order:
- V3 Remote: Out of process AmeisenNavigation - external service, superseded by the in-process navmesh engine on every client. Kept for compatibility;
PathingAPI can also answer its protocol directly if you want the wire format without the external binary.
- V1 Remote: Out of process PathingAPI more info here - MPQ-based; can host either engine.
- V1 Local: In process PPather - MPQ-based. Its legacy spot-grid A* engine (
Pathing:Engine=SpotAStar) is superseded by the navmesh engine.
- World map - Indoors pathfinder only works properly if
PathFilename exists.
- Dungeons / instances not supported!
Cataclysm and Mists of Pandaria support
Pathfinding is uniform. Every client from Vanilla to Mists uses the same in-process
navmesh engine, running from pre-baked tiles. Nothing about Cataclysm or Mists needs a
different pathfinder, an external service, or a game client on disk.
| client |
status |
tiles |
| 4.3.4 Cataclysm (2011) |
supported |
-Era cata |
| Cataclysm Classic 4.4.x |
supported |
-Era cata |
| 5.4.8 Mists (2013) |
not yet playable — addon work outstanding |
-Era mop |
| MoP Classic 5.5.x |
not yet playable — addon work outstanding |
-Era mop |
What “not yet playable” means for Mists
Everything below the addon is done — navmesh, Leaflet maps, DBC, creature, area, spawn
and teleport data are all generated and published for both Mists clients, and the addon
loads and runs without errors. What remains is Mists-specific addon work, tracked in
702. Cataclysm, by contrast,
is complete end to end including the addon.
The game-data side was the harder half and is finished: Mists chunk formats match 4.3.4
(same split ADT, MCNK header, M2 v272, WMO v17), and the two client-level differences are
handled — it ships a 5.0.x world.MPQ plus 23 wow-update-base-*.MPQ incremental patch
archives carrying updated terrain for 37% of root ADTs, which the archive layer
chains in build order, and its holes_high_res terrain holes are read. Mists is its own
geometry era (mop) and never shares tiles with Cataclysm.
Published: 26,972 Leaflet tiles across all ten continents and a 70,363-tile navmesh bake
(download-leaflet.ps1 -Era mop, download-navmesh.ps1 -Era mop).
Baking your own tiles
Only relevant if you want a custom agent config — otherwise download the published
bundles and skip this.
Baking reads terrain out of the game’s own archives, so it needs an original client:
Vanilla through Wrath, 4.3.4 Cataclysm, or 5.4.8 Mists. The modern re-releases
(4.4.x, 5.5.x) store their data in a format the reader does not open, so they cannot bake
from their own install — download the published tiles, or bake from the matching original
client. The result is identical either way, because the re-release and its original are
the same world.
Developers: the measured per-client format differences and the storage design notes are in
the storage abstraction doc.
Features
General Features
- Game fullscreen or windowed mode
- Addon supports all available client languages
- All playable classes is supported. Examples can be found under /Json/class/
Combat and Actionbar Features
- Highly configurable combat rotation described in Class Configuration
- Utilizing the Actionbar related APIs to retrieve ActionbarSlot (usable, cost)
- Automatic Keybinding Detection: The addon reads your actual in-game keybindings, so you can use your own key setup
- Modifier Key Support: Support for Shift, Ctrl, and Alt modifiers (e.g.,
Shift-1, Alt-F1). Note: Only single modifiers are supported, not combinations like Shift-Alt-1.
- Action Bar Validation: Verifies that spells are placed in the correct action bar slots and warns about mismatches
- Auto-Setup: Essential keybindings and custom actions are automatically configured on first run
- Support for up to
34 action bar slots across Main, Bottom Right, and Bottom Left action bars
Navigation and Grind Features
- Pathfinder in the current zone to the grind location
- Grind mobs in the described
PathFilename
- Blacklist certain NPCs
Resource Management
- Loot and
GatherCorpse which includes (Skin, Herb, Mine, Salvage)
- Vendor goods
- Repair equipment
- Improved Loot Goal
- Added Skinning Goal ->
GatherCorpse (Skin, Herb, Mine, Salvage)
- Introduced a concept of
Produce/Consume corpses. Killing multiple enemies in a single combat can consume them all.
Additional Features
- Corpse run
- Semi-automated gathering mode
- Frontend Dark mode / Light mode
- Frontend Runtime Class Profile picker
- Frontend Runtime Path Profile autocomplete search
- Frontend Edit the loaded profile
- Frontend
ActionbarPopulator One click to populate Actionbar based on Class Configuration. Uses naming convention: lowercase = macro, capitalized = spell.
- Frontend
Key Bindings page to view detected in-game keybindings and test key presses
- Frontend
Spell Book page to view known spells and their spell IDs
- Frontend
Mail page to configure mail recipient, exclusions, and view mailable inventory
DataConfig: change where the external data(DBC, MPQ, profiles) can be found
NPCNameFinder: extended to friendly/neutral units
- Support more resolutions
- Addon is rewritten/reorganized with performance in mind(caching and reduce cell paint) to achieve game refresh rate speed

Issues, Ideas & Contributing
Create an issue with the given template.
You are welcome to create pull requests. Some ideas of things that could be improved:
- This readme
- More route and class profiles
- Feel free to ask questions by opening new issues
Installation
This section guides you through the complete setup process. Here’s an overview of what you’ll do:
| Step |
What You’ll Do |
Why It’s Needed |
| 1 |
Download repository |
Get the application source code |
| 2 |
Download MPQ/navmesh files |
Provides world geometry for pathfinding |
| 3 |
Configure system requirements |
Ensure WoW displays correctly for pixel reading |
| 4 |
Build the application |
Compile the source code into runnable programs |
| 5 |
Configure the addon |
Set up communication between WoW and the application |
| 6 |
Start the dashboard |
Launch the web interface for control and monitoring |
| 7 |
(Optional) HeadlessServer |
Run without UI for lower resource usage |
| 8-11 |
Configure WoW client |
Set up keybindings and interface options |
| 12 |
Create class profile |
Define your combat rotation and behavior |
Tip: Steps 1-6 are one-time setup. After initial setup, you’ll only need to start WoW, run the application, and load a profile.
Download this Repository
Put the contents of the repo into a folder, e.g., C:\WowClassicGrindBot. I am going to refer to this folder from now on, so just substitute your folder path.
Clone with submodules. The pathfinder depends on the DotRecast git submodule, so a plain git clone leaves external/DotRecast empty and the build will fail. Clone it in one step:
git clone --recurse-submodules https://github.com/Xian55/WowClassicGrindBot.git
If you already cloned without submodules (or you pull an update that changes them), run:
git submodule update --init --recursive
Downloading the repo as a ZIP does not include submodule contents — use git clone --recurse-submodules.
Pathing setup
Nothing to do — the in-process navmesh engine is the default and the tiles come from
the CDN. If you have not already:
.\scripts\download-navmesh.ps1 -Era precata # or cata / mop
The older backends (V1 Local/Remote with MPQ archives, and the external V3
AmeisenNavigation server) are deprecated and no longer needed by anything. Their
setup instructions, and where to get the game archives if you want to bake your own
tiles, live in
docs/legacy-pathing-setup.md.
System / Video Requirements
Tested resolutions with either full screen or windowed:
- 1024 x 768
- 1920 x 1080
- 3440 x 1440
- 3840 x 2160
For Nvidia users, under Nvidia Control panel settings
- Make sure the
Image Sharpening under the Manage 3D Settings-> Global settings or Program Settings(for WoW) is set to Sharpening Off, Scaling disabled!
Known issues with other applications:
f.lux can affect final image color on the screen thus prevents NpcNameFinder to work properly.
Screen Capture Methods
The bot supports two screen capture backends:
| Feature |
DXGI |
WGC |
| Minimum Windows |
Windows 8+ |
Windows 10 2004 (build 19041+) |
| Background capture |
No — game window must be uncovered |
Yes — works behind other windows |
| Borderless capture |
N/A |
Yes (build 20348+, no yellow border) |
| Default |
Yes |
No (opt-in via --reader WGC) |
| GPU compute support |
Yes |
Yes |
DXGI is the default and most compatible.
Use WGC if you want to capture the game window while it’s behind other windows (requires Win10 2004+).
If WGC is requested but unsupported, the application automatically falls back to DXGI.
In-game Requirements
Required game client settings. Press ESC -> System
- System > Graphics > Anti-Aliasing:
None
- System > Graphics > Vertical Sync:
Disabled
- System > Advanced > Contrast:
50
- System > Advanced > Brightness:
50
- System > Advanced > Gamma from:
1.0
- System > Render Scale:
100%
- Disable Glow effect - type in the chat
/console ffxGlow 0
- To keep/save this settings make sure to properly shutdown the game.
Optional - Replace Default Game Font
Highly recommended to replace the default in-game font with a much Bolder one with this guide
Should be only concerned about Friz Quadrata: the "Everything Else" Font which is the FRIZQT__.ttf named file.
Example - Robot-Medium - Shows big improvement to the NpcNameFinder component which is responsible to find - friendly, enemy, corpse - names above NPCs head.
Optional - Enable Minimum Character Name Size
In the modern client under ESC > Options > Accessibility > General > Minimum Character Name Size = 6
This feature sets a minimum size of the character/npc names above their head.
However it has one downside, there’s distance based alpha blending. It could cause issues with Corpse names.
More info 506
Build Requirements
- Windows 10 and above
- .NET 10.0 SDK
AnyCPU, x86 and x64 build supported.
- Windows on ARM64 (e.g. a Win11 ARM64 VM on Apple Silicon) is supported natively — see Windows on ARM64.
Build the Solution
One of the following IDE or command line
e.g. Build from Powershell
cd C:\WowClassicGrindBot
dotnet build -c Release
or look at the BlazorServer\build.bat, or look at the HeadlessServer\build.bat files.

Windows on ARM64 (Apple Silicon)
The bot runs on Apple silicon through a Windows 11 ARM64 VM — the ARM64 StormLib build
ships with the repo and is selected automatically. Setup steps are in
docs/windows-arm64.md.
Configuration
BlazorServer Configuration Process
The app reads the game state using small blocks of color shown at the top of the screen by an Addon. This needs to be configured.
-
Look at C:\WowClassicGrindBot\BlazorServer and run run.bat.
-
The WoW client must be already running, and make sure to logged with your character.
-
Execute the C:\WowClassicGrindBot\BlazorServer\run.bat. This will start the bot and a browser.
-
If you get "Unable to find the Wow process is it running ?" in the console window then it can’t find game executable.
-
When running the BlazorServer for the first time you will have to follow a setup process:
- Start the game and login with a character
- Navigate to
2. Addon Configuration
- Fill the
Author input form
- Fill the
Title input form
- Then press
Save button -> Log should see AddonConfigurator.Install successful
- Should see a loading screen
- At the top left corner of the game window should see flashing pixels / cells
- Navigate to
5. Frame Configuration Guidance for good DataFrame
- Click on
Auto -> Start Validate FrameConfiguration
-
Addon Control panel Status is Update Available
- Press
Save button
- Should see a loading screen
- Restart the BlazorServer
- Complete
5. Frame Configuration steps again
- Click on
Auto -> Start Validate FrameConfiguration
Command-line Configuration Overrides
run.bat forwards all arguments to dotnet run, so any setting from BlazorServer/appsettings.json can be overridden using --Section:Property=Value syntax.
Example:
run.bat --Reader:Type=WGC --Pathing:Mode=Local --Reader:UseGpu=true
| Section |
Property |
Type |
Default |
Valid Values |
Description |
Process |
Id |
int |
-1 |
Any process ID |
WoW process ID. -1 for auto-detect |
Reader |
Type |
string |
DXGI |
DXGI, WGC |
Screen reader type. WGC = Windows Graphics Capture (supports background window) |
Reader |
UseGpu |
bool |
false |
true, false |
Use GPU acceleration for screen reading |
Pathing |
Mode |
string |
Local |
Local, RemoteV1, RemoteV3 |
Pathfinding mode. Local uses the in-process navmesh — no external service, nothing to start. The remote modes are probed, not required: if RemoteV3 gets no answer the bot falls back to RemoteV1, then to Local, so a misconfigured remote degrades rather than fails. The log line Using Local(LocalPathingApi) engine Navmesh confirms what was picked |
Pathing |
Engine |
string |
Navmesh |
Navmesh, SpotAStar |
In-process engine for Local mode (and PathingAPI). Navmesh (default) answers queries from pre-baked DotRecast tiles under Json/PathInfo/navmesh/<era>/. With Json\MPQ present it also bakes missing tiles on demand; without it the engine runs disk-only and answers from the downloaded tiles alone. SpotAStar is the legacy spot-grid A* and always needs the archives |
Pathing |
hostv1 |
string |
localhost |
hostname/IP |
RemoteV1 pathing server host |
Pathing |
portv1 |
int |
5001 |
port number |
RemoteV1 pathing server port |
Pathing |
hostv3 |
string |
127.0.0.1 |
hostname/IP |
RemoteV3 pathing server host |
Pathing |
portv3 |
int |
47111 |
port number |
RemoteV3 pathing server port |
Diagnostics |
Enabled |
bool |
false |
true, false |
Enable diagnostic mode |
Overlay |
Enabled |
bool |
false |
true, false |
Enable NPC overlay |
Overlay |
ShowTargeting |
bool |
false |
true, false |
Show targeting overlay |
Overlay |
ShowSkinning |
bool |
false |
true, false |
Show skinning overlay |
Overlay |
ShowTargetVsAdd |
bool |
false |
true, false |
Show target vs add overlay |
These properties can also be edited directly in BlazorServer/appsettings.json.
BlazorServer Dashboard
Optional - Running HeadlessServer
Similar to BlazorServer project, except without Frontend. Should consume less system resources in general.
While the bot is running there’s no way to adjust / tweak the values. In order to take effect, have to restart.
Firstly be sure to compile the project HeadlessServer\build.bat
Everything has to be setup inside the Class Configuration file, in prior.
A successful Configuration process has a result of a following configuration files
data_config.json
addon_config.json
frame_config.json
To see how to first time run the HeadlessServer please look at HeadlessServer\install.bat.
A few use case when you need to run install.bat
- After the first project download
- After git project clone
- After downloading a new version of the project
- After made a change in the source code which result a new Addon Version
- After switched from FullScreen to Windowed mode thus a
frame_config.json needed to be recreated
For normal quick startup of HeadlessServer please look at the HeadlessServer\run.bat or HeadlessServer\rundev.bat.
Required cli parameter: relative Class Configuration file name under the /Json/class/ folder.
Optional cli parameters:
Long forms take two dashes (--mode), short forms one (-m).
| cli |
Description |
Default Value |
Possible Values |
-m
--mode |
Pathfinder type |
Local |
Local or RemoteV1 or RemoteV3 |
-p
--pid |
World of Warcraft process id |
-1 |
open up task manager to find PID |
-r
--reader |
Addon data screen reader backend |
DXGI |
DXGI or WGC. See Screen Capture Methods |
--hostv1 |
Navigation Remote V1 host |
localhost |
- |
--portv1 |
Navigation Remote V1 port |
5001 |
- |
--hostv3 |
Navigation Remote V3 host |
127.0.0.1 |
- |
--portv3 |
Navigation Remote V3 port |
47111 |
- |
-n
--viz |
While Remote V1 is available, show Path Visualization Can display Remote V3 Paths as well. |
false |
- |
-d
--diag |
Diagnostics, when set, takes screen captures under Json\cap\*.jpg |
false |
- |
-o
--overlay |
Show NpcNameFinder Overlay |
false |
- |
-t
--otargeting |
While overlay enabled, show Targeting points |
false |
- |
-s
--oskinning |
While overlay enabled, show Skinning points |
false |
- |
-v
--otargetvsadd |
While overlay enabled, show Target vs Add points |
false |
- |
-g
--gpu |
Use GPU compute shader for NPC name finding |
false |
true or false |
--loadonly |
Loads the given class profile then exits |
false |
- |
Both hosts default to Local — the in-process navmesh, nothing external to start.
Pass --mode RemoteV1 / --mode RemoteV3 only if you actually run one of those
services.
e.g. run from Powershell without any optional parameter
cd C:\WowClassicGrindBot\HeadlessServer
.\run.bat Hunter_1.json
e.g. run from Powershell optional parameters, using DXGI reader and forced Local pathfinder.
cd C:\WowClassicGrindBot\HeadlessServer
.\run.bat Hunter_1.json -m Local
e.g. run from Powershell optional parameters, only loads the profile then exits a good indicator that your profile can be loaded
cd C:\WowClassicGrindBot\HeadlessServer
.\run.bat Hunter_1.json -m Local --loadonly
WoW Client - Interface Options
Need to make sure that certain interface options are set.
The most important are Click-to-Move and Do Not Flash Screen at Low Health.
The addon automatically configures the following CVars when it loads. You do not need to set these manually:
| Category |
Setting |
Value |
Purpose |
| Gameplay |
Auto Interact |
On |
Automatic interaction |
| Gameplay |
Auto Loot |
On |
Automatic looting |
| Gameplay |
NPC Names |
On |
Required for NPC name detection |
| Camera |
Camera Following Style |
Always |
Smooth camera tracking |
| Camera |
Click-to-Move Camera Style |
Always |
Consistent camera behavior |
| Camera |
Auto-Follow Speed |
Max |
Fast camera response |
| Graphics |
Anti-Aliasing |
None |
Required for pixel reading |
| Graphics |
Vertical Sync |
Off |
Reduces input lag |
| Graphics |
Render Scale |
100% |
Accurate pixel colors |
| Graphics |
Glow Effect |
Off |
Clean pixel reading |
| Display |
Contrast |
50 |
Calibrated for pixel reading |
| Display |
Brightness |
50 |
Calibrated for pixel reading |
| Display |
Gamma |
1.0 |
Calibrated for pixel reading |
Manual Settings
The following settings must still be configured manually from the main menu (ESC) -> Interface Options:
| Interface Option |
Value |
Why |
| Controls - Enable Interact Key |
true |
Required for INTERACTTARGET binding to work |
| Controls - Interact on Left click |
☐ |
Prevents accidental interactions while navigating |
| Combat - Do Not Flash Screen at Low Health |
☑ |
Screen flashing corrupts pixel color reading |
| Combat - Auto Self Cast |
☑ |
Buffs/heals automatically target self when no target |
| Names - Enemy Units (V) |
☐ |
Health bars can obscure NPC names, interfering with detection |
| Accessibility - Cursor Size |
32x32 |
Larger cursor is easier for the bot to detect and classify |
| Accessibility - Minimum Character Name Size |
6 |
Ensures NPC names are large enough to be detected reliably |
WoW Client - Key Bindings
Important Change: The addon now automatically reads your in-game keybindings. You no longer need to manually configure most keybindings in the class profile - the addon will detect and use whatever keys you have bound in WoW.
Automatic Keybinding Detection
When the addon loads, it reads your current keybindings from the game and sends them to the application. This means:
- You can keep using your existing keybinding setup
- Modifier keys (Shift, Ctrl, Alt) are fully supported
- The application will use whatever keys you have bound for each action
Auto-Setup of Essential Bindings
On first run (or if essential bindings are missing), the addon will automatically set up:
Targeting and Interaction:
| Binding |
Default Key |
Why Needed |
| Target Nearest Enemy |
Tab |
Primary method for finding and engaging enemies |
| Target Last Target |
G |
Re-targets last killed mob for looting |
| Assist Target |
F |
Targets your target’s target (useful for assist mode) |
| Target Pet |
NumpadMultiply |
Required for pet class healing/buffing pet |
| Pet Attack |
NumpadMinus |
Commands pet to attack current target |
| Interact With Target |
Alt-Home |
Opens loot windows, talks to NPCs, interacts with objects |
| Interact With Mouseover |
Alt-End |
Used by NPC name targeting for mouse-based interaction |
| Target Focus |
Alt-PageUp |
Used in Assist Focus mode to target the leader (TBC+) |
| Target Party Member 1 |
Alt-PageUp |
Vanilla alternative (no focus system) |
| Follow Target |
Alt-PageDown |
Used in Assist Focus mode to follow the leader |
Custom Actions (Secure Buttons):
| Binding |
Default Key |
Why Needed |
| Stop Attack |
Alt-Delete |
Stops combat when fleeing or to prevent accidental pulls |
| Clear Target |
Alt-Insert |
Clears target to allow fresh targeting |
| Config Toggle |
Shift-PageUp |
Toggles addon config mode for frame setup |
| Flush State |
Shift-PageDown |
Resets addon data queues when state gets out of sync |
Note: The command prefix (e.g., dc) is derived from your addon title configured during setup. If your addon is named “daq”, commands would be /daq, /daqflush, etc.
Movement Keys
Movement keys are still configured in the Class Configuration file since they may vary per profile:
| In-Game |
ClassConfiguration Name |
Default |
| Move Forward |
ForwardKey |
UpArrow |
| Move Backward |
BackwardKey |
DownArrow |
| Turn Left |
TurnLeftKey |
LeftArrow |
| Turn Right |
TurnRightKey |
RightArrow |
| Toggle Run/Walk |
WalkKey |
unset |
To use WASD movement, add to your class profile (or see Json\class\Warrior_1_MovementKeys.json):
"ForwardKey": 87, // W
"BackwardKey": 83, // S
"TurnLeftKey": 65, // A
"TurnRightKey": 68, // D
Toggle Run/Walk (WalkKey)
Optional, and off by default. When set, the WASD spline follower drops to walk speed
on the approach to a hairpin instead of arriving at full run, braking and pivoting —
which is what makes tight switchbacks (tower spirals, the Goldshire hairpin) look and
behave sanely.
Two things are required, and it silently does nothing if either is missing:
- Bind the key in game under
Key Bindings → Movement → Toggle Run/Walk.
- Set the same key in your class profile:
"WalkKey": 145 // Scroll Lock, for example
Leaving it unset is supported — the follower just brakes and pivots instead. If you see
run-speed hairpin approaches, this is the setting that is missing; the log warns once
when the follower asks for walk speed and there is no key to honour it.
Manual Binding Setup (Optional)
If you prefer to set up bindings manually or the auto-setup didn’t work, you can use these slash commands:
| Command |
Description |
/<prefix>bindings |
Sets up default action bar keybindings (F1-F12, Numpad) |
/<prefix>actions |
Creates and binds the custom secure action buttons |
Note: Replace <prefix> with your addon’s command prefix (e.g., /dcbindings if your prefix is dc). The prefix is derived from the addon title you configured during setup.
These commands save bindings to your current binding set (account-wide or character-specific).
Actionbar Key Bindings
The addon reads your actual action bar keybindings from the game. You can use any keys you prefer, including modifier combinations.
Supported Action Bars
| Actionbar |
Slot Range |
Default Keys |
WoW Binding Names |
| Main |
1-12 |
1,2,3..9,0,-,= |
ACTIONBUTTON1-12 |
| Bottom Right |
49-60 |
Numpad1-9, Numpad0 |
MULTIACTIONBAR2BUTTON1-12 |
| Bottom Left |
61-72 |
F1-F12 |
MULTIACTIONBAR1BUTTON1-12 |
Using Your Own Keybindings
The application will automatically detect whatever keys you have bound to your action bars. For example:
- If you bound
Shift-1 to action slot 1, the app will press Shift-1
- If you bound
Q to Bottom Left slot 61, the app will press Q
Quick Setup with Default Bindings
If you want to use the recommended default bindings, run /dcbindings in-game. This will set up:
- Bottom Right bar (slots 49-60):
Numpad1 through Numpad0
- Bottom Left bar (slots 61-72):
F1 through F12
The Main action bar (slots 1-12) keybindings are left unchanged since most players already have these configured.
Action Bar Validation
The frontend now includes an Action Bar Validation feature that checks if your spells are placed in the correct slots. If there are mismatches:
- A warning badge will appear showing the number of issues
- You can click to see which spells need to be moved
- Use the Sync Actionbar button to automatically place spells in the correct slots
Known Limitation: Main Action Bar Slots 11 and 12
The Main Action Bar slots 11 and 12 use the - and = keys respectively. These keys are mapped to OemMinus and OemPlus ConsoleKey values, which are keyboard layout dependent.
Currently, slots 11 and 12 only work correctly with US English keyboard layout.
On non-US keyboard layouts, the physical key that produces - or = may have a different virtual key code. As a workaround:
- Avoid using slots 11 and 12 on the Main Action Bar
- Use the Bottom Right (Numpad) or Bottom Left (F1-F12) action bars instead, which work on all keyboard layouts
Custom Actions (BindPad)
The BindPad addon is bundled in Addons/BindPad/ and is required for TBC Classic 2.5.5+ compatibility. Blizzard patched SecureActionButtonTemplate macrotext in recent clients, breaking dynamically created secure buttons. BindPad’s button works due to its initialization approach.
How It Works
The addon uses BindPad’s secure macro button (BindPadMacro) internally to execute custom actions like StopAttack and ClearTarget. These are bound to keys automatically on first run.
| Action |
Default Key |
What It Does |
| Stop Attack |
Alt-Delete |
Stops attacking and cancels casting |
| Clear Target |
Alt-Insert |
Clears current target |
| Config Toggle |
Shift-PageUp |
Toggles addon config mode (/<prefix>) |
| Flush State |
Shift-PageDown |
Refreshes addon state (/<prefix>flush) |
Manual Setup
If the bindings were not set up automatically (e.g., you were in combat), run:
/<prefix>actions
Replace <prefix> with your addon’s command prefix (e.g., /dcactions if your prefix is dc).
This creates the secure buttons and binds them to the default keys. The bindings are saved to your current binding set (account-wide or character-specific).
BindPad Setup
BindPad is bundled in Addons/BindPad/ and must be installed:
- Copy the
BindPad folder to your WoW Interface/AddOns/ directory
- Enable the BindPad addon in your addon list
- The DataToColor addon will automatically use BindPad’s secure button for custom actions
Why Alt-Modified Keys?
The custom actions use Alt-modified keys (Alt-Delete, Alt-Insert, etc.) because:
- They work reliably with the PostMessage input method (background key sending)
- They are unlikely to conflict with your existing keybindings
- They avoid accidentally triggering actions when typing in chat
Class Configuration
If one of the Properties is not explicitly mentioned during the configuration or in the examples, you can assume it uses the default value!
Each class has a configuration file in /Json/class/ e.g. the config for a Warrior it is in file Warrior_1.json.
The configuration file determines what spells the character casts, when pulling and in combat, where to vendor and repair and what buffs to consider.
Take a look at the class files in /Json/class/ for examples of what you can do.
Your class file probably exists and just needs to be edited to set the pathing file name.
Understanding Class Configuration
The class configuration controls all aspects of bot behavior. Here’s why each section matters:
| Section |
Purpose |
| Loot/Skin/Herb/Mine |
Controls what the bot does after killing mobs. Enable based on your character’s professions. |
| UseMount |
Speeds up travel between grind spots. Disable if you don’t have a mount or in areas where mounting is problematic. |
| PathFilename |
Defines where the bot walks. Without a path, the bot won’t know where to go. |
| NPCMaxLevels_Above/Below |
Prevents attacking mobs that are too high (dangerous) or too low (no XP). |
| Blacklist |
Avoids specific mobs that cause problems (e.g., quest mobs, mobs with annoying abilities). |
| Pull/Combat/Flee |
The core combat rotation. Pull defines how to start fights, Combat is the main rotation, Flee is emergency escape. |
| NPC |
Defines vendor/repair routes. Essential for extended grinding sessions. |
| Mail/MailConfig |
Automatically sends excess items and gold to another character. Useful for keeping inventory clear during long sessions. |
| Property Name |
Description |
Optional |
Default value |
"Log" |
Should logging enabled for KeyAction(s). Requires restart. |
true |
true |
"LogBagChanges" |
Should bag changes logs enabled for. |
true |
true |
"Loot" |
Should loot the mob |
true |
true |
"Skin" |
Should skin the mob |
true |
false |
"Herb" |
Should herb the mob |
true |
false |
"Mine" |
Should mine the mob |
true |
false |
"Salvage" |
Should salvage the mob |
true |
false |
"UseMount" |
Should use mount when its possible |
true |
false |
"AllowPvP" |
Should engage combat with the opposite faction |
true |
false |
"TargetNeutral" |
Should detect neutral (yellow) nameplates in addition to hostile (red). Enable for starting zones (levels 1-5) where mobs are neutral. |
true |
false |
"AutoPetAttack" |
Should the pet start attacking as soon as possible |
true |
true |
"CrossZoneSearch" |
Allow NPC search across zone boundaries for cross-zone routes |
true |
false |
"KeyboardOnly" |
Use keyboard to interact only. See KeyboardOnly |
false |
true |
| — |
— |
— |
— |
"PathFilename" |
Path to use while alive |
false or Multiple Paths with Requirements |
"" |
"PathThereAndBack" |
While using the path, should go start to and reverse |
true |
true |
"PathReduceSteps" |
Reduce the number of path points |
true |
false |
"SideActivityRequirements" |
List of Requirements to limit when the player should search for target Great for enforcing how closely should follow the path. |
true |
true |
| — |
— |
— |
— |
"Paths" |
Array of PathSettings. Either define this array or use the above properties |
true |
[] |
"Seed" |
Pins the randomness of generated routes so a session replays identically. Unset draws a fresh seed per session and logs it. |
true |
null |
"Mode" |
What kind of behaviour should the bot operate |
true |
Mode.Grind |
"NPCMaxLevels_Above" |
Maximum allowed level above difference to the player |
true |
1 |
"NPCMaxLevels_Below" |
Maximum allowed level below difference to the player |
true |
7 |
"CheckTargetGivesExp" |
Only engage the target if it yields experience |
true |
false |
"Blacklist" |
List of names or sub names which must be avoid engaging |
true |
[""] |
"TargetMask" |
TargetMask — UnitClassification types that allowed to engage with. |
true |
"Normal, Trivial, Rare" |
"NpcSchoolImmunity" |
List of NpcIDs which have one or more SchoolMask immunities |
true |
"" |
"IntVariables" |
List of user defined integer or integer[] variables. See IntVariables |
true |
[] |
"StringVariables" |
List of user defined string variables. See StringVariables |
true |
[] |
| — |
— |
— |
— |
"Pull" |
KeyActions to execute upon Pull Goal |
true |
{} |
"Flee" |
KeyActions to execute upon Flee Goal. |
true |
{} |
"Combat" |
KeyActions to execute upon Combat Goal |
false |
{} |
"AssistFocus" |
KeyActions to execute upon Assist Focus Goal |
false |
{} |
"Adhoc" |
KeyActions to execute upon Adhoc Goals |
true |
{} |
"Parallel" |
KeyActions to execute upon Parallel Goal |
true |
{} |
"NPC" |
KeyActions to execute upon NPC Goal |
true |
{} |
"Wait" |
KeyActions to execute upon Wait Goal |
true |
{} |
| — |
— |
— |
— |
"Mail" |
Enable mail functionality |
true |
false |
"MailFilename" |
External mail config file path (relative to Json/mail/) |
true |
"" |
"MailConfig" |
Inline mail configuration object. See Mail Goal |
true |
{} |
| — |
— |
— |
— |
"GatherFindKeys" |
List of strings for switching between gathering profiles |
true |
string[] |
| — |
— |
— |
— |
| BaseActionKeys |
Description |
Optional |
Default value |
| — |
— |
— |
— |
"Jump.Key" |
Key to Jump |
true |
"Spacebar" |
"Interact.Key" |
Key to Interact with target. Supports modifiers. |
true |
"Alt-Home" |
"InteractMouseOver.Key" |
Key to Interact with mouseover. Supports modifiers. |
true |
"Alt-End" |
"TargetLastTarget.Key" |
Key to Target last target |
true |
"G" |
"ClearTarget.Key" |
Key to clear current target. Supports modifiers. |
true |
"Alt-Insert" |
"StopAttack.Key" |
Key to stop attack. Supports modifiers. |
true |
"Alt-Delete" |
"TargetNearestTarget.Key" |
Key to target nearest enemy |
true |
"Tab" |
"TargetTargetOfTarget.Key" |
Key to target - target of target |
true |
"F" |
"TargetPet.Key" |
Key to target pet |
true |
"Multiply" |
"PetAttack.Key" |
Key to send pet to attack |
true |
"Subtract" |
"TargetFocus.Key" |
Key to target focus (TBC+) or party member 1 (Vanilla). Supports modifiers. |
true |
"Alt-PageUp" |
"FollowTarget.Key" |
Key to follow target. Supports modifiers. |
true |
"Alt-PageDown" |
"Mount.Key" |
Key to use mount |
true |
"O" |
"StandUp.Key" |
Key to stand up / sit down |
true |
"X" |
| — |
— |
— |
— |
"ForwardKey" |
ConsoleKey to be pressed to move forward |
true |
"UpArrow" |
"BackwardKey" |
ConsoleKey to be pressed to move backward |
true |
"DownArrow" |
"TurnLeftKey" |
ConsoleKey to be pressed to turn left |
true |
"LeftArrow" |
"TurnRightKey" |
ConsoleKey to be pressed to turn right |
true |
"RightArrow" |
The following KeyActions are BaseActions: Jump, Interact, InteractMouseOver, TargetLastTarget, ClearTarget, StopAttack, TargetNearestTarget, TargetTargetOfTarget, TargetPet, PetAttack, TargetFocus, FollowTarget, Mount, StandUp.
Note on Modifier Keys: BaseActions that support modifiers can be specified with Shift-, Ctrl-, or Alt- prefixes. For example:
"Interact": {
"Key": "Alt-Home"
},
"ClearTarget": {
"Key": "Alt-Insert"
}
Which are shared and unified among Pull Goal and Combat Goal.
e.g override default KeyActions properties in the Class Configuration file
"Mount": {
"Key": "N0"
},
"Jump": {
"PressDuration": 200
}
TargetMask
Based of UnitClassification API.
| UnitClassification |
| Normal |
| Trivial |
| Minus |
| Rare |
| Elite |
| RareElite |
| WorldBoss |
The mentioned values can be combined together like:
e.g.
"TargetMask": "Normal, Trivial, Rare, Elite, RareElite", // multiple combined
Where Elite and RareElite have been included compared to default.
NpcSchoolImmunity
| SchoolMask |
| None |
| Physical |
| Holy |
| Fire |
| Nature |
| Frost |
| Shadow |
| Arcane |
Defined as KeyValuePair where the key is the NPC Id and the value is the type of SchoolMask type is immune against.
The mentioned values can be combined together like:
e.g.
"NpcSchoolImmunity": {
"1043": "Shadow", // single
"9026": "Fire",
"1668": "Fire, Shadow, Arcane" // multiple combined
}
KeyboardOnly
By Default, the bot attempts to use the mouse for the following reasons:
Follow Route Goal Targeting non blacklisted npcs
Loot Goal and Skinning Goal while acquiring target
You can disable this behavior by setting KeyboardOnly to true in the Class Configuration. Which has the following effects:
Loot limited, only capable of looting by selecting last target. So after each killed mob only the last npc can be looted.
- GatherCorpse(
Skin, Herb, Mine, Salvage) unavailable.
- Target selection limited to only
TargetNearestTargetKey, which significantly reduce how quickly can find the next target.
IntVariables
Gives the ability to the user to define global integer variables along the whole Class Configuration scope.
Each value can be either a single integer or an array of integers. Array values are useful for aura prefixes (Buff_, Debuff_, TDebuff_, TBuff_, FBuff_) where you want to check if any of several icon IDs is active. The variable evaluates to the maximum remaining time across all IDs in the array, so Debuff_POISON > 1 is true when any of the listed poisons is active.
For example look at the Warlock profiles.
"IntVariables": {
"DOT_MIN_HEALTH%": 35,
"TDebuff_Frost Fever": 237522, // iconId https://www.wowhead.com/icons
"TDebuff_Blood Plague": 237514, // iconId https://www.wowhead.com/icons
"FBuff_Rejuvenation": 12345,
"Buff_Slice and Dice": 99999,
"Debuff_Poison": 135368,
"TBuff_Dispel on Target": 16846,
"Item_Soul_Shard": 6265,
// ...
// ...
"ITEM_ARROW": 2512,
"MIN_COUNT_ARROW": 200,
"AMMO_SLOT": 5
}
Array syntax — group multiple icon IDs under a single variable:
"IntVariables": {
"Debuff_POISON": [136006, 136007, 136016, 136064, 136067, 136077, 136093, 134437, 132273, 132274, 132105],
"Debuff_DISEASE": [136127, 136134, 134324, 135914]
}
Then use a single requirement instead of chaining many || conditions:
"Requirements": ["Debuff_POISON > 1 || Debuff_DISEASE > 1"]
StringVariables
Similar as IntVariables just for string values
Note: if the value matches any of the IntVariables key, the value will be replaced with the IntVariable value.
When the variable name starts with $ITEM_NAME the value will be replaced with the Item English localized, in this example Rough Arrow.
When the variable name starts with $NPC_NAME the value will be replaced with the NPC English localized name.
"StringVariables": {
"$ITEM_NAME_ARROW": "ITEM_ARROW",
"$AMMO_SLOT": "AMMO_SLOT"
}
Path
The path that the player follows during Follow Route Goal, its a json file under /Json/path/ which contains a list of x,y,z coordinates while looking for mobs.
PathSettings
| Property Name |
Description |
Optional |
Default value |
"PathFilename" |
Path to use while alive |
false, unless "Generate" is set |
"" |
"Generate" |
Generate the route from spawn data instead of a file |
true |
null |
"Id" |
Must be a Unique Integer value to identify PathSettings. |
true |
"Auto incremented from zero" or "Unless specified by user." |
"PathThereAndBack" |
While using the path, should go start to and reverse |
true |
true |
"PathReduceSteps" |
Reduce the number of path points |
true |
false |
"SideActivityRequirements" |
List of Requirements to limit when the player should search for target Great for enforcing how closely should follow the path. |
true |
true |
Simple approach
When the below properties are defined in the Class Configuration, a new PathSettings instance is created under in Paths array as the first element.
"Id": 42, // Optional - Helps identify the path
"PathFilename": "_pack\\1-20\\Dwarf.Gnome\\1-4_Dun Morogh.json.json", // the path to walk when alive
"PathThereAndBack": true, // if true walks the path and the walks it backwards.
"PathReduceSteps": true, // uses every other coordinate, halve the coordinate count
"SideActivityRequirements": [ "PathDist_0 < 10" ] // Limit when should search for target, note if multiple paths are used _0 has to be changed accordingly
I keep the previously mentioned properties for backward compatibility and also if you not interested in changing path during runtime.
Example can be found under Warrior_1.json.
Multiple Paths with Requirements
With the latest update it is possible to change between multiple paths during runtime.
In that case properties what mentioned in Simple approach are ignored.
Instead using another structure called Class Configuration.Paths array, which is very similar, however there is an additional Requirements field. Backed by PathSettings object.
Let’s look at the following example
- It is really important to always have one
Path which doesn’t have any condition, serves as fallback.
- 3 paths defined here. 2 with conditions and 1 with fallback(no requirements which means it can always run)
- The definition order matters, the first element has the highest priority, while the last element in the array has the lowest.
- Each path is added as a new Follow Route Goal with a custom cost. The base cost is 20, and its auto incremented by
0.1f. So you can even add your own logic in between the goals.
- Each Follow Route Goal component preserves it state from the last execution time.
- It can accept Requirements as condition.
"Paths": [
{
"PathFilename": "1-5_Gnome.json", // Only runs when the player is below level 4
"PathThereAndBack": false,
"PathReduceSteps": false,
"Requirements": [
"Level < 4"
]
},
{
"PathFilename": "_pack\\1-20\\Dwarf.Gnome\\1-4_Dun Morogh.json", // Only runs when the player is at least level 4 but below level 5
"Requirements": [
"Level < 5"
]
},
{
"PathFilename": "_pack\\1-20\\Dwarf.Gnome\\4-6_Dun Morogh.json", // Runs when the player is at least level 5
"PathThereAndBack": false,
"PathReduceSteps": false
}
],
The previously mentioned example can be found under Hunter_1.json.
Generated Routes
Instead of pointing at a recorded file, a path can describe what to grind and let the bot
build the route from the running client’s own NPC spawn data and the baked navmesh.
This exists because a recorded route is tied to one race, one level band and one client - and
the Cataclysm/Mists zone revamps moved the world, so routes recorded on Classic/TBC/Wrath do
not survive there. The spawn data is already partitioned per client, so the same profile entry
produces a valid route on every one.
"Paths": [
{
"Generate": {
"Subzone": "Northshire Valley",
"Mobs": "Name:Wolf || Name:Kobold",
"Mode": "Wander"
},
"Requirements": [ "Level < 5", "Race:Human" ]
},
{
"Generate": {
"Zone": "Elwynn Forest",
"Mobs": "Type:Humanoid && Level <= PlayerLevel + 2 && !Elite"
},
"Requirements": [ "Level </prefix></prefix></prefix></prefix></prefix></prefix></prefix></era></era>
> README 内容过长,已截取前 64 KB。完整内容请前往 GitHub 仓库查看。
评论