HTML5 with Chrome not working...

  • #1, z AndresThursday, 22. June 2017, 02:17 hodinky 7 years ago
    Hello, 

    Just a quick question... does HTML5 visionaire games works for you on chrome?? 

    For me it´s only working on Edge... 

    Thanks, 
    Andrés

    Bažant

    31 Posts


  • #2, z anthonyirwin82Thursday, 22. June 2017, 09:32 hodinky 7 years ago
    I just did some tests. Chrome does not work locally you get the following error:

    Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

    If you run it in a webserver with https or http chrome seems to work fine.

    I have used it on safari and firefox locally.

    I saw a post a while back about web player. I forget the specifics but some browsers may also have audio issues.

    The web player is fairly new so I image they will fix the issues before the final vs5 release.

    Bažant

    20 Posts

  • #3, z sebastianThursday, 22. June 2017, 10:56 hodinky 7 years ago
    its  chrome that does not allow access from local files in e.g. Javascripts...

    you could try to start chrome with this attribute:

    --allow-file-access-from-files

    Kapitán

    2346 Posts

  • #4, z SimonSThursday, 22. June 2017, 11:18 hodinky 7 years ago
    You can use the HTML5 player only per webserver in Chrome. And it definitly works there.

    Kapitán

    1582 Posts

  • #5, z AndresThursday, 22. June 2017, 14:40 hodinky 7 years ago
    I tried to upload the game in codeanywhere with this specs:
    HTML5 Development Stack with Apache (running on standard HTTP port - 80), Node.js, nvm, npm, yeoman, bower and grunt preinstalled.
    This Codeanywhere Container comes with:
    2GB of Disc Storage
    256MB RAM (+ 512 MB swap)
    Sudo access
    SSH access on host11.codeanyhost.com:27875
    Access to all HTTP and Websocket ports
    The operating system running on this Container is Ubuntu 14.04 (64 bit). Ubuntu uses Advanced Packaging Tool (apt) package manager. You can read more here: apt-get

    And the game still not working on chrome... but on edge and others browsers.


    Bažant

    31 Posts

  • #6, z sebastianThursday, 22. June 2017, 14:45 hodinky 7 years ago
    you can create a server on your pc (no connection to the internet) with e. g. xampp

    Kapitán

    2346 Posts

  • #7, z SimonSThursday, 22. June 2017, 14:47 hodinky 7 years ago
    Seems they have changed the Audio API, I'll into it, when I have the time.

    Kapitán

    1582 Posts

  • #8, z AndresThursday, 22. June 2017, 15:12 hodinky 7 years ago
    Thanks for your help smile 
    I will try your suggestions when I come home. 

    I do have Visionaire Studio 4 license... do I have to purchase the new one to have support for HTML5?


    Bažant

    31 Posts

  • #9, z afrlmeThursday, 22. June 2017, 15:45 hodinky 7 years ago
    Thanks for your help smile 
    I will try your suggestions when I come home. 

    I do have Visionaire Studio 4 license... do I have to purchase the new one to have support for HTML5?


    html5 export is available only in Visionaire Studio 5.x. VS5 is covered by 4.x license due to the small amount of updates in 4.x, so feel free to upgrade to VS5 if you want - you can have both VS5 & VS4 installed at the same time too.

    Quick word of warning though... make sure you make a backup copy of your main ved file before opening it in VS5 as it will no longer be compatible with VS4 once you save any changes.

    Also, I believe you can upload & host html5 games on https://itch.io for free. I don't know if they have a limit on the file-size - I've not checked.


    Imperátor

    7285 Posts

  • #10, z AndresFriday, 23. June 2017, 04:00 hodinky 7 years ago
    Weird, I tried with your suggestion and I´ve uploaded the game on https://itch.io/ but the game still working only on Edge. You can download the game if you want, is a work in progress for the moment grin


    I´m not doing nothing very complex... I´m using  a shaddertoolkit from a tutorial, I don´t think this can cause not working on chrome...

    Bažant

    31 Posts

  • #11, z SimonSFriday, 23. June 2017, 11:35 hodinky 7 years ago
    I have updated emscripten and now it works. The new version of vis is scheduled today.

    Kapitán

    1582 Posts