Bug Issue: HTML5 list of bugs and tweaks


Pages: 1

havana24

  • Subscriber - Stencyl Studio
  • *
April 01, 2019, 01:31:43 am
Hi there.
I've worked heavily with Html5 games recently and I found some bugs and simple tweaks that would improve the speed of test and release.

  • Bug: if you put an image on the loader screen tab, it will go in front of the loading bar, hiding it.
  • Bug: Stencyl says in the loader tab about the Sitelock:
    Quote
    Prevent piracy of your game.
    Format (comma separated):
    website.com, website2.com
    But the game won't start if you use spaces in the list. You need to write the domains like this: "website.com,website2.com,website3.com" without spaces or the game won't load.
    So please, update the text so people won't have this problem anymore.
  • In order to load an html5, Sponsors tend to use an iframe that links to the index.html of the game.
    The problem is that if the main page with the iframe has the scrolling enabled and the game use the arrow keys or the spacebar this will cause the main page to scroll when the user press one of these buttons, making the game unplayable.
    I found this code that need to be added in the index.html of the game:
Code: [Select]
<script type="text/javascript">
parent.disableScrollButtons = function(){
window.addEventListener("keydown", function(e) {
// space and arrow keys
if([32, 37, 38, 39, 40].indexOf(e.keyCode) > -1) {
e.preventDefault();
}
}, false);
};
parent.disableScrollButtons(); // calling the function in parent window
</script>
    Basically it inject in the parent page a function that disable these buttons, fixing that problem.
    Would be amazing if you could insert this code int he index.html of the game, so we don't need to  edit it every time we  export the game.[/li]
  • Speaking about the third point: Could you create a text area inside Stencyl where we can add javascript that will be placed inside the index.html of the final game?
    In this way we can insert code like the one above without editing all the time the exported game.

EDIT - Other little bug: Game setting > Loader > Apperance > Clear background doesn't work. I need to manually remove the image from the game folder in order to remove the  loader background image.

I hope this helps,
Alessandro
« Last Edit: April 01, 2019, 08:26:35 pm by havana24 »


Justin

  • Master Stencyler
  • *
April 01, 2019, 02:47:08 am
I fixed number 2 back in early February when you brought it up on discord.


havana24

  • Subscriber - Stencyl Studio
  • *
April 01, 2019, 03:03:46 am
Sorry for that, didn't notice... I have build 10300 installed.
If you can take a look at the other points would be really cool, thanks in advance! :)

-Alessandro


havana24

  • Subscriber - Stencyl Studio
  • *
April 01, 2019, 08:26:21 pm
I've also edited my first post with one more little bug:
In Game setting > Loader > Apperance > Clear background doesn't work.
I need to manually remove the image from the game folder in order to remove the  loader background image.


Justin

  • Master Stencyler
  • *
June 28, 2019, 04:36:50 am
Issue 1 and the other issue at the bottom are fixed in b10398.
« Last Edit: June 28, 2019, 04:37:06 am by Justin »


Justin

  • Master Stencyler
  • *
June 28, 2019, 06:20:54 am
Issue three is fixed in b10400.


Justin

  • Master Stencyler
  • *
June 28, 2019, 06:23:00 am
By the way, the template file Stencyl uses for the index is at [Stencyl]/plaf/lime-templates/html5/template/index.html. You can modify it if you wish.


Issue updated by Justin - June 28, 2019, 06:27:10 am
  • Status changed from New to Resolved
  • Issue Assigned from (none) to Justin


Issue updated by Justin - December 12, 2019, 05:05:30 pm
  • Tags added: 4.0.2


Pages: 1

Details

  • Reported
    April 01, 2019, 01:31:43 am
  • Updated
    December 12, 2019, 05:05:30 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    (none)
  • Fixed in
    (none)
  • Assigned to
    Justin
  • Category
    (none)

Tags