Git Product home page Git Product logo

tyrande's Introduction

Hypothetically, if someone made a video game that outlined enemies in a specific color, you could write a bot that scraped the screen in real time instead of looking at memory. I wonder if any games do that?

This is an academic proof of concept, it is not meant for real use by anyone. Matching the performance of a memory scraping bot with a CV one is one hell of an uphill battle. The purpose of this project is to see how well I could do, not to create a tool for cheaters.

At last update the bot can handle reading the screen with high precision. It tracks the nearest centerpoint for an enemy when the "aim" button is pressed, but has some problems with aiming displacement.

All that said, you're not going to find specific instructions on setting this project up here. I'm sticking to my "I didnt mean harm" argument above, but I've also seen a handful of cease-and-desist letters sent on similar projects.

Running

go build && ./tyrande.exe

OpenCV

Download opencv and mingw, following installation instructions on github.

  • Use 64 bit vc11 libs and dlls.
  • Replace the version string in the include statements.
  • Remove the .dll in the include statements
  • Put the files in: C:\mingw\mingw64\x86_64-w64-mingw32\lib
  • Comment out method bodies in cvaux.go

Make sure the script compiles.

cd Documents\code\go\src\github.com\lazywei\go-opencv\samples && go run hellocv.go

Profiling

Instructions taken from here: https://medium.com/@hackintoshrao/daily-code-optimization-using-benchmarks-and-profiling-in-golang-gophercon-india-2016-talk-874c8b4dc3c5#.wlwu2sxi8

Run profiling command:

go test -run=^$ -bench=. -cpuprofile=cpu.out
go tool pprof tyrande.test.exe cpu.out
web
go tool pprof tyrande.exe cpu.out
web

See top 20 functions:

top20

tyrande's People

Contributors

damouse 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.