Coder Social home page Coder Social logo

twitch-plays's Introduction

Twitch Plays

Clone of Twitch Plays Pokemon.

Installation

You're going to need to have pywin32 installed. If you run into any errors try running this with Python 2.7.x.

Rename config/config_dist.py to config/config.py, and replace the username/password there with your Twitch username and OAuth token. Feel free to modify the start throttle here aswell.

In your VBA/Emulator, set the controls to the following -

Up: 0
Down: 1
Left: 2
Right: 3
Button A: 4
Button B: 5
Start: 6
Select: 7

After you've set that up, open up your terminal and type python serve.py. If your username/password is wrong you will be notified.

Whilst the script is running make sure you have your emulator in focus as your primary window. If you click onto another window, the script won't work. If you're not able to stay focused on one window as you need to do other things with your computer, you could try running all of this from within a virtual machine.

--

If you have any question or need help, feel free to message me on Twitch or send an email to aidraj0 at gmail dot com.

You'll need to have VBA in focus for this to work, so your best bet would be to run all of this from within a VM.

twitch-plays's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

twitch-plays's Issues

Bind Disable/Enable input to Hotkey

This is mainly technical but it'd be nice if we could bind the ability to enable input to emulator to a key so we can use a timer solution to enable when a new game starts just like what TPP does.

Anarchy/Democracy??

Is there Any plan to add anarchy/democracy slider or do you have any idea how to add the anarchy/democracy slider?

How to set everything up properly?

Okay, so i have Python 2.7 installed. i have my emulator and i have it running and i run serve.py and it said it logs in and the main window is the emulator. is it supposed to make a GUI at all. I was looking around and i saw like chat height and bots and misc and a whole bunch of other stuff. But i still see my standard old emulator nothings different the only thing it did was connect to twitch chat. How do i properly set this up?

Add an option to use PostMessage for minimized keystrokes

Some games will register keystrokes from PostMessage which sends a keystroke only to a certain window, even if it's hidden or minimized. This could avoid using a VM to stream certain games. I used to use this to make MMO bots to keep using your PC even while you're botting.

c++ example:

HWND wnd = FindWindow(0, "VisualBoyAdvance");
UINT key = 0x31; // 1 key
PostMessage(wnd, WM_KEYDOWN, key, MapVirtualKey(key, 0) << 16);
Sleep(150);
PostMessage(wnd, WM_KEYUP, key, MapVirtualKey(key, 0) << 16);

Use irc library in favour of your implementation

In my fork I have used https://pypi.python.org/pypi/irc in favour of your implementation of the irc protocol. It provides a much more stable connection for this purpose, and has been tested on the official Twitch Plays Pokemon stream without issue.

Your implementation is limited and causes a lot of disconnects and time outs.

The code will be posted soon but don't wait for me for it as it is extremely messy.

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.