A python script based on OpenCV-Python, you can automatically hang up the Destiny 2 Throne to get the Dawning Essence.

Overview

Destiny2 Dawning Essence Throne

基于OpenCV-Python的命运2全自动挂机破碎王座刷曙光精华脚本。

万万没想到,我刚写好脚本,棒鸡就更新并修复了这个bug,现在已经刷不了,但还是放上来,做个纪念吧。

准备工作

安装python

首先去Python官网下载python并安装。

注意要点击这个添加python到环境变量的选项

然后随便打开个

安装依赖

首先把整个项目文件夹下载下来,然后打开文件夹,按住shift + 鼠标右键,选择打开powershell

输入:

py

有输出,便是Python安装成功了,然后输入exit()退出。

修改pip的源为阿里云源输入:

py -m pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/

接着安装依赖:

py -m pip install -r requirements.txt

截图

因为是基于OpenCV-Python,那么图肯定是必不可少的。

因为根据每台电脑设置及分辨率不同,截图也不尽相同,为了提高识别效率,建议做好设置后重新截图并按照要求命名。

其中火力战队如果是三人的话,应该截两站图,因为考虑到两个队员加入队伍顺序可能不一样。

如果只有一个队员可以只截一张图,另一张不用管

  • 轨道的导航按钮----navigationBtn.png
  • 目的地幽梦之城----cityBtn.png
  • 破碎王座图标----throneBtn.png
  • 副本开始按钮----startgameBtn.png
  • 轨道火力战队----team.png team2.png
  • ESC后更改角色----switchBtn.png
  • 点击更改角色后确认按钮----confirmBtn.png
  • 切换角色界面角色按钮----roleBtn.png
  • 进入副本后左下角技能----abilities.png
  • 组队错误提示----error.png
  • 组队成功提示----success.png
  • 聊天输入框右边输入法提示----input.png

关于组队失败怎么截图,直接在聊天框输入:

/j 大佬#6666

然后即可看到组队失败了。

进度

车头当然要有破碎王座尾王的死亡进度啦,具体怎么卡这个进度可以去B站搜一下,很简单。

使用

车头

作为车头,也就是工具人视角,拿不到曙光精华的那种。

首先打开游戏,飞回轨道。

按照上面的步骤在文件夹打开powershell,然后输入:

py ./leader.py

再点开游戏窗口(建议将各种画面设置调到最低,并开启窗口模式),就可以了等待队友加入了。

队员

作为队员,首先注意车头的名字。

因为命运2的这个聊天输入框,无法使用pyautogui或者PyKeyboard复制粘贴,绞尽脑汁也不行,所以只能取消救国。

车头为英文名

用记事本打开member.py,将这里的inputCodeEn前的#删除,并在inputCodeCn前加上#,于是变成这样。

if compareImg('./img/input.png') != 0: 
    #inputCodeCn();
    inputCodeEn();

然后修改队伍码,就是这一句:

pg.typewrite('/j bigBro#6666', interval = 0.2);

保存即可。

车头为中文名

首先打开中文输入法,然后一次输入中文名每个字的首字母,再搜寻到完整的中文名,做到只输入首字母就可以打出中文名。

然后用记事本打开member.py,修改这一句的首字母:

pg.typewrite('dl1', interval = 0.2);

这个数字1不要漏了,因为这就是要用到中文输入法。

还要修改为车头的序号:

pg.typewrite('#6666', interval = 0.2);

最后保存。

做完配置后首先打开游戏窗口(建议将各种画面设置调到最低,并开启窗口模式),飞回轨道,并将输入法调到中文,然后按shift使输入法在英文状态(就是按shift输入英文,再按shift又可以输入中文)。

按照上面的方法打开powershell,输入:

py ./member.py

然后再点开游戏窗口即可。

This alerts you when the avalanche score a goal

This alerts you when the avalanche score a goal

Davis Burrill 1 Jan 15, 2022
sfgp is a package that aggregates individual scripts and notebooks, primarily written for the basic analysis tasks of genetics and pharmacogenomics data.

sfgp is a package that aggregates individual scripts and notebooks, primarily written for the basic analysis tasks of genetics and pharmacogenomics data.

Vishal Sarsani 1 Mar 31, 2022
This Curve Editor, written by Jehee Lee in 2015

