[r191] Reset persisted objects bugs

Bugs will be moved here once resolved.

Post » Mon Dec 08, 2014 2:36 pm

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
resetpersistbug.capx


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
You do not have the required permissions to view the files attached to this post.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Mon Dec 08, 2014 7:17 pm

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?
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Thu Dec 11, 2014 2:30 pm

Thanks, should be fixed in the next build.
Scirra Founder
B
402
S
238
G
89
Posts: 24,628
Reputation: 196,023


Return to Closed bugs

Who is online

Users browsing this forum: R0J0hound and 0 guests