Giter Site home page Giter Site logo

botty's Introduction

Pixelbot for Diablo 2 Resurrected. This project is for informational and educational purposes only. Feel free to dig around, add stuff, make PRs, or ask questions should you get stuck!

Download here and got to have a Discord nowadays I guess ๐Ÿคทโ€โ™‚๏ธ

Getting started & Prequists

  • D2r needs to be in English Language,
  • Botty currently works with 720p D2r window (will be adjusted automatically on auto settings)

1) Graphics and Gameplay Settings

All settings will automatically be set when you execute main.exe and press the hotkey for "Adjust D2R settings" (default f9). 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. Note: Make sure that no other external programs adapt your graphics settings (HDR, Geforce Experience, etc.)

2) Supported builds

Check the documentation for param.ini further down. Different Sorc builds, Hammardin, Barb, Trapsin are already implemented to different extents. It is quite straightforward to implement new classes. Give it a go if you like!

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 any of Act 3, 4 or 5 in the respective difficulty you set in the param.ini once the bot starts the game.

4) Start Botty

You can either run from python. Follow development.md for that. Or you download the a prebuilt release here (the .rar file!). Start main.exe in the botty folder. Focus your D2R window and press the start key (default f11). You can always force stop botty with f12.

Graphic Debugger

To check if you graphic settings are good and if the bot would pick up items there is a Graphic Debugger Mode. 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. 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.

Development

Check out the development.md docu for infos on how to build from source and details of the project structure and code.

param.ini

All botty configuration files are located in the config folder. To ease the switch to new botty versions, you can also overwrite any of the .ini fields in a custom.ini file. When a new version of botty is released you just copy the file to the new version without having to port all your param.ini changes to the new version. Example:

; custom.ini - overwrites 3 params in the param.ini
[general]
monitor=1

[routes]
run_pindle=1
run_shenk=0
[general] Descriptions
name Name used in terminal and discord messages
monitor Select on which monitor D2R is running in case multiple are available
custom_message_hook Add your own message hook here to get messages about drops and botty status updates, discord webhook is default
logger_lvl Can be any of [info, debug] and determines how much output you see on the command line
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
randomize_runs 0: the order will be as seen in the params.ini. 1: the order will be random
difficulty Set to normal nightmare or hell for game difficulty
discord_status_count Number of games between discord status messges being sent. Leave empty for no status reports.
discord_status_condensed Toggles condensed view of Discord status messages. 0 Full text, 1 Condensed text.
info_screenshots If 1, the bot takes a screenshot with timestamp on every stuck / chicken / timeout / inventory full event. This is 1 by Default, so remember to clean up the folder every once in a while
loot_screenshots If 1, the bot takes a screenshot with timestamp everytime he presses show_items button and saves it to loot_screenshots folder. Remember to clear them once in a while...
saved_games_folder Optional folder path of Diablo 2 : Ressurrected saved games that will be used to overwrite when running the "auto settings"
[routes] Descriptions
run_trav Run Trav in each new game. Select "1" to run it "0" to leave it out. Specific trav gear is suggested
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.
run_nihlatak Run Nihlatak in each new game. Select "1" to run it "0" to leave it out. (Teleport required)
[char] Descriptions
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. If your system has some delay e.g. on vms, you might have to increase this value above the suggest value in the table!
num_loot_columns Number of columns in inventory used for loot (from left!). Remaining space can be used for charms
show_items Hotkey for "show items"
inventory_screen Hotkey to open inventory
force_move Hotkey for "force move"
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
belt_rows Integer value of how many rows the char's belt has
show_belt Hotkey for "show belt"
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
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)
battle_command Hotkey for battle command from cta (only needed if cta_available=1)
stash_gold Bool value to stash gold each time when stashing items
gold_trav_only Hacky config that will restrict gold pickup to trav only. misc_gold must be set to 1 for this to have any effect
use_merc Set to 1 for using merc. Set to 0 for not using merc (will not revive merc when dead), default = 1
atk_len_trav Attack length for hdin fighting trav (note this atk length will be applied in 4 different spots each)
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
atk_len_nihlatak Attack length for hdin or number of attack sequences for sorc when fighting nihlatak
take_health_potion Health percentage when healing potion will be used. e.g. 0.6 = 60% helath
take_mana_potion Mana percentage when mana potion will be used
take_rejuv_potion_health Health percentag when rejuv potion will be used
take_rejuv_potion_mana Mana percentag when rejuv potion will be used
heal_merc Merc health percentage when giving healing potion to merc
heal_rejuv_merc Merc health percentage when giving rejuv potion to merc
chicken Will chicken (leave game) when player health percentage drops below set value, range 0 to 1. Set to 0 to not chicken.
merc_chicken Will chicken (leave game) when merc health percentage drops below set value, range 0 to 1. Set to 0 to not chicken.
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
pre_buff_every_run 0: Will only prebuff on first run, 1: Will prebuff after each run/boss

