Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6b869570a4 | ||
|
|
fdcdd90b43 | ||
|
|
e9c877029d | ||
|
|
54e2b818b6 | ||
|
|
b31f999722 | ||
|
|
2b7ca3472c | ||
|
|
55e5ddb384 | ||
|
|
b27ebc7a26 | ||
|
|
e76c2e9904 | ||
|
|
735059f15e | ||
|
|
4e3dfdb7c2 | ||
|
|
589faf2a82 | ||
|
|
2d9634a6d3 | ||
|
|
79fbd1285a | ||
|
|
a0dd945c28 | ||
|
|
f5dad6e79b | ||
|
|
473912417f | ||
|
|
98996c321b | ||
|
|
16b6f9d231 | ||
|
|
00833e3228 | ||
|
|
9911334289 | ||
|
|
5c461f096a | ||
|
|
bc8aea48a8 | ||
|
|
918ccc4f4e | ||
|
|
e5dd04466e | ||
|
|
6bea13545a | ||
|
|
6cf3b4c236 | ||
|
|
9bd9eba6b2 | ||
|
|
d50d6c37fa | ||
|
|
781d9a3494 | ||
|
|
3817638264 | ||
|
|
7e2c8df8db | ||
|
|
f965c36464 | ||
|
|
ece7abb6e8 | ||
|
|
db28973d15 | ||
|
|
585c0ccd85 | ||
|
|
02fe089f68 | ||
|
|
e601e39c98 | ||
|
|
6b1cdc4425 | ||
|
|
be12f8dcd5 | ||
|
|
fd883077e0 | ||
|
|
5267443210 | ||
|
|
ad3925fac8 | ||
|
|
c0bf19912e | ||
|
|
dfe1a7372c | ||
|
|
ab5f006a5f | ||
|
|
d008b14230 | ||
|
|
d12dfec564 | ||
|
|
28156fc50f | ||
|
|
f6edcd89ba | ||
|
|
ab642066cf | ||
|
|
8c04a29d9a |
@@ -16,6 +16,7 @@ botty_v*/
|
||||
custom.ini
|
||||
*info_*.png
|
||||
.vscode
|
||||
.vs/
|
||||
info_screenshots/
|
||||
loot_screenshots/
|
||||
.venv
|
||||
@@ -1,6 +1,6 @@
|
||||
# <img src="assets/docs/header_green.png" width="370">
|
||||
|
||||
Simple Pixelbot for Diablo 2 Resurrected written in python and opencv. Obviously only use it in offline mode as it is against the TOS of Blizzard to use it online!
|
||||
Simple Pixelbot for Diablo 2 Resurrected single player written in python and opencv. Botty does not work for online games and is not intended for this usage!
|
||||
[**Download here**](https://github.com/aeon0/botty/releases). Got to have a [**Discord**](https://discord.gg/Jf3J8cuXWg) nowadays I guess :man_shrugging:
|
||||
|
||||
|
||||
@@ -9,10 +9,10 @@ And please. I urge you to actually read that README! It will make your life a lo
|
||||
[](https://streamable.com/67h9ay)
|
||||
|
||||
## Getting started
|
||||
The bot currently only supports the screen resolutions 1920x1080 and 1280x720. If your monitor has a higher resolution, you need to reduce it to the mentioned once for running the bot.
|
||||
Botty only supports English language! Botty is currently working in 1080p or 720p and will try to adjust the D2R settings accordingly depending on your monitor res and your botty setting for "res" in the [general] section.
|
||||
|
||||
### 1) Graphics and Gameplay Settings
|
||||
All settings will automatically be set when you execute `run.exe` and press the hotkey for "Adjust D2R settings" (default f9). Note that D2R should not run during this process, or if it does you will have to restart afterwards. It is not a 100% thing, in rare cases you might still have to fiddle around with your brightness. I suggest using the "Color Test Mode" to verify your settings.</br>
|
||||
All settings will automatically be set when you execute `run.exe` and press the hotkey for "Adjust D2R settings" (default f9). Note that D2R should not run during this process, or if it does you will have to restart afterwards. It is not a 100% thing, in rare cases you might still have to fiddle around with your brightness. I suggest using the "Graphic Debugger" to verify your settings. Also, there are sample screenshots of how graphics should look like: <a href="/assets/docs/sample_graphics.png">Example 1</a>, <a href="/assets/docs/sample_graphics_2.png">Example 2</a></br>
|
||||
**Note**: There have been issues reported with image sharpening being truned on via the graphic card settings itself outside of D2R. Try turning it off when running botty.
|
||||
|
||||
### 2) Supported builds
|
||||
@@ -30,9 +30,9 @@ Open up D2R and wait till you are at the hero selection screen. Make sure the ch
|
||||
Download the a prebuilt release [here](https://github.com/aeon0/botty/releases). Start `run.exe` in the botty folder. Switch (ALT+TAB) to your D2R window and press the start key (default f11). You can always force stop botty with f12.
|
||||
|
||||
|
||||
## Color Test Mode
|
||||
To check if you graphic settings are good and if the bot would pick up items there is a **Color Test Mode** built in. Start botty and press F10 (Default key). This will open up a (mostly black) window. Start a game in D2R and throw some items of different type on the ground. If you now bring forward the debug window all items should show up with their names while the background is black. If you throw an item on the ground that should be picked up, it will have a red circle.</br>
|
||||
<img src="assets/docs/color_checker.png" width="400">
|
||||
## Graphic Debugger
|
||||
To check if you graphic settings are good and if the bot would pick up items there is a **Graphic Debugger Mode** built in. Start botty and press F10 (Default key). This will open up a (mostly black) window. Start a game in D2R and go to A5. You should see some templates with blue circles detected and scores printed out to the console. E.g. for 720p you should see scores higher 0.8 for the templates. To check item finding, throw some items of different types on the ground. The debug window should show the item names with black background. If you throw an item on the ground that should be picked up, it will have a red circle. The console will print out the scores for each item that would be picked up. Scores should be well above 0.9 for these items.</br>
|
||||
<img src="assets/docs/graphic_debugger.png" width="900">
|
||||
|
||||
## Development
|
||||
Check out the [development.md](development.md) docu for infos on how to build from source and details of the project structure and code.
|
||||
@@ -54,13 +54,10 @@ run_shenk=0
|
||||
name | Name used in terminal and discord messages
|
||||
monitor | Select on which monitor D2R is running in case multiple are available
|
||||
res | Resolution settings can be any of [1920_1080, 1280_720]
|
||||
offset_top | Your D2R windows offset from top of the screen (including the window bar). For fullscreen leave at 0.
|
||||
offset_left | Your D2R window offset from left of screen. For fullscreen leave at 0.
|
||||
min_game_length_s | Games must have at least this length, will wait in hero selection for if game is too quick (to avoid server connection issues)
|
||||
max_game_length_s | Botty will attempt to stop whatever its doing and try to restart a new game. Note if this fails, botty will attempt to shut down D2R and Bnet
|
||||
exit_key | Pressing this key (anywhere), will force botty to shut down
|
||||
resume_key | After starting the exe botty will wait for this keypress to atually start botting away
|
||||
color_checker_key | Pressing this key will start a debug mode to check if the color filtering works with your settings. It also includes the item search and marks items it would pick up with red circles
|
||||
graphic_debugger_key | Pressing this key will start a debug mode to check if the color filtering works with your settings. It also includes the item search and marks items it would pick up with red circles
|
||||
logger_lvl | Can be any of [info, debug] and determines how much output you see on the command line
|
||||
randomize_runs | If 0, the order will always be pindle -> eldritch/shenk. If 1 the order will be random.
|
||||
difficulty | Set to `normal` `nightmare` or `hell` for game difficulty
|
||||
@@ -71,6 +68,7 @@ loot_screenshots | If 1, the bot takes a screenshot with timestamp everytime he
|
||||
[routes] | Descriptions
|
||||
--------------------------------|---------------------------------------------
|
||||
run_pindle | Run Pindle in each new game. Select "1" to run it "0" to leave it out.
|
||||
run_eldritch | Run Eldritch in each new game. Select "1" to run it "0" to leave it out.
|
||||
run_shenk | Run shenk in each new game. Select "1" to run it "0" to leave it out.
|
||||
|
||||
[char] | Descriptions
|
||||
@@ -78,6 +76,7 @@ run_shenk | Run shenk in each new game. Select "1" to run it "0" to leave it out
|
||||
type | Build type. Currently only "sorceress" or "hammerdin" is supported
|
||||
casting_frames | Depending on your char and fcr you will have a specific casting frame count. Check it here: https://diablo2.diablowiki.net/Breakpoints and fill in the right number. Determines how much delay there is after each teleport for example.
|
||||
slow_walk | With this set to 1 the char will have a large delay for each running action in town. Set this to 1 if you keep getting stuck during traversing town.
|
||||
stash_gold | Bool value to stash gold each time when stashing items
|
||||
atk_len_pindle | Attack length for hdin or number of attack sequences for sorc when fighting pindle
|
||||
atk_len_eldritch | Attack length for hdin or number of attack sequences for sorc when fighting eldritch
|
||||
atk_len_shenk | Attack length for hdin or number of attack sequences for sorc when fighting shenk
|
||||
@@ -91,11 +90,15 @@ show_items | Hotkey for "show items"
|
||||
inventory_screen | Hotkey to open up inventory
|
||||
stand_still | Hotkey for "stand still". Note this can not be the default shift key as it would interfere with the merc healing routine.
|
||||
tp | Hotkey for using a town portal
|
||||
belt_rows | Integer value of how many rows the char's belt has
|
||||
show_belt | Hotkey for "show belt"
|
||||
potion1 | Hotkey to take poition in slot 1
|
||||
potion2 | Hotkey to take poition in slot 2
|
||||
potion3 | Hotkey to take poition in slot 3
|
||||
potion4 | Hotkey to take poition in slot 4
|
||||
potion1 | Hotkey to take potion in slot 1
|
||||
potion2 | Hotkey to take potion in slot 2
|
||||
potion3 | Hotkey to take potion in slot 3
|
||||
potion4 | Hotkey to take potion in slot 4
|
||||
belt_rejuv_columns | Number of belt columns for rejuv potions
|
||||
belt_hp_columns | Number of belt columns for healing potions
|
||||
belt_mp_columns | Number of belt columns for mana potions
|
||||
cta_available | 0: no cta available, 1: cta is available and should be used during prebuff
|
||||
weapon_switch | Hotkey for "weapon switch" (only needed if cta_available=1)
|
||||
battle_order | Hotkey for battle order from cta (only needed if cta_available=1)
|
||||
@@ -121,10 +124,11 @@ blessed_hammer | Hotkey for Blessed Hammer
|
||||
[advanced_options] | Descriptions
|
||||
--------------------------------|---------------------------------------------
|
||||
pathing_delay_factor | A linear scaling factor, between 1 and 10, applied to pathing delays.
|
||||
template_threshold | Threshold to find templates used during pathing.
|
||||
|
||||
[items] | Descriptions
|
||||
--------------------------------|---------------------------------------------
|
||||
item_type | 0: Item will not be picked up. 1: Item will be picked up. 2: Item will be picked up and a discord message will be sent.
|
||||
|
||||
## Support this project
|
||||
This project is free. Support it by contributing in any technical way, giving feedback, bug reports or submitting PRs.
|
||||
Support it by contributing in any technical way, giving feedback, bug reports or submitting PRs.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"MaxLuminance": 600,
|
||||
"HDRContrast": 200,
|
||||
"Contrast": 100,
|
||||
"Screen Resolution (Windowed)": "1920x1051",
|
||||
"Screen Resolution (Windowed)": "1280x720",
|
||||
"Resolution Scale": 100,
|
||||
"Sharpening": 6,
|
||||
"Game Resolution": 1,
|
||||
@@ -15,7 +15,7 @@
|
||||
"VSync": 1,
|
||||
"Framerate Cap": 60,
|
||||
"Framerate Target": 0,
|
||||
"Window Mode": 1,
|
||||
"Window Mode": 0,
|
||||
"Graphic Presets": 4,
|
||||
"Texture Quality": 4,
|
||||
"Texture Anisotropy": 0,
|
||||
@@ -38,9 +38,9 @@
|
||||
"Color Blind Mode": 0,
|
||||
"Color Blind Strength": 100,
|
||||
"Show Clock": 1,
|
||||
"Auto Gold Enabled": 1,
|
||||
"Auto Gold Enabled": 0,
|
||||
"Chat Gem Mode": 1,
|
||||
"Item Name Display": 0,
|
||||
"Item Name Display": 1,
|
||||
"Chat Background": 0,
|
||||
"Always Run": 1
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 930 KiB |
|
After Width: | Height: | Size: 3.0 MiB |
|
After Width: | Height: | Size: 2.1 MiB |
|
After Width: | Height: | Size: 1.5 MiB |
|
Before Width: | Height: | Size: 1.9 MiB After Width: | Height: | Size: 1.3 MiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 9.9 KiB |
|
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 3.6 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 4.8 KiB |
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 3.6 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 3.5 KiB |