Giter Site home page Giter Site logo

twitchplaysrocketleague's Introduction

TwitchPlaysRocketLeague

Control Rocket League with Twitch channel points

Usage

Start

Open powershell, cd to this project directory and run:

python run.py

Stop

Either:

  • Press ctrl + C in the powershell window
  • Close the powershell window

Customizing

The easiest way to turn on/off controls is through your channel points. If you want to remove jump, disable or delete your Twitch Plays: Jump channel points.

Getting set up

1. Download repository

git clone https://github.com/tjkemper/RocketLeagueTwitchController.git

2. Create Twitch Application

https://dev.twitch.tv/console/apps/create

Set OAuth Redirect URLs to http://localhost

In config/twitch_config.py, set the two following values

client_id = ""
redirect_uri = "http://localhost"

3. Find your channel_id

You must set the client_id variable in order to do this step.

Open powershell, cd to this project directory and run:

python get_channel_id.py

Put your Twitch channel id in config/twitch_config.py

4. Get an access_token / auth_token

Open powershell, cd to this project directory and run:

python setup_permissions.py

Follow the instructions.

This token is only good for 60 days.

5. Set up Rocket League key bindings

Go to config/rocketleague_config.py and set up key bindings.

DRIVE_FORWARD   = ["w",           3]

The above means that "w" is my drive key and I want it held for 3 seconds.

Known issue: Mouse inputs and some special characters are not yet supported.

6. Channel Points

Create channel point rewards in Twitch.

Here's the link, just replace YOUR USERNAME. https://dashboard.twitch.tv/u/YOUR USERNAME/community/channel-points/rewards

Then go to config/twitch_config.py and edit the channel_points_title_to_rocketleague_control dictionary.

If this is my configuration, I need a channel points title that matches Twitch Plays: Jump.

channel_points_title_to_rocketleague_control = {
    "Twitch Plays: Jump": Controls.JUMP,
}

7. Run it

Open powershell, cd to this project directory and run:

python run.py

Everything should work! Give it a try :)

Links

Twitch Links

Websocket Links

twitchplaysrocketleague's People

Contributors

tjkemper avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

twitchplaysrocketleague's Issues

Bug: Overwrite input

Some events can be cancelled prematurely by tapping the same input.

aka stop boosting by tapping 'x'

Voting

Big streamers may get too many requests.

Probably required if we want to support Twitch chat messages

Support quick chat

## Quick chat
I_GOT_IT = [1, 1]
SICK = [1, 2]
NEED_BOOST = [1, 3]
ALL_YOURS = [1, 4]
NICE_ONE = [2, 1]
GREAT_PASS = [2, 2]
THANKS = [2, 3]
WHAT_A_SAVE = [2, 4]
CALCULATED = [3, 1]
NICE_BLOCK = [3, 2]
WOW = [3, 3]
CLOSE_ONE = [3, 4]
WHEW = [4, 1]
NO_PROBLEM = [4, 2]
MY_BAD = [4, 3]
OKAY = [4, 4]

### Post Game
GG = [1, 1]
WELL_PLAYED = [1, 2]
WHAT_A_GAME = [1, 3]
NICE_MOVES = [1, 4]

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.