-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yet Another Channel Point Redeem Issue #55
Comments
Attached is the config file with the oauth clear for security. |
Hi @derrickvi , thanks for the config! Can you provide screenshots of your Channel Points settings UI on Twitch? This will help me cross-reference things to help debug. |
@derrickvi version 1.0.14 now includes Channel Point config options in the in-game setting menu. You should be able to use this to quickly test configurations out. |
Hey I'm having this same issue actually and even with the new update and being able to quickly test stuff, the command prompt acts like the channel points are being done. Everything works fine and the channel points are case sensitive correct, but it just doesn't register it. let me know any info i need to send over, would love to play this mod :3 |
@sunflowerpillar the update didn't really fix anything, just made fiddling with the mods settings a bit easier. Could you upload a screenshot of the channel points config from the Risk Of Rain 2 settings page, as well as a screenshot of one of your Twitch channel points custom rewards? (As described in the help article) |
here are the test channel points I have and what showed up in the console command! channel points config and the channel points being redeemed |
@sunflowerpillar So the config in Vs Twitch should be the name of the Twitch reward. So, you have a reward named "AllyBeetle" on Twitch, so the config for Another example: If your reward name was "Spawn Beetle", the config for |
more like this @JustDerb ? I tried this and got nothing as well, let me know if this isn't correct. I also made sure to apply it before doing something |
@sunflowerpillar that looks correct for the config. Do you see anything around redeems in the mod's game console? You should see something like:
|
@JustDerb nothing sadly gets triggered in the game console, acts like nothing happens :( |
@sunflowerpillar Okay, so that points to your OAuth token not having the correct scopes. Can you follow the instructions in the Readme under
Then update the mod config to use that new token? |
@JustDerb so I did that and this is all that showed up with these redeems would there be a chance a minimal amount of mods are getting in the way? I don't know if any of these things showing up in the console go with my commands. I do want to say it's like the person said above. Everything else works and shows up when I load up a run. Folks can vote and all that, it's just channel point redeems act like they don't exist as far as I can tell, even after changing my OAuth |
Hmm, thanks for all the info! There might be a weird bug in the mod as you've done all the right things at this point. It's hard to see what's going on because of Channel Points being locked behind being a Twitch Affiliate. I might need to start streaming a bit to get it so I can test it myself 😬 |
Curious, I see Also, you can enable Twitch debug logging in the mod config. It's under Twitch > DebugLogs. You should see activity in the console when you redeem something.... |
Would I need to do anything special to give the auth full permissions or should it just work without me modifying anything? Also, should the "oAuth:" stay or be cut out? I have been deleting it before using the code. |
The "password" should include that. You shouldn't delete it. |
Okay, I did that with channel point reward names and a new auth token that can read the points and everything else you've seen a dozen times. It still doesn't work. What should I do? Also, thank you for the help, you're more dedicated than the devs! |
I saw someone else say they tried !roll in chat and so I tried it and it spawned an Umbra. It seems everything is working except the points redemption |
Hmm... @meburningslime Can you send a screenshot of your channel points config in R2Modman, and a screenshot of one of your channel point rewards from Twitch (the page where you are editting one, showing all the details) |
Okay that all looks right. Now I'm wondering if the underlying Twitch client is breaking. This becomes hard to test as I don't have a Twitch account that has Channel Points enabled so it'll be a lot of blind guessing (which is also why I cannot provide great support here and why it's been a long lasting issue). |
If you ever need someone to help test, I'd be willing to assist! |
Checking in: I think there is an update Twitch did that broke the library I'm using (TwitchLib) so I'm trying to update that library to see if it fixes it. Sadly, the upgrade is causing a heep of other troubles so it'll be a bit before I have a potential fix working. |
Hey folks; I've compiled a new version of the TwitchLib library and tested a bit on my own machine and it looks everything works (that I can test). Can someone download this Zip file, and extract it over the current plugin files? To find the current plugin files:
Please let me know if the Channel Points are working now. If not, please go into the mod settings (via the config editor) and turn on the |
It keeps saying that I have invalid permissions. I made a new auth multiple times. I cannot even use item voting with that for some reason |
@meburningslime can you upload your logs so I can see the error? |
@meburningslime yeah, send me the full logs please! You can find a more detailed log file for debugging in either : |
Sorry for the long wait time! |
So yeah, looks like the Oauth token being passed in isn't valid (or doesn't have enough scopes). This is hard to help simply because commenting the Oauth is enough for anyone to "use" your account. As a last ditch effort I'd try to detach (de credential) the TwitchApp connection and redo the linking process again... If that doesn't work we might need to get a bit more creative. |
Disconnected and reconnected: Got this error in chat: |
@meburningslime so I think I might have a hunch of whats going wrong. The "Twitch Chat OAuth Token Generator" moved to a new Client ID and the original site seems to have disappeared. My testing has been using a super old non-expiring OAuth token, so that's why I never saw anything break. I've reset the login flow and started seeing errors similar to yours. So, let's do this to try and fix it (temporarily):
If it does work, let me know! Sadly the code doesn't know how to grab and use the Refresh Token, so the Access Token will expire and stop working after a while. To fix it temporarily you need to start at step 2 above to grab a new access token. If this really solves the problem, I'll work on an overhaul to get this Twitch login flow to work seamlessly (and refresh as well). |
@JustDerb thanks a ton, I will work on testing this soon. Finals in college have unfortunately taken a lot of my time recently but I will work on testing it as quickly as is feasible. I should have plenty more time to assist if more debugging is needed too. |
@JustDerb I followed all of the steps but I was using Thunderstore, not R2. The old features work now, that being item voting, but the channel point redemptions do not. I am currently installing r2modman to see if that will fix it. |
LogOutput.log |
@meburningslime so I see these relevant things, which doesn't look wrong in any way...
Would you be okay with jumping on a Discord call in the next week or two to test things out while I "backseat program"? I'm at a loss of what's going on here 🙃 |
I've attached another version of VsTwitch with the old deprecated method for monitoring Channel Point events. You can also try this as well and let me know if it works. (If it doesn't please set the "Twitch.DebugLogs" setting to JustDerb-Vs_Twitch-DeprecatedPubSub.zip Note: You may need to generate a new Twitch Access Token since it's expired (will fix this once we figure out what's happening here) |
And I just looked through the code again... and I realized the two events ( So, I've fix that and this new uploaded version should work with the new event and process correctly! (If it doesn't please set the "Twitch.DebugLogs" setting to true, run through it again, and then send me the logs!) JustDerb-Vs_Twitch-ActuallyProcessNewChannelPointsEvent.zip 🚀 Please try this one! This should fully fix things!! Note: You may need to generate a new Twitch Access Token since it's expired (will fix this once we figure out what's happening here) |
(@meburningslime - since I didn't ping you on the other messages. I think this latest version will fix things!) |
@JustDerb it works! All the channel point redemptions can be activated now! However, it still has yet to be fixed entirely... if you spawn any ally in, the in-game director gets permanent max credits. This continually spawns elite enemies until the spawn amount is capped. What is stranger still though is that if you quit the run then rejoin, the director still has max credits. I have some footage if you need it. We are so close! |
@meburningslime awesome, glad to hear we're making forward progress! To confirm did you try the Would love to see the footage - but I can also see if I can repro by forcing the channel point event. I'm guessing one of the major updates changed something.... |
For the sake of timeliness I chose not to edit it, sorry. Here is an uncut full view of what I played. |
@meburningslime well that's a fun bug! Turns out the update made the RoR2-VsTwitch/Events/MonsterSpawner.cs Line 75 in d95eb2d
This is no longer needed! Here's an updated ZIP while I get all this wrapped into a new mod update: JustDerb-Vs_Twitch-1-0-17-RC1.zip |
I read through all the instructions multiple times.
I've gone through the closed issues with similar problems.
We have made sure the oauth token includes the correct permissions using the link in the readme,
We have made sure the redeem title is exact.
Commands like !allychip (name) work fine, but the redeem AllyBeetle, or Summon Beetle, or any exact variation thereof doesn't even trigger an error in console to say it couldn't run. It just doesn't do anything, like it never happened. Yet ItemVoting spams chat just fine, and Mod/Broadcaster commands work. Pulling out our hair here. Any help would be appreciated. Let me know what screenshots or logs you need from me.
The text was updated successfully, but these errors were encountered: