AnD4D's Forum Posts

  • SUB EVENT: WEBSOCKET, On connection opened

    ACTION: WEBSOCKET, send text = "PASS "&"USERNAME" (yes you need the spacing)

    ACTION: WEBSOCKET, send text = "NICK "&"TOKEN" (yes you need the spacing)

    ACTION: WEBSOCKET, send text = "JOIN "&"#USERNAME" (yes you need the spacing and #)

    Isn't PASS followed by the Oauth token, and the NICK followed by the username???

    From Twitch:

    < PASS oauth:<Twitch OAuth token>

    < NICK <user>

    I can't seem to be able to send messages to my channel. I'd have thought I'd need to actually provide my account's username and password.

  • I wonder if I can post messages with the current setup I have.

    you interested in sharing details so we can expand upon the Twitch integration?

    I have mine completely controlling my Twitch overlay, even allowing people to cross chat between channels, calling up mini-games to play on screen via the chat and even challenging the streamer :D

  • Ahh, I see... so it's not possible if I try to access it using a domain. It would work with an offline program however.

    That's a shame. Well, at least I have an answer now.

  • Really? That's odd... when I type it in, I either get a 404 message or nothing at all.

    https://1drv.ms/u/s!Am3CPIM7woZ9grMdEu3eWyEyGHniOA

    Ashley is there a reason why this only appears to work with Preview browser = NW.js?

    I'm trying to use it on a website. I'm able to access all sorts of other data.

  • Really? That's odd... when I type it in, I either get a 404 message or nothing at all.

    https://1drv.ms/u/s!Am3CPIM7woZ9grMdEu3eWyEyGHniOA

  • The thing I'm stuck on now is grabbing the data from viewers.

    Typing in tmi.twitch.tv/group/user/and4d/chatters into a browser works fine... but when I try to feed it into AJAX nothing appears at all.

    Can't quite figure out why not.

    It's nice to know someone else is going down the same path I am.

  • Actually, I couldn't quite figure that part out, but I had Twitch integrated with a Chatbot, which would post a notification upon follow or sub. I'd search for those words, then I could see when someone had donated by purely looking at the chat :)

  • Yeah, that's pretty much exactly how I did it. Wasn't easy figuring out a way to get it to convert to JSON so I could then pick it apart in a dictionary or an array.

  • I've been working on this for the past month. My entire overlay was created using Construct 2, and is pretty much fully integrated with Twitch. I can imagine it'd be just as easy to do this with Construct 3.

    My game on Steam also has Twitch integration.

  • Is there a particular reason why you can do iframes in Construct 3, but not Construct 2?

    I've seen plugins for c2, but they all appear to be dead.

  • I use the AJAX plugin to grab this data super easily:

    "https://api.twitch.tv/helix/users?login="&TwitchAlias

    so long as I use the header given to me by Twitch.

    I can also grab information taken from php databases, etc...

    HOWEVER, when I try to grab THIS data: tmi.twitch.tv/group/user/and4d/chatters

    Nothing comes through at all. As far as I know, because I can simply open that link in a browser, it should work perfectly fine. I mean, I open up the php database, and it'll display fine, both in a browser and in the AJAX Last Data.

    When I try to access tmi.twitch.tv/group/user/and4d/chatters I get nothing at all.

    Can anyone help? My Twitch Integration has been working great, but this is quite the wall I've hit.

  • The download link doesn't work for me. Is it down for anyone else?

  • I just looked at the debug, and it's showing the error:

    The page at '<URL>' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://irc-ws.chat.twitch.tv/'. This request has been blocked; this endpoint must be available over WSS.

    Seems that it's a less secure version, and I need to use wss instead.

    Now I just need to find a wss for Twitch that works. What a pain :(

    Aaaaaand if anybody is interested, the correct address is:

    "wss://irc-ws.chat.twitch.tv:443"

  • Seems an odd question, yes :)

    The thing is, I have my code, and it's working perfectly fine using Websocket when I test the game locally. However, as soon as I upload it to my website and open the index html file, the websocket stops working.

    Does anybody know if there's a certain step I'm missing regarding online websockets? Do they not work on websites, or do I need to give it some special permission?

    Tagged:

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • If anyone else comes across this issue... the solution is to go into the index file and remove anything related to the background. So no background, and no colour :)

    Then this code in streamlabs:

    body { margin: 0px auto; overflow: hidden; }