By default browsers don't display any error messages when things go wrong. This is so your experience browsing the web is smooth and not interrupted with lots of annoying error messages. However, if something goes wrong with your Construct 2 game, you won't see any error message at first. This can make it difficult to work out what has gone wrong.
To see error messages, you first have to open the
Developer Tools or
Error console in the browser. These error messages are
very useful to add to bug reports! It's also a good idea to
check for errors after publishing your game to ensure it is working properly. If you have a problem with a Construct 2 game, try these shortcuts to look for error messages:
Internet Explorer: Press
F12 to open Developer Tools. Note that Internet Explorer annoyingly won't show any errors from before you pressed F12, so it's likely you'll have to press F12 then refresh the page to see the error message. Other browsers are better and show error messages from before you opened the error console, so you don't need to refresh the page.
Google Chrome: Press
Ctrl + Shift + J to open Developer Tools. There should be an error log at the bottom of the pane that opens - if not, click the
Console tab.
Firefox: Press
Ctrl + Shift + J to open the error console. Note you may want to press
Clear and refresh the page otherwise you might see error messages from other websites. Press
Ctrl + Shift + K to open the advanced log which contains more detailed information.
Opera: Press
Ctrl + Shift + O to open the error console.
Safari: Press
Ctrl + Alt + C to open the error console. On iPhone or iPad you can enable Debug mode under
Safari -
Developer or
Advanced in Settings. This will show errors in a bar at the top of the screen which you can tap for more information.
Common errors
Blank or "grey" screen on previewSomething has gone wrong - use the shortcuts above to find any error message. You might want to
post a bug report including the error message.
Game freezes half way throughSomething has gone wrong - use the shortcuts above to find any error message. You might want to
post a bug report including the error message.
Game works in preview but not after exportingThis is usually caused by broken third-party plugins and behaviors which do not work with the minifier. The error message will probably include random characters like
P.wf is undefined. Try removing third party plugins or behaviors. You should report the problem to the plugin or behavior developer, since Scirra cannot fix it. If you are not using any third party plugins or behaviors at all, you should
post a bug report.
On my server I see the error "Invalid manifest mime type (text/plain)"or
Every time I play the game on my server it re-loads from scratch and is wasting my bandwidthYour server is set up wrong and this is breaking the offline support. See
Offline games in Construct 2. You need to add the MIME type
text/cache-manifest for the file extension
.appcache on your server.
No audio plays or
My sound files come up as 404 not foundMake sure you've set the following MIME types on your server:
.ogg files:
audio/ogg.m4a files:
audio/mp4Some other files come up as 404 not foundDid you upload the entire project and all its files and folders? You might have forgot to upload everything.