gritsenko / c3_spine_plugin

Spine plugin for construct 3
MIT License
24 stars 8 forks source link

Failed to export project #25

Closed reinildo closed 4 years ago

reinildo commented 4 years ago

On Construct 3, I receive the message: Failed to export project if I chose option: Minify mode to Simple or Advanced. If I select None as Minify mode, it compiles but when I try to run the game it crashes with the following message: Uncaught SyntaxError: Unexpected token ']'

MikalDev commented 4 years ago

Thanks for the bug report, the library is not configured for minification, so it's required that it's off (I'll add a note to the documentation page about this.)

In terms of the error, I will try another export and look for the error.

I assume it works ok in preview?

reinildo commented 4 years ago

Yes, it works on preview. On productions it throw this error: Uncaught SyntaxError: Unexpected token ']'

Thanks for the great work. You're awesome.

MikalDev commented 4 years ago

Please try the latest version (1.9.0). If it works, please close this issue.

I changed the spine-webgl.js script to export as an external runtime script, instead of adding it to the C3 DOM script. I think there were recent changes (perhaps with the problematic closure compiler update) which changed how scripts could be added. This is also better in terms of one day enabling worker mode.

reinildo commented 4 years ago

It works like a charm. Thanks a lot.