Minify Script error with Ejecta export (with capx)

Bugs will be moved here once resolved.

Post » Fri Mar 28, 2014 3:17 pm

Problem Description
when exporting an ejecta project with the condition "true if the user is currently logged in to Game Center" and checking the "minify export" option, the resulting index.js file is stripped of almost all javascript except a few lines

Attach a Capx
https://www.dropbox.com/s/d0vbuh86czqkpej/ejecta_minify_issue.capx

Description of Capx
checks to see if user is logged in to Game Center or not

Steps to Reproduce Bug
  • exporting an ejecta project with the condition "true if the user is currently logged in to Game Center" and checking the "minify export"
  • open the exported index.js file and notice javascript is missing

Observed Result
javascript is missing from index.js file

Expected Result
javascript not to be missing

Affected Browsers
  • Chrome: yes
  • FireFox: yes
  • Internet Explorer: yes

Operating System and Service Pack
windows 8

Construct 2 Version ID
beta r165
B
63
S
12
G
6
Posts: 456
Reputation: 8,969

Post » Sat Mar 29, 2014 4:14 pm

I think it's been a common practice to not minify on export with Ejecta projects. Doesn't mean that it can't be fixed but I've been skipping the minify on export. If minify is a permanent problem with Ejecta, perhaps remove that option during export to save us from ourselves?
B
17
S
4
Posts: 31
Reputation: 1,600

Post » Thu Apr 03, 2014 5:41 pm

Closing, duplicate of https://www.scirra.com/forum/ejecta-plugin-syntaxerror-r165_t100607. Apart from that one broken condition, minifying should work fine with Ejecta, and that condition is fixed in the next build.
Scirra Founder
B
387
S
230
G
87
Posts: 24,248
Reputation: 192,238


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest