Page 1 of 1

Javascript error

PostPosted: Tue Sep 16, 2014 5:04 pm
by Topeich
Hi, I have a bit of a trouble here...

I created and published a pair of games some time ago. They worked very nice but suddenly both stopped working and now the games crash as soon as there is a collision that triggers a sound :(

Keep in mind that those games have been online for more than one year without problems, this bug started some days ago.

I have been adviced from a user who got the game crashing as soon as he plays the game. So, to verify he is not the problem I tried by myself and got instant crash too in every browser I try ... :(

Then I tried to load the game inside Construct2 and running the layout in localhost. Then I have got this message:

"Javascript error!
Uncaught TypeError: Cannot set property 'value' of undefined http://localhost:50000/Audio_plugin.js, line 328 (col41)

This is either a bug in Construct2 or a problem in third party plugin or behavior - please report it to the developer!"

So, any idea on how to solve the situation? Keep in mind that those two games worked fine for more than one year and I have not updated them nor did anything to them so provably I'm not the only one with the same case...

Many thanks in advance,
Ignasi Vidal aka Topeich.
Ps. Just in case both games where created using Construct2 release 108.2

Re: Javascript error

PostPosted: Tue Sep 16, 2014 5:21 pm
by TwinTails
Sounds like an error with a browser update, try it in other browsers?

Re: Javascript error

PostPosted: Tue Sep 16, 2014 5:58 pm
by zenox98
Could be to do with a chrome update that breaks the audio - see this post from Ashley.

Just needs re-publishing with newer build.

Re: Javascript error

PostPosted: Tue Sep 16, 2014 6:35 pm
by Topeich
Thanks Zenox, I have'nt found an answer so I post my own threat. After reading the post you pointed me seems that the best solution is to install a newer Construct2 version and re-publish my games...

Re: Javascript error

PostPosted: Wed Sep 17, 2014 11:30 pm
by Topeich
So, it works, but one of the games has some strange behaviours so it will not be as easy as to re-export again. I'll need to redo some parts of the game, hopefully it will not be hard... Thanks for the help!