Spireblight / STR-Backend

Slay the relics extension
https://dashboard.twitch.tv/extensions/ebkycs9lir8pbic2r0b7wa6bg6n7ua-0.0.1
GNU Affero General Public License v3.0
5 stars 2 forks source link

Allow auto-toggling the Twitch extension when switching games #17

Closed francislavoie closed 3 months ago

francislavoie commented 3 months ago

According to https://help.twitch.tv/s/article/extensions-switch-with-your-game-selection, Twitch extensions are able to toggle themselves on automatically when a streamer switches games.

For example, under My Extensions -> Permissions on the Twitch dashboard, you can see this for extensions that have this feature:

image

It also has a similar mention under "My Extensions", the PoE one mentions it'll automatically toggle itself on but Slay the Relics doesn't :disappointed:

image

My hunch is that it might be dependent on the "Game Category" set for the extension. Was it set to have "Slay the Spire"? (I tried creating a dummy extension real quick to see how configuration for it works)

I couldn't find any other documentation about how this functionality works, all of Twitch's developer docs doesn't mention anything about this as far as I could tell.

I also found this old article https://medium.com/@owlsquid/dynamic-managment-for-extensions-a3b845a1c2f4 from 2019 which looks very similar to the help doc above :point_up: which mentions a beta list of extensions that support that feature. Maybe it has to be toggled on by a Twitch employee?? :grimacing: I hope that's not the case, that would be annoying.

For context: I moderate for a medium-sized streamer, he streams multiple different games per stream (~3 different games, ~2 hours each) and if he happens to stream 2 games which have extensions in a row (where one is StS), it's annoying to have to go in the Twitch dashboard to switch extensions manually. In theory it should just work but since StR doesn't support it, it adds friction. Often we forget until someone in chat asks "hey the overlay isn't working" etc. So it would be awesome if it worked!

MaT1g3R commented 3 months ago

I've already set the game category to StS, so I don't think that's it. I don't see any other configuration that allows me to do this, and if that configuration existed I wouldn't be able to change it right now since Twitch paused reviewing extensions. I check a few other overlay extensions and most of them don't seem to have this feature. It looks like it could be a beta feature that never got completed.

francislavoie commented 3 months ago

https://dev.twitch.tv/docs/extensions/

Reviews for Extensions have resumed in May 2024 and the backlog will be completed in the coming weeks. Reviews for organizations, games, and chatbot verification continue to be temporarily paused while we revise our processes. Thank you for your patience and understanding.

I actually see it on most of the overlays I've tried. Hearthstone deck tracker, PoE, Baldur's gate 3, etc. StR is the one I don't see it on.

MaT1g3R commented 3 months ago

There is essentially nothing I can do to enable this. I can't find any info on how this feature works.

MaT1g3R commented 3 months ago

https://discuss.dev.twitch.com/t/switching-extensions/34803/2

This is their response in 2021 suggesting it's an internal allow list

francislavoie commented 3 months ago

Considering a lot of extensions for games newer than 2021 have it (e.g. baldur's gate 3) there must be a way to ask them to add it :man_shrugging: Maybe we need to ask on that forum. I'll do that.

francislavoie commented 3 months ago

https://discuss.dev.twitch.com/t/enable-auto-switching-for-an-extension/59643

francislavoie commented 3 months ago

:roll_eyes: apparently they only enable that for official game extensions. Very annoying. (See the reply https://discuss.dev.twitch.com/t/enable-auto-switching-for-an-extension/59643/2)

MaT1g3R commented 3 months ago

That is disappointing to read, thank you for checking with Twitch

BarryCarlyon commented 3 months ago

It's also basically a "dead" feature I don't think anything has been set to use this feature of late anyway (everything in the beta list is all "official" stuff as well)

It can be solved at the API level instead by a channel. Some extensions provide this functionlity via API calls but it's rare as it's more up to the channel to control the channel not the extension. As it has its own security fun times.

Extensions tend to flip to "sleep" mode if the live game doesn't match the game the extension is for. But broadly this is a channel level problem.

And as noted in the forum thread https://github.com/twitchdev/issues/issues/62 can break a lot resulting in switching extensions whilst live not working at all (regardless of the auto system, using the api or the dashboard)

TLDR even if it was enabled for you but probably wouldn't be reliable