HTML5 Bug/fix when uploading to Kongregate with API

Discussion in 'Programming' started by Kodiqi, Jul 26, 2017.

  1. Kodiqi

    Kodiqi Member

    Joined:
    Feb 8, 2017
    Posts:
    15
    I recently uploaded a HTML5 game (made in GameMaker Studio) to Kongregate, following the guide at help.yoygames.com. The link for the Kongregate_shell file in that guide no longer works, so I download the file from the Kongregate Developers page instead.

    The game loaded in IE fine but in Chrome would only show a black screen (I didn't test in FF or other browsers). Using the Developer tools option in Chrome, I found the error was related to the Kongregate API being considered an "insecure plugin" from an "unauthenticated source".

    To fix this issue, you need to edit the Kongregate_shell file. Find the line below...
    HTML:
    <script type="text/javascript" src="http://www.kongregate.com/javascripts/kongregate_api.js">
    Then change the "http://" to "https://". This will now load the file over https instead, resolving the issue.

    I'm posting this issue and solution as I wasn't able to find anything comprehensive when I was searching for it.
     
  2. MudbuG

    MudbuG Member

    Joined:
    Jun 21, 2016
    Posts:
    43
    woohoo... 2 years later... and this worked for me! The shell file is available on Kongregate now, but it still has this problem where http needs to change to https. It took a lot of searching to find this post. Thanks Kodiqi!
     
    Kodiqi likes this.
  3. ThePropagation

    ThePropagation Member

    Joined:
    May 16, 2017
    Posts:
    120
    Hey, do you guys have trouble with view_camera? I'm trying to put a game on Kongregate and when I set the target to HTML5, setting a camera view froze my game! Is there a workaround or alternative?
     
  4. EvanSki

    EvanSki King of Raccoons

    Joined:
    Apr 17, 2018
    Posts:
    577
    You can just tell chrome to run the insecure plugin in settings
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice