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

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

A demo Piccolo app - a movie database!

PyMDb Welcome to the Python Movie Database! Built using Piccolo, Piccolo Admin, and FastAPI. Created for a presentation given at PyData Global 2021. R

11 Oct 16, 2022
pgvector support for Python

pgvector-python pgvector support for Python Great for online recommendations 🎉 Supports Django, SQLAlchemy, Psycopg 2, Psycopg 3, and asyncpg Install

Andrew Kane 37 Dec 20, 2022
4Geeks Academy Full-Stack Developer program final project.

Final Project Chavi, Clara y Pablo 4Geeks Academy Full-Stack Developer program final project. Authors Javier Manteca - Coding - chavisam Clara Rojano

1 Feb 05, 2022
Python Service for MISP Feed Management

Python Service for MISP Feed Management This set of scripts is designed to offer better reliability and more control over the fetching of feeds into M

Chris 7 Aug 24, 2022
A collection of some leetcode challenges in python and JavaScript

Python and Javascript Coding Challenges Some leetcode questions I'm currently working on to open up my mind to better ways of problem solving. Impleme

Ted Ngeene 1 Dec 20, 2021
Integration of CCURE access control system with automation HVAC of a commercial building

API-CCURE-Automation-Quantity-Floor Integration of CCURE access control system with automation HVAC of a commercial building CCURE is an access contro

Alexandre Edson Silva Pereira 1 Nov 24, 2021
Small exercises to get you used to reading and writing Python code!

Pythonlings Welcome to Pythonlings, an automated Python tutorial program (inspired by Rustlings and Haskellings). WIP This program is still working in

鹤翔万里 5 Sep 23, 2022
Simple python code for compile brainfuck program.

py-brainf*ck Just a basic compiled that compiles your brainf*ck codes and gives you informations about memory, used cells, dumped version, logs etc...

4 Jun 13, 2021
Simple, configuration-driven backup software for servers and workstations

title permalink borgmatic index.html It's your data. Keep it that way. borgmatic is simple, configuration-driven backup software for servers and works

borgmatic collective 1.3k Dec 30, 2022
A Trace Explorer for Reverse Engineers

Tenet - A Trace Explorer for Reverse Engineers Overview Tenet is an IDA Pro plugin for exploring execution traces. The goal of this plugin is to provi

1k Jan 02, 2023
Sheet2export - FreeCAD macro to export spreadsheet

Description This is FreeCAD macro to export spreadsheet to file.

Darek L 3 Jul 09, 2022
Simple but maybe too simple config management through python data classes. We use it for machine learning.

👩‍✈️ Coqpit Simple, light-weight and no dependency config handling through python data classes with to/from JSON serialization/deserialization. Curre

coqui 67 Nov 29, 2022
A code ecosystem that helps to find the equate any formula.

A code ecosystem that helps to find the equate any formula. The good part here is that the code finds the formula needed and/or operates on a formula (performs algebra) on it to give you an answer.

SubtleCoder 1 Nov 23, 2021
Bazel rules to install Python dependencies with Poetry

rules_python_poetry Bazel rules to install Python dependencies from a Poetry project. Works with native Python rules for Bazel. Getting started Add th

Martin Liu 7 Dec 15, 2021
PDX Code Guild Full Stack Python Bootcamp starting 2022/02/28

Class Liger Rough Timeline Weeks 1, 2, 3, 4: Python Weeks 5, 6, 7, 8: HTML/CSS/Flask Weeks 9, 10, 11: Javascript Weeks 12, 13, 14, 15: Django Weeks 16

PDX Code Guild 5 Jul 05, 2022
Add your recently blog and douban states in your GitHub Profile

Add your recently blog and douban states in your GitHub Profile

Bingjie Yan 4 Dec 12, 2022
Performance data for WASM SIMD instructions.

WASM SIMD Data This repository contains code and data which can be used to generate a JSON file containing information about the WASM SIMD proposal. F

Evan Nemerson 5 Jul 24, 2022
An app to automatically take attendance by scanning students' bar coded ID card as they enter the classroom.

Auto Classroom Attendance This application may be run on a PC to automatically scan students' ID card using a generic bar code scanner and output the

1 Nov 10, 2021
A modern python module including many useful features that make discord bot programming extremely easy.

discord-super-utils Documentation Secondary Documentation A modern python module including many useful features that make discord bot programming extr

106 Dec 19, 2022
bamboo-engine 是一个通用的流程引擎,他可以解析,执行,调度由用户创建的流程任务,并提供了如暂停,撤销,跳过,强制失败,重试和重入等等灵活的控制能力和并行、子流程等进阶特性,并可通过水平扩展来进一步提升任务的并发处理能力。

bamboo-engine 是一个通用的流程引擎,他可以解析,执行,调度由用户创建的流程任务,并提供了如暂停,撤销,跳过,强制失败,重试和重入等等灵活的控制能力和并行、子流程等进阶特性,并可通过水平扩展来进一步提升任务的并发处理能力。 整体设计 Quick start 1. 安装依赖 2. 项目初始

腾讯蓝鲸 96 Dec 15, 2022