Plugin Instance variables names in exported version

For developers using the Construct 2 Javascript SDK

Post » Tue Apr 11, 2017 11:17 am

Hello,

I have a problem with one of my plugins.
It works perfectly in preview mode but when I export it, some datas that I rely on seems to disapear.

It's a translation plugin that iterates over each plugin to find instance variables names and values
But when exported, the key "instance_var_names" is not present, which break the whole plugin

Preview :
Image

Export :
Image

Is there any way to get it back, or to access it ?
Maybe @Ashley, it's a bug ?

Thanks for your help
http://armaldio.xyz - Image - Join now our Discord Server ;) - https://discord.gg/0eLPLj96B4tUr1D3
B
56
S
16
G
1
Posts: 249
Reputation: 5,721

Post » Tue Apr 11, 2017 1:19 pm

The names are only there for the debugger. It's by design that names are stripped out of the exported version, because lots of users are concerned about reverse engineering and removing the names makes reverse engineering harder.

You should probably use Dictionaries if you need to use key names.
Scirra Founder
B
397
S
236
G
88
Posts: 24,389
Reputation: 194,448


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 1 guest