Giter Site home page Giter Site logo

game's Introduction

Game

Python Script to free hand on playing Onmyoji (YYS, 阴阳师)

Features

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.

Platform

Windows 10 x86_64 (Only tested on this)

Software

Thunder Andriod Simulator Version 3.5+

Python and python package requirements

Python 3.6+
opencv
numpy
re
(for more detail please check the source code)

Configuration

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.

Code Structure

  • 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)

Functionality

  1. Awakening and Mitama automation in team mode
  2. Awakening, Mitama, Original Fire and Imperial spirit (bad translation xd) automation in solo mode
  3. Personal Breakthrough automaton
  4. Chapter automation in solo mode
  5. Hundred Ghosts in dummy version, which means it random clicks. AI version is in training and testing.

Developing Plan

  1. add more functions
  2. add gui (maybe xd)

Disclaimer

阴阳师™ (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.

game's People

Contributors

hmq201211 avatar 1057234721 avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.