Updated to r188 now export to html5 broken?

Discussion and feedback on Construct 2

Post » Fri Nov 14, 2014 11:07 pm

I have just updated to r188 and prior to this I was able to export to HTML5 and then run the index.html file and play the game I am developing. Since the update it now says "exported games wont work until you upload them" What does this mean exactly as I never had this before? Any help would be appreciated, Jim
B
4
Posts: 22
Reputation: 244

Post » Sat Nov 15, 2014 12:12 am

From what I know, that message is present in all releases of C2 ... It is exactly what it says: A popup that tells you that you are running the game locally and some features are blocked by default by browsers.

You can get rid of it by deleting the following code from the index.html
Code: Select all
   <script>
   // Issue a warning if trying to preview an exported project on disk.
   (function(){
      // 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.)");
      }
   })();
   </script>
B
49
S
15
G
6
Posts: 531
Reputation: 7,189

Post » Sat Nov 15, 2014 5:25 am

I've noticed that preview in both HTML5 and Node Webkit has been failing in R188:

Assertion failure: Project model unavailable

Stack trace:
[email protected]://[MYIP]/preview_prelude.js:16:10
[email protected]://[MYIP]/preview.js:1089:3
Runtime.prototype.requestProjectData/[email protected]://[MYIP]/preview.js:375:5


Subsequent failures will now be logged to the console.

This project worked fine in r184 so it's pretty strange.
"Construct 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit
B
113
S
39
G
17
Posts: 2,184
Reputation: 19,217

Post » Sat Nov 15, 2014 8:49 am

I'm stuck now too as I cannot install the older version I originally used a few days back as I used r188 and now when I try to load in using r184 it says it can't as my project was made with r188. Doh!
B
4
Posts: 22
Reputation: 244

Post » Sat Nov 15, 2014 8:56 am

Reverting to an earlier version is just a simple matter of editing the <saved-with-version> node in the .caproj file, as long as no new features have been used.

Use search to find numerous examples.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
132
S
29
G
81
Posts: 5,328
Reputation: 56,655

Post » Sat Nov 15, 2014 9:16 am

If you only have capx, you can unzip them with 7zip. The resultant folder contains your caproj and related files. Edit the save version tag in the .caproj file (use a plain text editor, notepad++ is good) and resave it. The versions are padded with a couple 0's (18800, 18400, etc.).
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,187

Post » Sat Nov 15, 2014 1:02 pm

Thanks for the tip(s) I unpacked the capx file and altered the version as advised on another post and am now able to run the exported game in IE or Chrome. Hope the issue gets fixed asap tho.
B
4
Posts: 22
Reputation: 244


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests