Possible Bug on audio or possible mistake on my part

0 favourites
  • 7 posts
From the Asset Store
Match same tiles with each other as fast as you can and earn more score during a limited time!
  • Problem Description

    So i've discovered the problem my game has, it has something to do with the music of the game, i don't know what in specific might be but if i disable the music on my game then the game will run fine, but if i don't then i get this error message:

    [quote:1hosluhr]Javascrip error! Uncaught TypeError: Failed to set the 'volume' property on 'HTMLMediaElement': The provided double value is non-finite. http://localhost:50000/Audio_plugin.js, line 1706 (col 20)

    This may be a bug in Construct 2 or a third party plugin or behavior - please report it to the developer following the bug report guidelines. Subsequent errors will be logged to the console.

    I've discussed this issue in the forums before, here it is: updated-to-latest-stable-version-and-game-doesn-t-run_t147279

    Attach a Capx

    http://www.mediafire.com/download/1dfrk ... _Test.capx (*REPOSTED*)

    Affected Browsers

    • Chrome: YES
    • Node WebKit: YES
    • Internet Explorer: YES

    Operating System

    Windows 8.1 64-bit

    Construct 2 Version

    Construct 2 r206

  • In your Event sheet 1 in the settings of the 'Audio Play'-action you set Volume to the String "Music", but Volume needs a Number. That's why it crashes.

  • Yes you are right, cause im putting the global variable Music that's a string type and it will put the value of it there.

    Thanks! Now i've got to set everything to 0 dbl's.

  • If it crashes, it's still a bug and I still want to fix it to ensure even making a mistake does not cause a crash. Can you repost the original issue with .capx if it throws a javascript error?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • If it crashes, it's still a bug and I still want to fix it to ensure even making a mistake does not cause a crash. Can you repost the original issue with .capx if it throws a javascript error?

    Here you go Ashley! http://www.mediafire.com/download/1dfrk ... _Test.capx

  • Thanks, fixed for the next beta.

  • Is this really a bug? I would rather have an error than a program that doesn't work correct.

    I tried the same with the parameter "Set X" and "Set Scale" in the Sprite-Plugin set to the wrong type with a global variable. I get no Error but also no Sprite. Only with "Debug layout i could see that with "Set X" the X postion was NaN and with "Set Scale" the height and width was NaN. And I don't know if I can track down every wrong type of parameter in a plugin with the inspect of Debug layout, otherwise I get an error that I can't track with the Debugger.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)