Issue Playing Game in HTML5

  • #1, z carterTuesday, 02. January, 19:09 hodinky 9 months ago
    Hey folks,

    I'm relatively new to VS and I'm trying to set up my game to play in browser. It successfully downloads the file but then it just sits on the loading screen without initiating the game no matter what I do.
    I put all of the build files into a single directory here: https://cybersandbox.ca/bad/index.html

    Am I missing something?

    Bažant

    9 Posts


  • #2, z xlsiorTuesday, 02. January, 22:56 hodinky 9 months ago
    I've never used the HTML 5 stuff myself so I may be completely wrong here, but at first glance my guess is that this could be an issue with your webhosting configuration:

    Looking in chrome's developer mode,  it shows a blurb of the HTML 5 code referencing a few files:  var files = ["bad31b.vis","config.ini"        

    https://cybersandbox.ca/bad/config.ini gives an error: "403 - Forbidden
    Access to this page is forbidden."

    Either you didn't upload a config.ini file (although that would typically generate error 404), or most likely your web hosting provider might be blocking access to .ini files

    (which could be their default setting to prevent unintentionally exposing server configuration details. It might be possible to override that behaviour through your own custom .htaccess settings or something, but how to do that and whether it's possible greatly varies depending on the webhost and its configuration)

    Bažant

    10 Posts

  • #3, z carterThursday, 04. January, 23:15 hodinky 9 months ago
    I've never used the HTML 5 stuff myself so I may be completely wrong here, but at first glance my guess is that this could be an issue with your webhosting configuration:

    Looking in chrome's developer mode,  it shows a blurb of the HTML 5 code referencing a few files:  var files = ["bad31b.vis","config.ini"        

    https://cybersandbox.ca/bad/config.ini gives an error: "403 - Forbidden
    Access to this page is forbidden."

    Either you didn't upload a config.ini file (although that would typically generate error 404), or most likely your web hosting provider might be blocking access to .ini files

    (which could be their default setting to prevent unintentionally exposing server configuration details. It might be possible to override that behaviour through your own custom .htaccess settings or something, but how to do that and whether it's possible greatly varies depending on the webhost and its configuration)

    Thanks so much, friend!
    It wasn't the .htcaccess but you were right that the server was blocking that file from being accessed in the mod_sec for security reasons due to being an .ini file.
    Talking to my hosting provider, they've added an exception so the game is now working!
    However, I have another issue to address now (posted about that in a new thread)

    Cheers!

    Bažant

    9 Posts

  • #4, z xlsiorFriday, 05. January, 08:01 hodinky 9 months ago
    Glad that worked for you, and hopefully the dialog bug will be fixed soon.

    (By the way: you have a typo in your intro text: "inspured" instead of "inspired")
    Another typo, further in the game: "You drown the sea"

    I do like the retro look of it.

    Not sure if this is related to the dialog issue you mentioned, but there are definitely some mixups: With the pixies in the forest: Dialog shows "clean", when selected it says "attack"
    "talk" -> "you attempt to talk "-> "you cannot get that"

    the dog on the beach: "clean" -> "you attempt to get the hurdy gurdy"


    (the goblin asked to be taken to the quicksand, but in the room with the quicksand there doesn't seem to be a way to drop him off?  I did find the horse, who was hungry. It did not want to eat the carrot. It did eat the goblin.)

    Room with enchanted dehumidifier: After 'looking' at it once (through dialog option "talk"), it started cycling through an animation into a  series of brightly colored unrecognizable pixel blobs, and looking again it said "It's an echanted #item.name set to #?."

    Bažant

    10 Posts

  • #5, z carterFriday, 05. January, 17:35 hodinky 9 months ago
    Glad that worked for you, and hopefully the dialog bug will be fixed soon.

    (By the way: you have a typo in your intro text: "inspured" instead of "inspired")
    Another typo, further in the game: "You drown the sea"

    I do like the retro look of it.

    Not sure if this is related to the dialog issue you mentioned, but there are definitely some mixups: With the pixies in the forest: Dialog shows "clean", when selected it says "attack"
    "talk" -> "you attempt to talk "-> "you cannot get that"

    the dog on the beach: "clean" -> "you attempt to get the hurdy gurdy"


    (the goblin asked to be taken to the quicksand, but in the room with the quicksand there doesn't seem to be a way to drop him off?  I did find the horse, who was hungry. It did not want to eat the carrot. It did eat the goblin.)

    Room with enchanted dehumidifier: After 'looking' at it once (through dialog option "talk"), it started cycling through an animation into a  series of brightly colored unrecognizable pixel blobs, and looking again it said "It's an echanted #item.name set to #?."

    The "inspured" part is a typo, but other than the dialog options you referenced not displaying the correct text, most of the other "bugs" you mentioned are intentional features to add to the sense that there's something not right about the game haha

    Thanks for the thorough feedback!

    Bažant

    9 Posts

Napsat příspěvek