AnD4D's Forum Posts

  • I've been trying to get this to work for the past 2 days. The tutorial is a bit odd in the sense that the code is presented in a picture instead of something that can either be downloaded or copy/pasted, but that's fine I guess.

    When I try to use the program, I get an error on my site telling me that something has been blocked. When I grant that permission, I lose my site's https and it's labelled as not secure.

    The issue I have is that I do not know where to put the code. Sometimes I see that you just have to upload it to your server. Sometimes I see that you have to have the php code on the root of your website.

    Do I have to give things special permissions?

  • The template is gone... so I have found it and pasted it here.

    Problem description

    Shadows with a height of zero are meant to be infinite. This is not the case.

    Example CAPX

    https://1drv.ms/u/s!Am3CPIM7woZ9g7Qn-JBJTJHHTAKAgw

    Steps to reproduce

    I have set the ShadowLight's position to the mouse X and Y.

    Move it onto the Xs to see the issue.

    Observed result

    The shadows only appear to stretch on for a short distance.

    Expected result

    The shadows are meant to be infinite. The exact same capx when opened in C3 works as expected.

    System details

    R266, Windows 10, tested on everything.

  • It's hard to make sense of the screenshots. But I would guess it's a bug along the lines of "shadows are meant to be infinitely long but aren't" that was fixed in C3.

    Hi Ashley thanks for replying.

    You're correct that the shadows are not infinite in C2. Am I correct in assuming that there are no plans to fix this bug in C2, and that if we'd like to use effective shadows we need to use Construct 3 instead?

  • You might check to see that you're running webgl on C2.

    Hey newt how's it going? Yeah, WebGL is on in C2. Otherwise you can't have soft shadows.

    This is really annoying me XD

  • Here's a shadow from C3:

    And the exact same capx file opened in C2:

    Is there any reason that shadows simply aren't very good in Construct 2?

    What's the reason that if I get too close to the wall, I can see through the wall? I haven't changed any of the settings on either files.

    The light source has a height of 0 and a radius of 20. If I change the radius to 0, I get longer shadows, but worse visuals. Any radius over 0 gets shorter shadows.

    This isn't an issue in C3. Is it just a bug in C2 that will never be addressed? I brought up this issue years ago, and it's frustrating to see it still here.

  • I was watching one of your streams back, and noticed that you read what your streamlabs chatbot says (notifications).

    As far as I can tell, we should be able to listen out for subscriptions or cheers without the use of an external program.

    Also, as my code is hosted online, rather than offline, I can't use tmi code.

    Without this, we can't realistically create Twitch games that allow donations and the like.

  • Can I ask how you go about checking for bit donations, follows, subs, etc?

    My current code breaks down each sentence into words and feeds those words into a separate array. It will then look for key words in certain positions in the array to determine what it is doing.

    Also, I know what the secret code is for. It allows you to use a bearer token instead of a client-id. This allows you to run 300 checks a minute instead of just 30.

    I'm currently trying to figure out how to make use of api.twitch.tv/helix/webhooks/hub

    Yeah, I'm using helix for all of my stuff instead of kraken, but I can't figure out what scopes are, nor do I understand webhooks.

    I also use websocket to connect to "wss://irc-ws.chat.twitch.tv:443" as my code requires that I read the chat for key words and commands, however, the Twitch API suggests that I ALSO connect to "wss://pubsub-edge.twitch.tv". I'm not sure I CAN connect to more than one at a time.

    This https://dev.twitch.tv/docs/api/webhooks-reference/ unfortunately means very little to me. You're correct in saying that their documentation is a quite poor.

  • Also, just figured out the chatting thing. For me, it's:

    "PRIVMSG #and4d :HELLO WORLD"

    I was missing the : and it's really important. It now works perfectly :D Thanks!

    What is your Twitch username, so I can check out your integration?

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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 :)