Builds

[sorceress] Descriptions
teleport Required Hotkey for teleport
frozen_armor Optional Hotkey for frozen armor (or any of the other armors)
energy_shield Optional Hotkey for energy shield
thunder_storm Optional Hotkey for thunder storm
[light_sorc] Descriptions
chain_lightning Optional Hotkey for chain_lightning (must be bound to left skill)
lightning Required Hotkey for lightning (must be bound to right skill)
[blizz_sorc] Descriptions
ice_blast Optional Hotkey for ice_blast (must be bound to left skill)
blizzard Required Hotkey for Blizzard (must be bound to right skill)
[hammerdin] Descriptions
teleport Optional Hotkey for teleport. If left empty hammerdin will run instead of teleport.
concentration Required Hotkey for Concentration
holy_shield Required Hotkey for Holy Shield
blessed_hammer Required Hotkey for Blessed Hammer. (Must be set as left skill!)
redemption Optional Hotkey for redemption
vigor Optional Hotkey for vigor
[trapsin] Descriptions
teleport Optional Hotkey for teleport. If left empty trapsin will run instead of teleport.
skill_left Optional Hotkey for Left Skill
burst_of_speed Optional Hotkey for Burst of Speed
fade Optional Hotkey for Fade
shadow_warrior Optional Hotkey for Shadow Warrior
lightning_sentry Required Hotkey for Lightning Sentry
death_sentry Required Hotkey for Death Sentry
[barbarian] Descriptions
teleport Optional Hotkey for teleport. If left empty barb will run instead of teleport.
leap Required Hotkey for Leap
shout Required Hotkey for Shout
war_cry Required Hotkey for War Cry
find_item Optional Hotkey for Find Item
[dclone] Descriptions
region_ips Start of the region ip you want to filter for. e.g. EU Server = 37.244.11, 37.244.48
dclone_hotip Hot ip you are looking for. Botty will stay in game and message you if a message_hook is set
[advanced_options] Descriptions
pathing_delay_factor A linear scaling factor, between 1 and 10, applied to pathing delays.
message_headers Headers that are sent with each messages
message_body_template Message body of the post message sent
message_highligh 0: Send messages as is, 1: Uses message highlighting for discord

Support this project

Support it by contributing in any technical way, giving feedback, bug reports or submitting PRs.

botty's People

Contributors

aeon0 avatar aliig avatar jagarop avatar ggodev avatar reqyl avatar egut125 avatar bjoerm avatar sp3cialk29 avatar cr4zyeight avatar master-matt avatar d2rlegit avatar kozfelipe avatar jrzheng avatar navy91 avatar yhkinsar avatar cesarvargas00 avatar dcolondev avatar dougouk avatar ethanjian avatar swepow avatar bobcho avatar cpamabotte avatar cutebeast avatar jobithu avatar wittekin avatar nekolr avatar stephan-01010011 avatar tw1st40 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.