"extra.solidEnabled" in solid behavior

  • Hi, Ashley

    I find that solid is put in inst.extra.solidEnabled. And inst.extra will be saved automatically when official saving.

    But the minify might change the name of key. Most of savings are put by a string key like extra["se"].

    Will it be an error that inst.extra.solidEnabled has been minified to different key-name?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hmm... it's an interesting point. It's true that it saves using the minified name since it does not use string property syntax. It is probably not a problem for most games, since as long as the same minified code is saving and loading, then it will always use the same property name in the savegame. However if the game is updated with new minified code, it depends on whether the minifier chooses a new name for properties like 'solidEnabled'. I don't think the minifier is deterministic, so this is probably a subtle bug.

    Thanks for pointing it out, I'll make sure the code is updated to use string syntax for those properties.

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