0 Favourites

[r191] Reset persisted objects bugs

  • Problem Description

    System Reset persisted objects action is duplicating persisted objects, recreating persist objects that should be destroyed after second or more restart of layout.

    Attach a Capx

    Yeah

    [attachment=0:1jbbooec][/attachment:1jbbooec]

    Description of Capx

    Contains an object "PersistObject" with Persist behavior, Textbuttons to Reset persisted objects and to Restart layout, Text with description of other bugs in Reset persisted objects action on the margins, Double click somewhere in the project to create PersistObject, objects can be dragged with mouse, Text to show dragged items UID & IID.

    Steps to Reproduce Bug

    • Open project and preview it with debugger
    • Look how much instances of "PersistObject" you have, should be 1 - #0
    • Click Reset persisted objects, then Restart layout, then click Restart layout again

    Observed Result

    Look at the debugger, now we have 2 instances #0 and #1, if you move the object in preview before the restart, the object will go back to it's initial place after restart, but after second restart, another object appears on the place where the initial object was before first restart.

    The #0 and #1 have identical UID.

    Expected Result

    After restarts, the objects staying at their initial state, the initially non existed objects still not exist, persisted objects are on their initial places and nothing is duplicated.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES/NO)
    • Internet Explorer: (YES/NO)

    Operating System and Service Pack

    Windows 7 64bit with latest updates and latest drivers.

    Construct 2 Version ID

    r191

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • And bug with the spawned objects.

    Run preview

    Double click somewhere to create PersistedObject

    Reset persisted objects and Restart layout

    See that the spawned objects are gone(as they should, because initially they are not exist)

    Restart the layout again and they are back

    This can't be avoided, i tried reset - restart - reset - restart, spawned object destroys, but if i have objects that initially exist like the one in the attached capx, they are still become duplicated on restart without resetting and this means that after first reset, on every restart of layout i need to reset the persisted objects again, but if i want to just restart the layout?

  • Thanks, should be fixed in the next build.

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