Hello Guest

Author Topic: Sprite Collection corruption  (Read 5162 times)

ComputerNerd

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 18
    • View Profile
Sprite Collection corruption
« on: October 01, 2016, 12:58:46 am »
Hi,

Over time, my Sprite Collections become corrupted.  I am unsure how this happens as I do nothing extraordinary.  I don't even notice that something is wrong until I see that the sprite is no longer working so I can't pinpoint when and how it actually happens.  I was wondering if you had some ideas on this, why it may happen, and how to fix this without recreating the whole sprite collection and sprite animations.

It seems to gradually infest all of my sprite collections at some point.



As you can see, this sprite sheet frame is connected to the wrong sprite.  On most spritesheets in this corrupt collection I am unable to click on a frame at all in the Sheet's middle view where it groups them all.

If I click on Config->Apply, it creates a second set of sprites, as so:


This isn't ideal since I lose important data like anchor points.

Oh, the sprite animations connected to these corrupt sprite collections also become corrupt.



Any way to easily correct this?  Thanks!  I am using 2.5.4.
« Last Edit: October 01, 2016, 01:26:52 am by ComputerNerd »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Sprite Collection corruption
« Reply #1 on: October 02, 2016, 03:06:12 pm »
Do you use version control? The easiest way to track this down will be to compare the 2 assets to figure out what's changed. I've not seen this happen before and I've not heard this bug report, would be good to figure it whats happening here.

ComputerNerd

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Sprite Collection corruption
« Reply #2 on: October 05, 2016, 10:40:39 pm »
Hi Unikron,

I've rolled back to a version that is working and have been able to recreate the problem.  I'll recreate the steps in picture form.

Normal sprite sheet, everything looks ok:


And it matches the sprite:


I Delete this sprite sheet because I do not need it anymore:


Now what was the normal sprite sheet is now broken:


The broken sprite:



You'll notice that the Sprite Id changed in both the Sprite as well as the sprite sheet, however they changed to different values.

This is in 2.5.4.

Thank you,
Brian

ComputerNerd

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Sprite Collection corruption
« Reply #3 on: October 05, 2016, 11:59:38 pm »
I just created a new Sprite Collection fresh to try it again.

Added just three sprite sheets of two sprites each.  Committed.  Saved the scene.  Checked-in.

Went back to it and deleted just the first sprite sheet.  Committed.  Saved the scene.

And it broke.  Clicking in the red circle area does nothing.  If I hit Config/Apply, it will duplicate the sprites.


ComputerNerd

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Sprite Collection corruption
« Reply #4 on: October 06, 2016, 02:00:09 am »
Mistake on my end.  It's fixed.