HTML5 (Many) HTML5 export issues

Discussion in 'GameMaker Studio 2 Community Tech Support' started by Joysurrender, Nov 28, 2018.

  1. Joysurrender

    Joysurrender Member

    Joined:
    Nov 28, 2018
    Posts:
    1
    Hi there,
    I just purchased, for the first time, the Game Maker Studio 2 version for HTML5 export and... I'm experiencing so many issues with the export!
    I'm used to work on Game Maker 8.1 and, in fact, everything works just fine in the Windows preview.
    When I try to preview (or export) as HTML5 inside a web browser, everything is messed up.
    Here's an example:

    www.outcome.altervista.org/boh
    It seems like it works good but...
    1. after the first refresh, music will not be played (until a clean refresh)
    2. the lyrics' sentences should be randomly positioned... but I noticed that the random is like pre-baked for every sentence, so "is this the real life?" will appear always at the same x,y. "is this just fanta sea?" (yeah, it's a joke!) always at its same x and y, etc...

    Is this normal?!
    What if there was an enemy that needed to be randomly positioned at every match but... the player will learn where he spawns? In the Windows preview there's effectly a random, why not in HTML5?

    Other issues I've experienced in other tests are:
    -wrong image_index (even from different sprites!) for an object
    -screen becoming black and nothing more happens
    -commands not always working (right a mouse click)
    -room size out of the page size

    What's wrong?
    Do I need to set something up? Do I need to reinstall java or something?
    Or do I need to ignore HTML5 conversions and ask for a refund?

    Please help :D
    Thank you very much
     
  2. TheSpydog

    TheSpydog Member

    Joined:
    Jun 20, 2016
    Posts:
    50
    Not sure what could be causing this one. What code are you using for playing your music?

    This sounds like your random seed isn't being set correctly. Try calling randomize() in a Create event. (Be sure to read the documentation about it!)

    Try cleaning your project (click the little broom next to the Play/Debug buttons).

    See if disabling device_mouse_dbclick_enable helps.

    No idea on this one.

    Java isn't required at all for HTML5 development; rather it uses JavaScript, which is a completely different (and confusingly named) language.
     
  3. Carbon

    Carbon Member

    Joined:
    Jul 16, 2016
    Posts:
    66
    Yes you do. GM's HTML5 exp is just buggy as heck since the very beginning. Don't expect a one click export like other platforms. You will have to fiddle around for things to work out well.
     
    Last edited by a moderator: Nov 30, 2018
  4. BaBiA Game Studio

    BaBiA Game Studio Member

    Joined:
    Jun 20, 2016
    Posts:
    602
    The HTML5 exporter is getting a complete revamp, so it should become a lot better than it currently is. At the moment it is buggy, and parts are definitely broken. This has been mentioned quite a bit, and YYG staff have said that they are reworking it, so this should be something to look forward to.
     
    Last edited by a moderator: Nov 30, 2018
    chirpy likes this.
  5. Carbon

    Carbon Member

    Joined:
    Jul 16, 2016
    Posts:
    66
    @Joysurrender Only some of my games that were initially designed for native windows work flawlessly on HTML5, some others had crazy scaling bugs, graphical issues, sounds, glitches, interpolation issues, etc. Granted, it should be a lot better now since they updated it quite a lot the past 2 versions or so.
     
    Last edited by a moderator: Nov 30, 2018
  6. True Valhalla

    True Valhalla Full-Time Developer GMC Elder

    Joined:
    Jun 20, 2016
    Posts:
    280
    My advice is to test your game with the HTML5 export early and often. Make it your primary test platform because HTML5 is the most difficult export to support - if your game works on the web, it'll most likely work on other platforms too. The reverse does not apply quite as often.

    You also need experience dealing with the platform's various idiosyncrasies. Start here: HTML5 Issues & Differences ยป

    The HTML5 export is incredibly powerful and so much fun to work with. Give it a chance!
     
  7. gnysek

    gnysek Member

    Joined:
    Jun 20, 2016
    Posts:
    1,226
    Last beta version have some changes for audio FYI.
     
  8. FrostyCat

    FrostyCat Member

    Joined:
    Jun 26, 2016
    Posts:
    3,227
    Do you recognize just how much the part I highlighted undermines your credibility?

    I am a web developer by day, and I also have training in native software development from my university days. I know for sure that if you assume native privilege on HTML5, chances are that reality would smash your face in. And believe me when I say I see A LOT of smashed faces on the Q&A sections. The HTML5 standard is still emerging and browsers are always playing catch-up, so what you can do is dependent on what they decide to support. For simple security reasons, the W3C made it so that certain things are out of the question, such as direct file system access and TCP/UDP support. That's where knowing the limitations, being minimalist and playing within them make a huge difference, and TrueValhalla knows this more than I do.

    Everything thing you've said thus far is like saying gasoline cars don't work and are a scam, and so are people who drive gasoline cars for a living. Then you "prove" your point by filling up a gasoline car with diesel, because you've only ever driven a diesel car and that's what "filling up" means to you.
     
  9. Carbon

    Carbon Member

    Joined:
    Jul 16, 2016
    Posts:
    66
    That's not what I meant, but okay.. Gotta appreciate the time you dedicated at those texts just for slight miswordings here and there.:D

    Btw man, whoa. Not sure how you got it the other way from me. Who says about expecting native privileges on HTML5? lol.
     

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