Compare commits

...
58 Commits
Author SHA1 Message Date
aeon0 a1404f6f4f indent issue 2021-11-10 20:40:49 +01:00
Mitchell Gleedandaeon0 90cadb4843 Add gold to param/asset, prevent attempts to stash gold, and asset renaming (#9)
* add gold and fix asset names

* add gold and fix asset names

* add gold and fix asset names

* add gold and fix asset names

* Update src/pickit.py

Co-authored-by: aeon0 <[email protected]>
2021-11-10 20:30:56 +01:00
aeon0 730b68b2db update webhook 2021-11-10 20:11:03 +01:00
aeon0 3d36d9286b Bump version to v0.2.2 2021-11-10 20:03:54 +01:00
aeon0 ecf82eeaac dont spam the drop-log! 2021-11-10 20:03:25 +01:00
aeon0 0a4645769e actually use mingw64 on compiling 2021-11-10 19:29:00 +01:00
aeon0 a6d880b2c3 Bump version to 0.2.1 2021-11-10 18:55:27 +01:00
aeon0 f5add914ef adjust slow walk param 2021-11-10 18:55:19 +01:00
aeon0 2cd540e3ec increase item find threshold again to avoid confusion 2021-11-10 18:50:14 +01:00
aeon0 2ebbf02cfc Merge branch 'master' of https://github.com/aeon0/botty 2021-11-10 18:37:52 +01:00
aeon0 b3bed8a1fe discord integration for drops and getting stuck 2021-11-10 18:37:41 +01:00
aeon0 8ef3362cff fix some pickit issues, lower item thresholds 2021-11-10 17:43:29 +01:00
aeon0 9526d4c56e update readme.md 2021-11-10 08:27:37 +01:00
aeon0 efaf48608c Bump version to v0.2.0 2021-11-09 19:41:43 +01:00
aeon0 f42b7a83c3 fix(template): Remove useless template 2021-11-09 19:41:21 +01:00
aeon0 24cd471db7 feat(template): Increase search scale 2021-11-09 19:33:52 +01:00
aeon0 d69967af74 fix(config): Random config force to bool 2021-11-09 19:23:10 +01:00
aeon0 80beb88c4b feat(pather): Bring back static routs as option 2021-11-09 19:00:16 +01:00
aeon0 bd36bcab25 fix(char): Increase cast rate to be on the safe side 2021-11-09 18:03:49 +01:00
aeon0 8a006fc39f feat(pather): Prevent useless logging 2021-11-09 18:02:59 +01:00
aeon0 6eaabc4f4b bot(cmd): Change "Start Screen" 2021-11-09 18:02:24 +01:00
aeon0 02790f3e2a parma(colors): A bit wider ranges for colors 2021-11-09 17:55:54 +01:00
aeon0 860d6e55b0 fix(ui): Change save exit btn to be highlight independet 2021-11-09 17:54:56 +01:00
aeon0 c64daabed6 fix(death): Give death manager time to pick up on possible death after chicken 2021-11-09 12:37:48 +01:00
jagarop 53a4601de5 fix(pickit): remove duplicated assets 2021-11-09 09:21:47 +01:00
aeon0 46879379b9 doc(md): Additional info about tps 2021-11-09 08:04:03 +01:00
aeon0 c17117d56b Merge branch 'master' of https://github.com/aeon0/botty 2021-11-09 07:37:49 +01:00
aeon0 64d3941714 doc(md): Shopping feature and tp info 2021-11-09 07:37:41 +01:00
jagarop d1abb21511 refactor(pickit): Lower case item names for backwards compatibility 2021-11-09 07:34:17 +01:00
aeon0 2cdab92ba9 feat(bot): Go shopping! 2021-11-08 23:43:58 +01:00
aeon0 efabf671d0 feat(pather): Lazurak pathing 2021-11-08 22:37:44 +01:00
aeon0 3de6824156 fix(pickit): Correct bad indent 2021-11-08 22:26:55 +01:00
aeon0 cc3372d286 feat(pickit): Correct blacklist item names 2021-11-08 22:22:57 +01:00
aeon0 cbfacdac03 Merge branch 'master' of https://github.com/aeon0/botty 2021-11-08 22:22:25 +01:00
aeon0 91e5c18f11 Merge pull request #5 from Sp3cialk29/master
feat(pickit): Expanded pickit items and defined new naming convention
2021-11-08 22:21:30 +01:00
Sp3cialk29 a0e1e0cb53 Merge branch 'master' of https://github.com/Sp3cialk29/botty 2021-11-08 14:18:46 -07:00
Sp3cialk29 18f93d70f3 Cleaned up some item images and added back bl_ items 2021-11-08 14:18:32 -07:00
Sp3cialk29andaeon0 ea8a382448 Update src/item_finder.py
Co-authored-by: aeon0 <[email protected]>
2021-11-08 14:13:03 -07:00
Sp3cialk29 eaa2d67c42 Renamed all item references to lower case, added line 52 to item_finder.py to catch any uppercase characters 2021-11-08 14:08:05 -07:00
aeon0 10d912ba25 feat(npc): Add larzuk as NPC 2021-11-08 21:48:20 +01:00
aeon0 d442090ffe Merge branch 'master' of https://github.com/aeon0/botty 2021-11-08 20:53:15 +01:00
aeon0 52b1fc2f20 feat(bot): Randomize order of runs 2021-11-08 20:53:08 +01:00
Sp3cialk29 18aa8aba58 Expanded pickit items and defined new naming convention 2021-11-08 12:40:21 -07:00
aeon0 8ece6cfa59 Merge pull request #4 from mgleed/ctrl_click_hold
fix(stashing): Brief hold left click when Ctrl+click in stash
2021-11-08 19:20:49 +01:00
aeon0 3a7183a834 feat(stuff): Few optimizations 2021-11-08 16:45:29 +01:00
aeon0 af655cafaf fix(pather): Increase globe size to not click on it 2021-11-08 16:42:46 +01:00
aeon0 5a07a69839 fix(chicken): Release alt before pressing esc 2021-11-08 16:28:23 +01:00
aeon0 8a0da4993c refactor(mouse): Remove debug prints 2021-11-08 16:17:34 +01:00
aeon0 7ff5bdce7b fix(pickit): Force tp when moving to items 2021-11-08 16:16:48 +01:00
aeon0 7181494a86 feat(mouse): Nicer mouse movement 2021-11-08 16:14:30 +01:00
mgleed 79edfaf163 add brief left click hold to avoid one type of d2r ctrl+click stashing bug 2021-11-08 08:51:54 -05:00
aeon0 2fd3ce763a doc(char): Add attack sequence params to docs 2021-11-08 08:48:44 +01:00
aeon0 32c34fdfb4 Merge branch 'master' of https://github.com/aeon0/botty 2021-11-08 08:23:27 +01:00
aeon0 1168210420 fix(pindle): Add addtional template at start cause of cta delay and merc 2021-11-08 08:23:17 +01:00
aeon0 b289e4cbb5 feat(atk): Config for attack length 2021-11-08 08:17:06 +01:00
aeon0 a588a5c9e6 fix(pindle): Only move away from items if last run 2021-11-08 07:43:17 +01:00
aeon0 3f19c02f30 fix(cta): Switch order and make quicker 2021-11-08 07:40:18 +01:00
aeon0 f34d746556 Bump version to v0.1.3 2021-11-08 07:16:23 +01:00
213 changed files with 871 additions and 343 deletions
+23 -15
View File
@@ -1,8 +1,10 @@
# <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 in online mode! [**Download here**](https://github.com/aeon0/botty/releases)
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!
[**Download here**](https://github.com/aeon0/botty/releases). Got to have a [**Discord**](https://discord.gg/CnkfsjqN) nowadays I guess :man_shrugging:
Join the [**Discord Channel**](https://discord.gg/CnkfsjqN) for help and discussions.
And please. I urge you to actually read that README! It will make your life a lot easier.
[![Watch the video](assets/docs/video_thumbnail.png)](https://vimeo.com/641410429)
@@ -13,35 +15,32 @@ Join the [**Discord Channel**](https://discord.gg/CnkfsjqN) for help and discuss
- Prebuff
- Revive Merc if dead
- Heal at Malah if needed
- Shop for tps and repair at Lazurk
- Take potions (health and mana) and chicken if in trouble during fights
- Check for death. In this case start another game and pick up corpse.
- Supported builds: Sorceress (Blizz, Light, Meteor), Hammerdin
- Debug color checker to easily verify your settings
- Auto Settings and Debug Color Mode to easily verify your settings
- Runs in Hyper-V
- Highly configurable, consult the param.ini section for more details
## Getting started
### 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. The important ones are listed here:
- Resolution: 1920x1080 (Fullscreen)
- Gamma: 155
- Item Label Display: Hold
- Large Font Mode: on
**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 the bot.
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>
**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
#### Soceress
You can put any skills on left and right attack and see if it works out. E.g. Glacial Spike on left attack and Blizzard or right attack.
Adjust the hotkeys in the __param.ini__ for the `[char]` and `[sorceress]` section accordingly. Check out the param.ini section in the Readme for more details on each param.
Adjust the hotkeys in the __custom.ini__ or __param.ini__ for the `[char]` and `[sorceress]` section accordingly. Check out the param.ini section in the Readme for more details on each param.
#### Hammerdin
Your standard Hammerdin with Enigma. Dont think I have to explain much here.
Your standard Hammerdin with Enigma. Dont think I have to explain much here. Same story as with sorc, set up your skills in the .ini file to what you have in D2R or the other way around. When running more than just pindle or shenk you need to start with a full tomb of tps in your inventory.
### 3) Start Location
Open up D2R and wait till you are at the hero selection screen. Make sure the char you running with is selected and will be in A5 hell when starting a hell game.
### 5) Start Botty
Download the a prebuilt release [here](https://github.com/aeon0/botty/releases). Start `run.exe` in the botty folder, go to D2R window and press the "resume" key. Move to your D2R window and press "f11". You can always force stop botty with f12.
Download the a prebuilt release [here](https://github.com/aeon0/botty/releases). Start `run.exe` in the botty folder. Move 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>
@@ -69,6 +68,10 @@ min_game_length_s | Games must have at least this length, will wait in hero sele
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
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.
send_drops_to_discord | If 1 sends your drops to the discord channel "drop-log"
custom_discord_hook | If 1 sends a message about drops to this hook and will update you in case botty got stuck and can not resume
[routes] | Descriptions
--------------------------------|---------------------------------------------
@@ -80,6 +83,11 @@ 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.
static_path_pindle | If set to 1, the pathing is done by staticly recorded screen positions. Otherwise it uses reference templates
static_path_eldritch | If set to 1, the pathing is done by staticly recorded screen positions. Otherwise it uses reference templates
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
num_loot_columns | Number of columns in inventory used for loot (from left!). Remaining space can be used for charms
take_health_potion | Health percentage when healing potion will be used
take_mana_potion | Mana percentage when mana potion will be used. Currently belt managment is not very clever and it is safest to only pick up health pots and make sure mana reg is enough for pindle to not need mana pots.
@@ -119,4 +127,4 @@ blessed_hammer | Hotkey for Blessed Hammer
item_type | Select "1" if item should be picked up, "0" if not.
## Support this project
This project is free. Support it by contributing in any technical way, giving feedback, PRs or by submitting issues. That being said, I am not above accepting some pixel currency :) So if you want to send some fg my way to keep my dopamine high, here is my jsp: [jojo22](https://forums.d2jsp.org/user.php?i=768967).
This project is free. Support it by contributing in any technical way, giving feedback, PRs or by submitting issues. That being said, I am not above accepting some pixel currency :) So if you want to send some fg my way to keep my dopamine high, here is my d2jsp: aeon0 (https://forums.d2jsp.org/user.php?i=768967).

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 9.6 KiB

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Some files were not shown because too many files have changed in this diff Show More