Export HTML5 WEB Problems

Discussion and feedback on Construct 2

Post » Mon Jul 04, 2016 7:28 am

Hi, my C2 game can be run perfectly in test mode (C2 Run layout btn).
However when published into HTML5 game, I got errors like this:

c2runtime.js:440 Uncaught TypeError: r.Lj is not a function
c2runtime.js:436 Uncaught TypeError: f.Wm is not a function
c2runtime.js:436 Uncaught TypeError: f.Wm is not a function

Why?

C2 Release 227 64bit
B
19
S
4
G
1
Posts: 6
Reputation: 1,487

Post » Mon Jul 04, 2016 7:38 am

nowubeing2 wrote:Hi, my C2 game can be run perfectly in test mode (C2 Run layout btn).
However when published into HTML5 game, I got errors like this:

c2runtime.js:440 Uncaught TypeError: r.Lj is not a function
c2runtime.js:436 Uncaught TypeError: f.Wm is not a function
c2runtime.js:436 Uncaught TypeError: f.Wm is not a function

Why?

C2 Release 227 64bit


Are you using any non-standard plugins?
Have you tested without using minify?
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
86
Posts: 5,420
Reputation: 59,526

Post » Mon Jul 04, 2016 7:41 am

Well, I think I find the cause: minify script
When enabled and published, I will definitely get those errors.
While disabled, everything is good ~

Any suggestions?
B
19
S
4
G
1
Posts: 6
Reputation: 1,487

Post » Mon Jul 04, 2016 7:44 am

zenox98 wrote:
nowubeing2 wrote:Hi, my C2 game can be run perfectly in test mode (C2 Run layout btn).
However when published into HTML5 game, I got errors like this:

c2runtime.js:440 Uncaught TypeError: r.Lj is not a function
c2runtime.js:436 Uncaught TypeError: f.Wm is not a function
c2runtime.js:436 Uncaught TypeError: f.Wm is not a function

Why?

C2 Release 227 64bit


Are you using any non-standard plugins?
Have you tested without using minify?


without using minify, everything is OK~
I used LiteTween v1.4, SpriteFont+, and callJS
B
19
S
4
G
1
Posts: 6
Reputation: 1,487

Post » Mon Jul 04, 2016 7:55 am

The non-standard plugins are most likely the problem.

You can test by creating a new project and adding one plugin at a time and export with minify.
If you find the plugin that breaks, then the author would need to remedy the problem.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
86
Posts: 5,420
Reputation: 59,526


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 15 guests