News for hackers. Stuff that matters.
Re:Show HN: Colors – Experimenting with Construct 2 by sleepysort on Friday September 05, 2014 @10:05AM (#8273902)
Huh. Interesting. Do the controls freeze or the game itself? I'm not sure what would cause that; the game was developed on a proprietary HTML5/JS engine.
Re:Show HN: Colors – Experimenting with Construct 2 by egeozcan on Friday September 05, 2014 @10:12AM (#8273933)
There's an error:

Uncaught TypeError: Cannot read property 'qb' of undefined c2runtime.js:105 g.Jq c2runtime.js:105 g.qb c2runtime.js:102 si

Re:Show HN: Colors – Experimenting with Construct 2 by AshleysBrain on Friday September 05, 2014 @10:16AM (#8273958)
Check your browser addons and try disabling them - some clunky addons clobber Javascript that the Construct 2 engine uses and breaks it.
Re:Show HN: Colors – Experimenting with Construct 2 by egeozcan on Friday September 05, 2014 @10:19AM (#8273970)
Tried in incognito mode where everything is disabled. Still, it freezes with the same error. (Windows 8.0, Chrome Version 36.0.1985.143 m)
Re:Show HN: Colors – Experimenting with Construct 2 by AshleysBrain on Friday September 05, 2014 @10:32AM (#8274048)
Actually I did some sleuthing from the minified code and found where it corresponds to in our engine. It's just calling a tick function on one of the behaviors, and I guess from the error report it's calling a function on an array with an empty element in it. No idea how that could fail or why it would only happen on one system and not another, this is probably only Javascript logic. Maybe the author is using an old version of C2, or a broken third party plugin... or you have a buggy extension that runs in incognito mode?! I still want to get to the bottom of it, maybe if you head over to our forum at www.scirra.com/forum and post there we can dive deeper.
Re:Show HN: Colors – Experimenting with Construct 2 by sleepysort on Friday September 05, 2014 @10:45AM (#8274111)
To clarify, I'm using C2r178, and no third party plugins.
Re:Show HN: Colors – Experimenting with Construct 2 by AshleysBrain on Friday September 05, 2014 @10:22AM (#8273989)
Huh, odd... I'm afraid to investigate further you'd have to ask the game author to trial a non-minified version with you. I'd be keen to find out the cause so if there's an issue in Construct 2 we can fix it.
Re:Show HN: Colors – Experimenting with Construct 2 by sleepysort on Friday September 05, 2014 @10:37AM (#8274068)
If you want to try to resolve this, feel free to contact me via email (shawnsmlee at gmail); the code/capx project file is also on my github, so if you would like to try making sense of it yourself, you're more than welcome!
Re:Show HN: Colors – Experimenting with Construct 2 by sleepysort on Friday September 05, 2014 @10:14AM (#8273945)
I wish I could make sense of that error for you haha...