TamaniDamani's Forum Posts

  • I love making multiplayer games, but the MULTIPLAYER suite that comes with Construct 3 is very fragile. I spent four months making a game with MULTIPLAYER, and after releasing it, at least 30% of the players couldn't play it properly, and many of them couldn't connect, and eventually found out that they had to change browsers or networks before they could connect properly, which forced me to write multiplayer games in other ways.

    It makes me sad that MULTIPLAYER is not very reliable.

  • A 401 error code means that you don't have authorization to that resource. It is possible that the request is working in the browser because you are logged in to Youtube with your account.

    I think that you need to generate some OAuth 2.0 authorization credentials to use that API.

    https://developers.google.com/youtube/v3/live/registering_an_application

    Can't really help you more, but I would look into that.

    Now that I have OAuth 2.0 authorization credentials, how do I put authentication into my game?

  • A 401 error code means that you don't have authorization to that resource. It is possible that the request is working in the browser because you are logged in to Youtube with your account.

    I think that you need to generate some OAuth 2.0 authorization credentials to use that API.

    https://developers.google.com/youtube/v3/live/registering_an_application

    Can't really help you more, but I would look into that.

    I've tried putting it on my website and it's still the same

    I'll give it a try with OAuth 2.0, thanks

  • You need to add the part parameter "snippet" to get the snippet data. Use the second link to see how it should look when adding parameters in get request. Similar to how you added the livechat Id parameter.

    I have found a way

    Now he looks like this

    But it still doesn't make it into the game

    Always getting "failed: 401" error

    How can I get the data to pass correctly into the game?

  • I use AJAX to grab youtube Live Chat messages but whenever I try to Request I get an error every time

    When I open the console I get the following error

    ---

    The URL returned by youtube already has everything I need, and now I'm done as long as I can actually enter the information in the URL into the game

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • https://www.youtube.com/watch?v=JkKxDAic3IE&ab_channel=sDoddler

    I watched this video, found the LiveChatID and put it in the program

    But he still made an error

    But the URL of the request already contains the information of my live broadcast, how can I bring the information into the game?

  • developers.google.com/youtube/v3/live/docs/liveChatMessages

    https://developers.google.com/youtube/v3/live/docs/liveChatMessages/list#try-it

    Via HTTP, use the AJAX plugin to GET, through the 'Request URL' action.

    > GET https://youtube.googleapis.com/youtube/v3/liveChat/messages?key=[YOUR_API_KEY] HTTP/1.1
    

    Use the AJAX plugin to set headers, through the 'Set request header' action.

    > Authorization: Bearer [YOUR_ACCESS_TOKEN]
    Accept: application/json
    

    The response will be in JSON, which you can load into the json object to parse and use, or you could possibly just grab what you need directly with tokenat.

    Alternatively, you can use the javascript API directly with C3. Documentation and examples also at the above links.

    What data besides API_KEY is required to crawl youtube Livechat messages?

    I checked it for a long time on the Internet, I couldn't find the right solution. Please save me.

  • You do that on the YouTube side, when setting up your stream.

    I connect as you said, but it returns this 401 error

    What do I need to do?

  • developers.google.com/youtube/v3/live/docs/liveChatMessages

    https://developers.google.com/youtube/v3/live/docs/liveChatMessages/list#try-it

    Via HTTP, use the AJAX plugin to GET, through the 'Request URL' action.

    > GET https://youtube.googleapis.com/youtube/v3/liveChat/messages?key=[YOUR_API_KEY] HTTP/1.1
    

    Use the AJAX plugin to set headers, through the 'Set request header' action.

    > Authorization: Bearer [YOUR_ACCESS_TOKEN]
    Accept: application/json
    

    The response will be in JSON, which you can load into the json object to parse and use, or you could possibly just grab what you need directly with tokenat.

    Alternatively, you can use the javascript API directly with C3. Documentation and examples also at the above links.

    I don't know where to get ACCESS_TOKEN and how can I specify the exact youtube live stream?

    Still, thanks for the response, you gave me a way

  • I want to integrate youtube live chat into my game. I saw an article online that mentioned that Ajax could be used, but there wasn't much information in the article.

    https://www.construct.net/en/forum/construct-3/how-do-i-8/youtube-api-145889

    I wonder if there is a way to capture youtube live chat messages in construct 3?

  • I tried exporting the game to HTML5, but it didn't work

    please help me

    please

  • I'm making an online multiplayer card game now, and I need to keep the game running to prevent players from going to other tabs and wandering around without receiving messages from other players and unable to continue the game.

    I need a way to set the browser game to always run, or any way to allow the game to be able to receive messages from other players even if the game is hibernated

    If anyone knows how to fix it, it will save my life.

  • You can directly import fonts to Construct, and then use them in the built-in Text object. I'd recommend using WOFF format fonts though for full compatibility across browsers and platforms.

    I want the text input function to also have the font

  • I uploaded my own font to the game, in the "text" can be used correctly, now I want to reference in the css, how do I do?

    ---

    "@"font-face

    {

    font-family: '11':

    src: url(fonts/Cubic_11.ttf);

    }

    #Input

    {

    outline: none;

    border: none;

    color: #445469;

    background: transparent;

    font-size: 32px;

    font-family: '11';

    }

    ---

    this is my Css code.

    Everything works fine except the font

    Please tell me what needs to be modified, thank you very much

    Tagged:

  • You do not have permission to view this post