Plugin failing when exported

0 favourites
  • 3 posts
From the Asset Store
The I18N (Translation) is a Construct plugin created to translate text in game.
  • Hi, I've just tried exporting my game, which makes use of a few custom plugins I've written (well, one behaviour and one plugin, to be precise).

    The game works great in local preview mode but, when trying to use a feature in the exported HTML5 game that triggers an action in the plugin, Firebug throws a TypeError: c.bj is undefined.

    This would seem to meet the exact description given at construct.net/en of :

    "Game works in preview but not after exporting

    This is usually caused by broken third-party plugins and behaviors which do not work with the minifier. The error message will probably include random characters like P.wf is undefined. You should report the problem to the plugin or behavior developer."

    So, I *am* the plugin developer... what sort of issues should I be looking for in my plugin that would upset the minifier?

  • sounds like sth was broken with the minifier - try without ticking the option and see.

    If so, do a search in the forum, Ashley gave some tips about it.

    (e.g replace all A.b by A["b"])

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Ah great, thanks for the tip (didn't find the post at construct.net/en before - think I must have searched the wrong subforum :(

    I wasn't "mixing" notation, but changing all my object.property dot syntax accessors to bracket object["property"] seems to have done the trick. A marginal cost to the readability of the code, but at least it now works - thanks!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)