simpler voting setup steps

This commit is contained in:
Pinsplash 2024-05-16 17:04:53 -05:00 committed by GitHub
parent d5c071e2af
commit 64696882cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,27 +42,25 @@ NOTE: Currently, you can only have voting integration for Twitch *or* YouTube.
1. Download the code. This is the green button that says "code" at the top. Click "Download ZIP" unless you want to use GitHub Desktop for some reason.
2. Extract the contents to any place on your computer. The only part you need are the files in the `twitch-integration` or `youtube-integration` folder.
3. Double click on `setup.bat` in the `twitch-integration` or `youtube-integration` folder. It will install [Python](https://en.wikipedia.org/wiki/Python_(programming_language)) and set up OBS to use it. If you run into any issue using this script, it should tell you which of the following steps you need to complete manually. If it works perfectly, you can skip to step 11.
3. Double click on `setup.bat` in the `twitch-integration` or `youtube-integration` folder. It will install [Python](https://en.wikipedia.org/wiki/Python_(programming_language)) and set up OBS to use it. If you run into any issue using this script, it should tell you which of the following steps you need to complete manually. If it works perfectly, you can skip to step 9.
---
These steps can be skipped depending on how much `setup.bat` accomplishes.
4. Download and install Python 3.11 from [here](https://www.python.org/downloads/release/python-3113/).
5. Press the Windows logo on your keyboard and R at the same time. It should bring up a small window named 'Run'. Type `cmd` in the text box and then click 'OK'. It should bring up a black text box.
6. Select the extracted requirements.txt in File Explorer and view the file's properties. Copy the file path next to "Location".
7. In cmd.exe, type `cd` followed by a space, then paste the file path and press Enter.
8. Now type `py -m pip install -U -r requirements.txt`. It should do a bunch of stuff.
9. Open Tools -> Scripts -> Python Settings. Change the Install Path to the folder where Python 3.11 is installed. If you allowed it to install to its default place, this should be `C:/Users/___/AppData/Local/Programs/Python/Python311`. Replace `___` with your Windows user name. You can find what the name is by simply looking in `C:/Users`. If set correctly, it should say "Loaded Python Version: 3.11".
10. Click on "Scripts", click the `+` button, and select `twitch_integration.py` from the `twitch-integration` folder or `youtube_integration.py` from the `youtube-integration` folder you extracted before.
5. Navigate in File Explorer to the extracted `twitch-integration` or `youtube-integration` folder and go to File -> Open Windows PowerShell.
6. Now type `py -m pip install -U -r requirements.txt`. It should do a bunch of stuff.
7. In OBS, open Tools -> Scripts -> Python Settings. Change the Install Path to the folder where Python 3.11 is installed. If you allowed it to install to its default place, this should be `C:/Users/___/AppData/Local/Programs/Python/Python311`. Replace `___` with your Windows user name. You can find what the name is by simply looking in `C:/Users`. If set correctly, it should say "Loaded Python Version: 3.11".
8. Click on "Scripts", click the `+` button, and select `twitch_integration.py` or `youtube_integration.py`.
---
11. In OBS, create a new text source.
12. Open Tools -> Scripts and click on `twitch-integration.py` or `youtube-integration.py`. Set 'Text Source' to your newly created text source's name. Set 'RCON password' to a password of your choice.
9. In OBS, create a new text source.
10. Open Tools -> Scripts and click on `twitch-integration.py` or `youtube-integration.py`. Set 'Text Source' to your newly created text source's name. Set 'RCON password' to a password of your choice.
13a. For Twitch, set 'Target channel' to your channel (i.e `acuifex` for `twitch.tv/acuifex`).
11a. For Twitch, set 'Target channel' to your channel (i.e `acuifex` for `twitch.tv/acuifex`).
13b. For YouTube, set 'Steam URL' to the URL of your stream. This must be updated every time you start a new stream.
11b. For YouTube, set 'Stream URL' to the URL of your stream. This must be updated every time you start a new stream.
14. Press 'Reconnect to twitch/youtube' if you didn't automatically connect.
15. In Steam, right click on the mod and then click "Properties...". In 'LAUNCH OPTIONS', put `+developer 0 -usercon +ip 127.0.0.1 +rcon_password ___ +net_start +chaos_vote_enable 1`. Replace `___` with the RCON password that you entered in OBS. The `+developer 0` part is necessary for some reason, despite not seeming like it should be. You will also have to add these options in Ep1 & 2 chaos if you want to use Twitch or YouTube voting in them.
12. Press 'Reconnect to twitch/youtube' if you didn't automatically connect.
13. In Steam, right click on the mod and then click "Properties...". In 'LAUNCH OPTIONS', put `+developer 0 -usercon +ip 127.0.0.1 +rcon_password ___ +net_start +chaos_vote_enable 1`. Replace `___` with the RCON password that you entered in OBS. The `+developer 0` part is necessary for some reason, despite not seeming like it should be. You will also have to add these options in Ep1 & 2 chaos if you want to use Twitch or YouTube voting in them.
It should work now. If it doesn't, the 'Script Log' button in OBS might have useful info. You can test voting commands by typing in your Twitch or YouTube chat, even if you're not actively streaming.
To remove Twitch or YouTube integration, you can simply clear out the mod's launch options and select `twitch-integration.py` or `youtube-integration.py` in OBS and then click the minus button.
@ -118,4 +116,4 @@ These settings have been put in their own CFG files so you can control what they
* tmob03
* ntrf
* metalisai
* Owlrazum
* Owlrazum