Saving/loading: Duplicate instances in runtime

This forum is currently in read-only mode.
From the Asset Store
Progress\Loading Bar. Now Load you game like a Professional.
  • I encountered a bug when saving/loading (could be quicksave/quickload or normal save/load command, it doesn't matter) on any cap in runtime mode. Every time you load a saved game, all kinds of objects duplicate inside the game, no matter which.

    This could lead to potentially nasty problems by loading a corrupt save file.

    You only have to load the cap posted here, use left click to save, and then right click to keep loading. You have to run in debug mode to watch the instance count of each object grow and keep gorwing with each "load". There is no other kind of code here, just the save/load. I placed different objects to show that it happens to all kinds of objects.

    One thing I notice is that the "total" objects updates once, but then it keeps silent when I keep loading (although the instances coninue to grow), but if I save, then load (and keep alternating), the object count updates.

    Also, when I select the duplicated objects in the debug menu to examine them, sometimes it crashes, sometimes it doesn't (but it usually crashes more than not).

    I already posted a bug report about this, but I would like to know if this is known (and maybe rushed to post the bug report), or if is there a way for a workaround on this, since it could be a problem relying on the save/load featru and need specific things like counting objects, or something... or maybe I am only having this problem?

    http://www.mediafire.com/file/wktgzuzeg ... veload.cap

    Thanks,

    Italo F. Capasso B. AKA "Edwood Grant"

  • It only seems to duplicate on the load following a save.

    The "duplicate" objects are not rendered nor do they activate events, so I don't see this being a huge problem. The only thing they seem to effect is the total object count. If you have a count for a specific sprite, it stays at one.

    Also, if you inspect the elements through the debug screen, construct crashes.

    Just confirming that it's not only you ;]

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes, I get this also, however, as well as duplication objects, saving then loading the game also screws up my animation system somehow. Interestingly, if you use the debug to try to check the properties of objects duplicated by this bug, Construct crashes. I'll post an example to the bug reporter shortly.

    • Tom
  • For the record, the bug in the original post was fixed in a recent build, and solely affected the object count, rather than spawning ghost objects or anything like that.

  • OK, I'll hold off on bug reports 'til I've tested it in a newer build then. Not sure if the animation issue is down to the same bug, but I'll keep you posted.

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