Javascript Error when attempting to run game

Bugs will be moved here once resolved.

Post » Tue Mar 03, 2015 4:21 am

Problem Description
When "Run layout" is performed, the game loads in the browser but crashes before it finishes loading. The error in Internet Explorer is:
JavaScript Error!
Invalid number
http://localhost:5000/preview.js, line 416 (col 7)

The error message is similar in other browsers.

Attach a Capx
Uploaded. Also available here:
https://www.dropbox.com/s/oto4spaagz8rv ... .capx?dl=0


Description of Capx
It is a modification of the basic tutorial. It doesn't run at all though, at the moment!

Steps to Reproduce Bug
  • Launch Construct 2 and open project
  • Select "Run layout"
    Have tried in various browsers and on different machines. Same result each time.

Observed Result
As mentioned above, game will not start and a javascript error is returned:
JavaScript Error!
Invalid number
http://localhost:5000/preview.js, line 416 (col 7)

Expected Result
For game to start!

Affected Browsers
  • Chrome: YES
  • FireFox: YES
  • Internet Explorer: YES

Operating System and Service Pack
Windows 7 Pro, SP1

Construct 2 Version ID
Release 195
You do not have the required permissions to view the files attached to this post.
B
3
Posts: 2
Reputation: 279

Post » Tue Mar 03, 2015 12:28 pm

It appears the problem is the image for frame 2 of the Explosion object is corrupt. The browser fails to load it and C2 can't display it in the editor either.

There is nothing we can do about this without the steps to reproduce this issue in the first place. Most likely I would imagine you imported a corrupt image file in to Construct 2, which is not a Construct 2 bug.
Scirra Founder
B
363
S
216
G
75
Posts: 23,122
Reputation: 180,543

Post » Tue Mar 03, 2015 2:12 pm

Deleting the second frame has resolved this issue. Thanks very much for the analysis and suggestion.
B
3
Posts: 2
Reputation: 279


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests