Short Tutorial: How to make Twitch Plays



How to make a Twitch Plays on Windows with Quake as an example.

Python 2.7: https://www.python.org/
PyWin32: https://sourceforge.net/projects/pywin32/files/pywin32/Build%20221/
Script: https://drive.google.com/file/d/1BuxFUhDiM2lViSExvpgv91PKTCtMqJI6/view?usp=sharing

http://geertverhoeff.com/

source

12 comments

  • DaDrippyWaffle 2 years ago

    How do I make it press the spacebar?
    Thanks,

    Reply
  • BOOCHAN x tWitch 2 years ago

    is ther a way to set up multiple inputs at once? for example a user would type "w w w w w w"
    to walk up 6 times?
    because on twitch it is hard to spam now iwth the 30 second timeout for same messages.

    is there anyway to alter the code?? i wasnt sure how

    Reply
  • wu paul 2 years ago

    I am in trouble
    what can i do something
    please help
    =====================================================
    console log

    Finding files… done.
    Importing test modules … Connecting to twitch.tv
    Connected to twitch
    Sending our details to twitch…
    … they accepted our details
    Connected to twitch.tv!
    Traceback (most recent call last):
    File "C:Program FilesBrainwyLiClipse 5.0.3pluginsorg.python.pydev.core_6.5.0.201809011413pysrc_pydev_runfilespydev_runfiles.py", line 468, in __get_module_from_str
    mod = __import__(modname)
    File "C:/Users/dd014/Downloads/Twitch Plays/Twitch Plays/mainmain.py", line 12, in <module>
    t.twitch_connect(username, key);
    File "C:/Users/dd014/Downloads/Twitch Plays/Twitch Plays/maintwitch.py", line 42, in twitch_connect
    s.recv(1024);
    timeout: timed out
    ERROR: Module: main could not be imported (file: C:Usersdd014DownloadsTwitch PlaysTwitch Playsmainmain.py).
    done.

    ———————————————————————-
    Ran 0 tests in 0.000s

    OK

    Reply
  • Paul Zappia 2 years ago

    Is there a way to have different messages trigger a certain key? (eg. typing in ''up' will press the 'w' key) I've tried to do this by modifying the code, but when I run the script and type a message in chat, an error occurs. What would have to be changed about the code to do this?

    Reply
  • EliApparently 2 years ago

    I can get the scripts running and I'm putting in all of my information correctly, but it just won't take anything. I have my keys set up to do the proper inputs but they just aren't being registered in the script or working. How would I fix that?

    Reply
  • Adrien 2 years ago

    When I open main.py it immediately closes down, I uninstall Python and reinstall but it still does not work.I opened main.py with the cmd and there is marked:

    Twitch Plays main main.py", line 3, in <module> import keypresser

    Twitch Plays main keypresser.py", line 1, in <module>
    import win32com.client as comclt ImportError: No module named win32com.client

    Reply
  • Yoan Sub 2 years ago

    when i open main , my python exe is deleted and i have this error :
    traceback (most recent call last):

    Reply
  • Marconnato 2 years ago

    Hi, when I open main, it immediately closes down, with that message:
    "C:UsersMarcDesktopTwitch Playsmainmain.py" , line 12, in <module> t.twitch_connect(username, key);
    "C:UsersMarcDesktopTwitch Playsmaintwitch.py", line 42, in twitch_connect s.recv(1024);
    Socket.timeout: timed out

    Reply
  • MaxGentleman ! 2 years ago

    Hey! I have a question for like, how can I turn the mouse on the game? Like look to the left, right, up and down? You will save me if you know how 🙂

    Reply
  • Ja'Crispy 2 years ago

    When I open main, it immediately closes down. I double checked to make sure I had downloaded python 2.7, and I did. Any idea on how to fix this? Thank you!

    Reply
  • Nostis Juhniable 2 years ago

    When I open main.py, I get this error and doesn't work: TypeError: a bytes-like object is required, not 'str'

    Reply
  • exploshi 2 years ago

    cool

    Reply

Add your comment

Your email address will not be published.