Testing the game in internet browsers. How to make?

Discussion in 'Visual Novel Maker Support' started by Glassescomic, Aug 16, 2019.

  1. Glassescomic

    Glassescomic Villager Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    Português
    Primarily Uses:
    VNM
    How can I test the web browser game correctly?
    My test builds don't run on firefox and chrome, it's a black screen.
    Which file should I open in Firefox?
    How do I have to configure the game to work?
    Could anyone do a tutorial?

    I appreciate it if someone can help me.
     
    #1
  2. Poryg

    Poryg Pixie of the Emvee kingdom, Ham of a Hamster Veteran

    Messages:
    3,786
    Likes Received:
    9,468
    Location:
    Czech Republic
    First Language:
    Czech
    Primarily Uses:
    RMMV
    Open the index.html in Firefox. That's all there is to it.
    Black screen usually means some sort of a file loading problem. For example if the filepath to your project contains empty spaces.
    If you want to find the exact problem, you need to hit the f12 to open the dev tools and see the console output.
     
    #2
  3. Glassescomic

    Glassescomic Villager Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    Português
    Primarily Uses:
    VNM
    F12 In Firefox below.
    [​IMG]

    F12 In Visual novel maker below.
    [​IMG]

    Thanks for the answer.
    How do I resolve these errors?
    I do not know how to solve this.
     
    Last edited: Aug 16, 2019
    #3
  4. Poryg

    Poryg Pixie of the Emvee kingdom, Ham of a Hamster Veteran

    Messages:
    3,786
    Likes Received:
    9,468
    Location:
    Czech Republic
    First Language:
    Czech
    Primarily Uses:
    RMMV
    If that's the case, make the filepath contain no empty spaces.
     
    #4
    Engr. Adiktuzmiko likes this.
  5. Andar

    Andar Veteran Veteran

    Messages:
    28,153
    Likes Received:
    6,375
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    As said above, the engine has problems loading files because the filepath is wrong for HTML-based games.
    Please check the fourth yellow line in the first screenshot, it contains the filepath to your game, the one that begins with D:\Jogos\...

    Do you see the %20 scattered through it? Every letter or symbol from the path that is replaced by a %nn number combination stands for a letter or symbol that the browser can't handle directly because it is not allowed under networking rules - in this case spaces that were replaced by %20.
    You need to rename all folders and all files that contain forbidden letters to no longer contain them. If that includes renaming files, then you also need to change their references inside your game to the new name.
     
    #5
  6. Kentou

    Kentou Admin Veteran

    Messages:
    173
    Likes Received:
    43
    Hi,

    you cannot locally run a web-game in a web-browser due to browser security. You can turn that off if you google for it, it depends on the browser. In Firefox it was possible to run games directly for a long time but I think with latest version they changed it in Firefox too now.

    This might help: http://testingfreak.com/how-to-fix-...security-cors-error-in-firefox-chrome-and-ie/

    But usually, you have to upload your game to a webserver/website or run a local web server.
     
    #6
    Glassescomic likes this.
  7. Glassescomic

    Glassescomic Villager Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    Português
    Primarily Uses:
    VNM
    Thanks for the answers, although I was unable to test ofline in the browser correctly, the game worked online. On the Newgrounds site it is possible to perform the test from the preview generated by the site, if someone is facing this problem, it is a good option to use the preview of their site.

    Any tips on save-type choices when building the game? Which is better for web? "Store game data in working directory", "Store game data in App data directory" or "Store game data in internal storage"?
     
    #7
  8. Glassescomic

    Glassescomic Villager Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    Português
    Primarily Uses:
    VNM

    I decided to do some testing today. And that is exactly what you said. The solution on the link you posted solves the problem.
     
    #8

Share This Page