"Exported games won't work until you upload them" with NW.js

0 favourites
  • 3 posts
From the Asset Store
You can upload screenshots and photos to your server very easily.
  • Hi there,

    When I export a simple test game with just a text box and no events to 'Desktop (NW.js)' it runs fine. However, when I export first do 'Web (HTML5)' and then run it through WebDGap, the resulting Desktop app runs fine, but shows during startup an alert "Exported games won't work until you upload them. [...]" which seems to come from Scirra. Is there a way to suppress this alert?



  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's in the exported index.html file, line 48–57. Removing this should remove the warning.

    	// Issue a warning if trying to preview an exported project on disk.
    		// Check for running exported on file protocol
    		if (window.location.protocol.substr(0, 4) === "file")
    			alert("Exported games won't work until you upload them. (When running on the file:/// protocol, browsers block many features from working for security reasons.)");
  • Actually, thanks to your hint I found it in the exported c2runtime.js.

    In which index.html did you fin it?


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