Package: py7dtd
py7dtd - A 7 Days to Die tools collectionhttps://7daystodie.com/In this repository are collected tools and scripts for the game 7 Days to Die:Tools for the detection of objects/entitiesScripts for the automatization of actions (mining, crafting, etc.)Aim botsPasscode crackingBlock detectionInstallation (Windows)Clone the module, create a virtual environment and install it:gitclonegit@github.com:tassoneroberto/py7dtd.gitcdpy7dtdpy-3.7-mvenvvenv.\venv\Scripts\Activate.ps1py-mpipinstall.[ai]Note: if you are not interested in "entities detection" or "aimbot" then you can omit[ai]from the above command:py-mpipinstall.Dev modeTo install the package in edit mode (for developers) specify-e:py-mpipinstall-e.[ai]Dependencies for entities detectionDisclaimer: an NVIDIA® GPU card with CUDA® architectures 3.5, 3.7, 5.2, 6.0, 6.1, 7.0 or higher is required. See the list of CUDA®-enabled GPU cards (https://developer.nvidia.com/cuda-gpus).Install the following dependencies:C++ redistributable (https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads)NVIDIA® GPU drivers —CUDA® 11.2.1 (https://www.nvidia.com/drivers)CUDA® Toolkit 11.1 (https://developer.nvidia.com/cuda-toolkit-archive)cuDNN SDK 7.6 (https://developer.nvidia.com/cudnn)(More info here:https://www.tensorflow.org/install/gpu)In order to use the module you need ax64version ofPython 3.7.x.
You can download it at this page:https://www.python.org/downloads/windows/Download link:https://www.python.org/ftp/python/3.7.9/python-3.7.9-amd64.exeYou also need to download the trained model (https://github.com/tassoneroberto/py7dtd/releases/download/v0.2/model.h5) for the entities detection and move it tosrc/ai/models/v2/.OptionalTo be able to train a model you need to download theImageAI's pre-trained model (https://github.com/OlafenwaMoses/ImageAI/releases/download/essential-v4/pretrained-yolov3.h5) and move it to./src/ai/.Entities detection❗ Under development ❗Simple entities detector using AI (Computer Vision).The objects detection (trees, zombies, etc.) is done usingImageAI:https://github.com/OlafenwaMoses/ImageAI/The annotation of the images has been done using the toollabelImg:https://github.com/tzutalin/labelImgProof of conceptAim bot❗ Under development ❗Simple aim bot capable of:Detect zombies/playersMove the mouse to the targetShootUsagepy7dtd_auto_shooting--delay200Note: PressESCto interrupt the bot.Command line argumentsThe following table is listing all the arguments that can be specified:argdescriptiondefaulthelpArguments descriptionN/AdelayTime in ms between each screenshot500outputOutput folder./auto_shootingPasscode cracking❗ Under development ❗Bruteforce/dictionary attack on chests/doors passcode.UsageIt is recommended to set the game in window mode with a resolution of 640x480.Example of a bruteforce attack testing passcodes of 2-10 characters length composed of digits and lowercase characters, with a delay of 20ms between each try, a limit of 100 tries and a timeout of 60 seconds.Note: PressESCto interrupt the bot.py7dtd_crack_passcode--brute--digits--lower--min2--max10--delay20--limit100--timeout60Get the arguments list with thehelpfunction:py7dtd_crack_passcode--helpExample of a dictionary attack with a delay of 30ms between each try and no limit in tries.py7dtd_crack_passcode--dict--dictpath./dictionaries/top1000.txt--delay30Note: dictionaries can be found athttps://github.com/danielmiessler/SecLists/tree/master/Passwords.Command line argumentsThe available methods arebruteforce attack(--brute) anddictionary attack(--dict).The following table is listing all the arguments to use for each method:argdescriptiondefaulttypehelpArguments descriptionN/AN/AminMinimum length1brutemaxMaximum length20brutedigitsInclude digitsFalse**brutelowerInclude lowercase charactersFalse**bruteupperInclude uppercase charactersFalse**brutespecialInclude special charactersFalse**brutedictpathDictionary file path./dictionaries/top1000.txtdict*limitMaximum number of tries∞brute,dicttimeoutMaximum time in seconds allowed∞brute,dictdelayDelay in ms between each action20brute,dict*This attribute is required ifdictis selected**At least one of these is requiredBlocks detection❗ Under development ❗Detection of block, liketopsoilanddestroyed stoneblocks, by taking screenshots of the map.UsageIt is recommended to set the game in window mode with the highest resolution possible.Specify the blocks to be identified by passing them as arguments (e.g.--topsoil). Specify an output folder (or keep the default one./blocks_detection). Run the script and open the game map by pressingM. PressPto take a screenshot of the map and automatically mark in red the specified blocks. The screenshots, with the block marked, will be saved in the output folder.Note: PressESCto interrupt the script.py7dtd_blocks_detection--topsoil--destroyedGet the arguments list with thehelpfunction:py7dtd_blocks_detection--helpExample of detection of topsoil blocks in the desert biome:Command line argumentsThe following table is listing all the arguments:argdescriptiondefaulthelpArguments descriptionN/AtopsoilTopsoil blocksFalse*destroyedDestroyed stone blocksFalse*outputOutput folder./blocks_detection*At least one of these is required