Splines Abstract This Curve Editor, written by Jehee Lee in 2015, is a freeware. You can use, modify, redistribute the code without restriction. This

Movement Research Lab 8 Mar 11, 2022
Linux Security and Monitoring Scripts

Linux Security and Monitoring Scripts These are a collection of security and monitoring scripts you can use to monitor your Linux installation for sec

Andre Pawlowski 65 Aug 27, 2022
Python library for creating and parsing HSReplay XML files

python-hsreplay A python module for HSReplay support. https://hearthsim.info/hsreplay/ Installation The library is available on PyPI. pip install hsre

HearthSim 45 Mar 28, 2022
Explore-bikeshare-data - GitHub project as part of the Programming for Data Science with Python Nanodegree from Udacity

Date created February 10, 2022 Project Title Explore US Bikeshare Data Descripti

Thárcyla 1 Feb 14, 2022
YunoHost is an operating system aiming to simplify as much as possible the administration of a server.

YunoHost is an operating system aiming to simplify as much as possible the administration of a server. This repository corresponds to the core code, written mostly in Python and Bash.

YunoHost 1.5k Jan 09, 2023
⚙️ Compile, Read and update your .conf file in python

⚙️ Compile, Read and update your .conf file in python

Reece Harris 2 Aug 15, 2022
A Github Action for sending messages to a Matrix Room.

matrix-commit A Github Action for sending messages to a Matrix Room. Screenshot: Example Usage: # .github/workflows/matrix-commit.yml on: push:

3 Sep 11, 2022
Demo content - Automate your automation!

Automate-AAP2 Demo Content - Automate your automation! A fully automated Ansible Automation Platform. Context Installing and configuring Ansible Autom

0 Oct 27, 2022
An app about keyboards, originating from the design of u/Sonnenschirm

keebapp-backend An app about keyboards, originating from the design of u/Sonnenschirm Setup Firstly, ensure that the environment for python is install

8 Sep 04, 2022
Shopify Backend Developer Intern Challenge - Summer 2022

Shopify Backend Developer Intern The task is build an inventory tracking web application for a logistics company. The detailed task details can be fou

Meet Gandhi 11 Oct 08, 2022
flake8 plugin which forbids match statements (PEP 634)

flake8-match flake8 plugin which forbids match statements (PEP 634)

Anthony Sottile 25 Nov 01, 2022
The most hackable keyboard in all the land

MiRage Modular Keyboard © 2021 Zack Freedman of Voidstar Lab Licensed Creative Commons 4.0 Attribution Noncommercial Share-Alike The MiRage is a 60% o

Zack Freedman 558 Dec 30, 2022
Materials and information for my PyCascades 2021 Presentation

Materials and information for PyCascades 2021 Presentation: Sparking Creativity in LED Art with CircuitPython

GeekMomProjects 19 May 04, 2022
tool to automate exploitation of android degubg bridge vulnerability

DISCLAIMER DISCLAIMER: ANY MALICIOUS USE OF THE CONTENTS FROM THIS ARTICLE WILL NOT HOLD THE AUTHOR RESPONSIBLE HE CONTENTS ARE SOLELY FOR EDUCATIONAL

6 Feb 12, 2022
Interfaces between napari and pymeshlab library to allow import, export and construction of surfaces.

napari-pymeshlab Interfaces between napari and the pymeshlab library to allow import, export and construction of surfaces. This is a WIP and feature r

Zach Marin 4 Oct 12, 2022
Binjago - Set of tools aiding in analysis of stripped Golang binaries with Binary Ninja

Binjago 🥷 Set of tools aiding in analysis of stripped Golang binaries with Bina

W3ndige 2 Jul 23, 2022
An addin for Autodesk Fusion 360 that lets you view your design in a Looking Glass Portrait 3D display

An addin for Autodesk Fusion 360 that lets you view your design in a Looking Glass Portrait 3D display

Brian Peiris 12 Nov 02, 2022
Tie together `drf-spectacular` and `djangorestframework-dataclasses` for easy-to-use apis and openapi schemas.

Speccify Tie together drf-spectacular and djangorestframework-dataclasses for easy-to-use apis and openapi schemas. Usage @dataclass class MyQ

Lyst 4 Sep 26, 2022