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

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

Animations made using manim-ce

ManimCE Animations Animations made using manim-ce The code turned out to be a bit complicated than expected.. It can be greatly simplified, will work

sparshg 17 Jan 06, 2023
Program Input Nilai Mahasiswa Menggunakan Fungsi

PROGRAM INPUT NILAI MAHASISWA MENGGUNAKAN FUNGSI Nama : Maulana Reza Badrudin Nim : 312110510 Matkul : Bahas Pemograman DESKRIPSI Deklarasi dicti

Maulana Reza Badrudin 1 Jan 05, 2022
Custom component to calculate estimated power consumption of lights and other appliances

Custom component to calculate estimated power consumption of lights and other appliances. Provides easy configuration to get virtual power consumption sensors in Home Assistant for all your devices w

Bram Gerritsen 552 Dec 28, 2022
→ Plantilla de registro para Python

🔧 Pasos Necesarios CMD 🖥️ SOCKETS pip install sockets 🎨 COLORAMA pip install colorama 💻 Código register-by-inputs from turtle import color # Impor

Panda.xyz 4 Mar 12, 2022
Cross-platform MachO/ObjC Static binary analysis tool & library. class-dump + otool + lipo + more

ktool Static Mach-O binary metadata analysis tool / information dumper pip3 install k2l Development is currently taking place on the @python3.10 branc

Kritanta 301 Dec 28, 2022
Sailwind Mod Manager

Sailwind Mod Manager The Sailwind Mod Manager is an open source mod manager for the Sailwind community. It currently allows you to browse and download

Max 3 Jul 15, 2022
a bit of my project :) and I use some of them for my school lesson or study for an exam! but some of them just for myself.

Handy Project a bit of my project :) and I use some of them for my school lesson or study for an exam! but some of them just for myself. the handy pro

amirkasra esmaeilian 13 Jul 05, 2021
This is a method to build your own qgis configuration packages using osgeo4W.

This is a method to build your own qgis configuration packages using osgeo4W. Then you can automate deployment in your organization with a controled and trusted environnement.

Régis Haubourg 26 Dec 05, 2022
Traffic flow test platform, especially for reinforcement learning

Traffic Flow Test Platform Traffic flow test platform, especially for reinforcement learning, named TFTP. A traffic signal control framework that can

4 Nov 07, 2022
This repository contains the exercices for the robotics class at Supaero, 2022.

Supaero robotics, 2022 This repository contains the exercices for the robotics class at Supaero, 2022. The exercices are organized by notebook. Each n

Gepetto team, LAAS-CNRS 5 Aug 01, 2022
Collection of Python scripts to perform Eikonal Tomography

Collection of Python scripts to perform Eikonal Tomography

Emanuel Kästle 10 Nov 04, 2022
Abilian Core: an enterprise application development platform based on the Flask micro-framework, the SQLAlchemy ORM

About Abilian Core is an enterprise application development platform based on the Flask micro-framework, the SQLAlchemy ORM, good intentions and best

Abilian open source projects 47 Apr 14, 2022
A cheat sheet for streamlit

Streamlit Cheat Sheet App to summarise streamlit docs v1.0.0 There is also an accompanying png and pdf version https://github.com/daniellewisDL/stream

Daniel Lewis 221 Jan 04, 2023
berisi kodingan kodingan python umum yang kubuat.

python-codevault berisi kodingan kodingan python umum yang kubuat. untuk memudahkan transisi dan menjadi refrensi tutorial. daily challange for myself

Agung Zon Blade 1 Dec 19, 2021
Path of Exile Vendor Recipe Tracker (Chaos/Regal orb)

Path of Exile Vendor Trade Tracker Are you tired of manually keeping track of collected and missing items for farming Chaos or Regal Orbs in PoE? Me t

1 Nov 09, 2021
Traditionally, there is considerable friction for developers when setting up development environments

This self-led, half-day training will teach participants the patterns and best practices for working with GitHub Codespaces

CSE Labs at Spark 12 Dec 02, 2022
Socorro is the Mozilla crash ingestion pipeline. It accepts and processes Breakpad-style crash reports. It provides analysis tools.

Socorro Socorro is a Mozilla-centric ingestion pipeline and analysis tools for crash reports using the Breakpad libraries. Support This is a Mozilla-s

Mozilla Services 552 Dec 19, 2022
BasicVSR++ function for VapourSynth

BasicVSR++ BasicVSR++: Improving Video Super-Resolution with Enhanced Propagation and Alignment Ported from https://github.com/open-mmlab/mmediting De

Holy Wu 34 Nov 28, 2022
Swim between bookmarks in the Windows terminal

Marlin Swim between bookmarks in the terminal! Marlin is an easy to use bookmark manager for the terminal. Choose a folder, bookmark it and swim there

wilfredinni 7 Nov 03, 2022
Python: Wrangled and unpivoted gaming datasets. Tableau: created dashboards - Market Beacon and Player’s Shopping Guide.

Created two information products for GameStop. Using Python, wrangled and unpivoted datasets, and created Tableau dashboards.

Zinaida Dvoskina 2 Jan 29, 2022