Javascript error on startup

Discussion and feedback on Construct 2

Post » Mon Sep 14, 2015 3:28 pm

BurningWood wrote:@Aphrodite Thanks for clearing that up. After the whole UNITY not working on the web on Chrome, I was afraid something like this may happen to C2.


Yeah, the unity plugin was disabled in chrome (actually, every plugin using the Netscape Plugin API was disabled (Java, Silverlight, Unity web player, etc..), flash in chrome uses the Pepper Plugin API, thus is still useable though, I think this month they will be disabled for good inside chrome, with no flags to turn them back on).

Construct 2 never relied on any browser plugin for its html5 exporter to prevent those sort of things from happening, they did rely on third parties for wrapping games inside executable files but that is a different story alltogether.

That implies that the actual webbrowser is doing all the work of the game, instead of simply displaying a window with another program doing everything, and since browsers have different engines, the result can vary from one to another more than with using a plugin (plugin that can (will?) be platform specific anyway or will be disabled for x or y reason).
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Tue Sep 15, 2015 5:10 am

I got the problem solved (as a workaround) by adding "use strict"; at the beginning of c2runtime.js, after exporting my project.
B
17
S
4
G
3
Posts: 10
Reputation: 3,021

Post » Mon Sep 21, 2015 7:17 pm

"use strict";
didnt work for me. Do i need to insert it somewhere specific?
B
37
S
9
G
8
Posts: 541
Reputation: 8,554

Post » Mon Sep 21, 2015 7:20 pm

fldr wrote:edit the caproj file with editor, the part you are looking for is:
<saved-with-version>18800</saved-with-version>


How do i do this with an capx?
B
37
S
9
G
8
Posts: 541
Reputation: 8,554

Post » Mon Sep 21, 2015 7:22 pm

Nevermind, just unzipped it..
B
37
S
9
G
8
Posts: 541
Reputation: 8,554

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: Artpunk, Cojoyo, Unconnected and 6 guests