possible to preserve Dictionary data during savegame / load?

0 favourites
  • 3 posts
From the Asset Store
Data+ is the best Data Management solution for Construct 3. It contains 4 Addons (Plugin & Behavior).
  • Is there a way to preserve dictionary data from being included in the save state when using System Save / Load? There is a No Save behaviour that can be added to sprites, but I need to achieve a similar thing for data stored in a dictionary.

    I have a fairly ugly work-around happening at the moment where, following a System > Save event, values that are changed and stored in a dictionary are saved to LocalStorage. Then following System > Load, these new values are read from LocalStorage and put back into the relevant dictionaries, but this is not ideal because there is a fraction of a second where, on System > Load, values revert to the saved state, before being updated to the values stored in LocalStorage... it's just not a good way of doing it I guess. It would be better if I could stop that data being changed back to the saved state somehow?

    Im aware of rex's plugin 'instance bank', but if I understand properly I would need to go through and specify all objects to be included in a saved state, leaving out dictionaries? I think it would be hard to make this plugin recreate the way the native System Save / Load functions work, so im hesitant to head off down that route.

    Basically the native System Save / Load works great, but I would just really love to be able to exclude data in a single dictionary (or possibly all dictionaries) from being affected. Is this possible?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • In my opinion, your current 'workaround' is pretty good as it is. If the solution is consistently working, and does not show itself to be prone to bugs, then why not consider that as a feasible solution?

  • Well I will have to use the work-around if there is no better way. I just feel like this solution has the potential for problems. While it does work, im not sure how robust it is. It would be better if I could prevent the dictionary data from being changed back to the saved state somehow. I guess thats just not possible though? The option doesnt exit to omit dictionaries from System Save / Load. ?

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