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 package tries to emulate the behaviour of syntax proposed in PEP 671 via a decorator

Late-Bound Arguments This package tries to emulate the behaviour of syntax proposed in PEP 671 via a decorator. Usage Mention the names of the argumen

Shakya Majumdar 0 Feb 06, 2022
Hack CMU Go Local Project

GoLocal A submission for the annual HackCMU Hackathon. We built a website which connects shopper with local businesses. The goal is to drive consumers

2 Oct 02, 2021
NFT generator for Solana!

Solseum NFT Generator for Solana! Check this guide here! Creating your randomized uniques NFTs, getting rarity information and displaying it on a webp

Solseum™ VR NFTs 145 Dec 30, 2022
3D Printed Flip Clock Design and Code

Smart Flip Clock 3D printed smart clock that puts a new twist on old technology. Making The Smart Flip Clock The first thing that must be done for thi

Thomas 105 Oct 17, 2022
Tool to generate wrappers for Linux libraries allowing for dlopen()ing them without writing any boilerplate

Dynload wrapper This program will generate a wrapper to make it easy to dlopen() shared objects on Linux without writing a ton of boilerplate code. Th

Hein-Pieter van Braam 25 Oct 24, 2022
E5自动续期

AutoApi v6.3 (2021-2-18) ———— E5自动续期 AutoApi系列: AutoApi(v1.0) 、 AutoApiSecret(v2.0) 、 AutoApiSR(v3.0) 、 AutoApiS(v4.0) 、 AutoApiP(v5.0) 说明 E5自动续期程序,但是

34 Feb 20, 2021
Fonts used to be an install-and-forget thing, but many of are now updated regularly.

Your font manager. Fonts used to be an install-and-forget thing, but many of are now updated regularly. fontman helps you keep track of the fonts you

Nico Schlömer 20 Feb 07, 2022
Shutdown Time - A pretty much useless application that allows you to shut your computer down in x time with a GUI.

A pretty much useless application that allows you to shut your computer down in x time with a GUI. Should eventually support Windows (all versions), Linux (v2.0+), MacOS (probably with Linux, idk)

1 Nov 08, 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
100 Days of Python Programming

100 days of Python Following the initiative of my friend Helber Belmiro, who is almost done with his 100 days of Java, I have decided to start my 100

Henrique Pereira 19 Nov 08, 2021
A Web app to Cross-Seed torrents in Deluge/qBittorrent/Transmission

SeedCross A Web app to Cross-Seed torrents in Deluge/qBittorrent/Transmission based on CrossSeedAutoDL Require Jackett Deluge/qBittorrent/Transmission

ccf2012 76 Dec 19, 2022
Location of public benchmarking; primarily final results

CSL_public_benchmark This repo is intended to provide a periodically-updated, public view into genome sequencing benchmarks managed by HudsonAlpha's C

HudsonAlpha Institute for Biotechnology 15 Jun 13, 2022
Simple python script for AD enumeration

AutoAD - Simple python script for AD enumeration This tool was created on my spare time to help fellow penetration testers in automating the basic enu

Mohammad Arman 28 Jun 21, 2022
You will need to install a few python packages for this one.

Features Bait support Auto repair will repair every 10 catches Anti detection (still a work in progress) but using random times and click positions Pr

12 Sep 21, 2022
EDF R&D implementation of ISO 15118-20 FDIS.

EDF R&D implementation of ISO 15118-20 FDIS ============ This project implements the ISO 15118-20 using Python. Supported features: DC Bidirectional P

30 Dec 29, 2022
A comprensive software collection for nmea manipulation

nmeatoolkit A comprensive software collection for nmea manipulation; it includes a library and a collections of command line tools. Library pipes: con

Davide Gessa 1 Sep 14, 2022
ClamNotif: A tool to send you ClamAV notifications

A tool to forward notifications to different recipients categorised by two severity levels of the regular health reports produced by `clamscan` bundled with the ClamAV antivirus engine.

PiSoft Company Ltd. 1 Nov 15, 2021
A web app for presenting my research in BEM(building energy model) simulation

BEM(building energy model)-SIM-APP The is a web app presenting my research in BEM(building energy model) calibration. You can play around with some pa

8 Sep 03, 2021
Org agenda in the console

This Python script reads an org agenda file (i.e. a regular org file with some active dates) and displays an interactive and colored year calendar with detailed information for each day when the mous

Nicolas P. Rougier 113 Jan 03, 2023
rebalance is a simple Python 3.9+ library for rebalancing investment portfolios

rebalance rebalance is a simple Python 3.9+ library for rebalancing investment portfolios. It supports cash flow rebalancing with contributions and wi

Darik Harter 5 Feb 26, 2022