Python Script to free hand on playing Onmyoji (YYS, 阴阳师)
1.Use opencv to detect the template pictures in the screen shot of the simulator, and then make some actions according to user's demand.
2.By Using Thunder Android Simulator's ld and ldconsole api, users can run the script and players in background.
3.Baidu OCR API is an auxiliary approach to help detect the numbers of some perticular loctions of the screen shot.
4.Multithreading is supported, which means you can open as much players as your can and then run them in whatever team mode or solo mode in the same time.
In all, the goal is to free your hand on the tedious operations.
Windows 10 x86_64 (Only tested on this)
Thunder Andriod Simulator Version 3.5+
Python 3.6+
opencv
numpy
re
(for more detail please check the source code)
1.modify every Thunder Android Simulator's resolution to 1280 x 720.
2.modify every Thunder Android Simulator's share path to the project's Onmyoji_images.
3.modify ld.exe, ldconsole.exe path and share path in the thunder_controllor.py.
4.create your own Baidu OCR API access_token and put it in the config section, under instruction/config.txt.
- Game
- Crack_Onmyoji
- logs (Store logs, required)
- instruction (Config.txt is required to store Baidu OCR API Key, required)
- old (Deprecated)
- Onmyoji_images (Match template pictures)
- test (For test)
- crack_service.py (service, service level)
- log_recorder.py (Write log, util)
- game_detail.py (GameDetail class to store some global in-game properties and account info)
- crack_controller.py (controller, action level)
- player_detail.py (PlayerDetail class to store player info)
- template_loader.py (load templates in numpy format into memory, util)
- crack_entry.py (entry, highest level)
- Crack_Onmyoji
- Awakening and Mitama automation in team mode
- Awakening, Mitama, Original Fire and Imperial spirit (bad translation xd) automation in solo mode
- Personal Breakthrough automaton
- Chapter automation in solo mode
- Hundred Ghosts in dummy version, which means it random clicks. AI version is in training and testing.
- add more functions
- add gui (maybe xd)
阴阳师™ (Onmyoji) is a brand which belongs to NetEase™ Corporation (网易(杭州)网络有限公司).
All the screen shots and icons in Onmyoji_images file are copies from Onmyoji Game screenshots. The copyright belongs to NetEase™ Corporation (网易(杭州)网络有限公司).
雷电模拟器™ (Thunder Android Simulator) is a brand which belongs to Shanghai Changzhi Internet Technology Corporation (上海畅指网络科技有限公司).
Baidu OCR API is one kind of technology which belongs to Baidu™ Corporation (百度股份有限公司).
OpenCV is open source and released under the BSD 3-Clause License.