Hello Guest

Author Topic: TK2D folder looks off?  (Read 6245 times)

4shm3x

  • Newbie
  • *
  • Posts: 5
    • View Profile
TK2D folder looks off?
« on: March 03, 2013, 08:44:10 pm »
So my current tk2d folder looks like this:

https://dl.dropbox.com/u/61299149/errorcurrent.png

When I update to 1.91 through the asset store I then have these two folders:

https://dl.dropbox.com/u/61299149/error3.png

Which look like this:

https://dl.dropbox.com/u/61299149/error2.png

And in unity I get these errors:

https://dl.dropbox.com/u/61299149/error.png

So my question is how do I sort my TK2D out and not corrupt anything?

Thanks

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: TK2D folder looks off?
« Reply #1 on: March 03, 2013, 10:45:51 pm »
This looks very much like you've moved the tk2d files out of the default locations. Did you by any chance do it outside Unity? Looks like you might have done this - you now have duplicate scripts in your project. If you've moved files outside Unity, that means that the metadata will have been broken.

I suggest getting your project back to the original state before updating.
If you don't have a backup, make one now, and then start deleting all the new files the newest version has added. Get it back to the original state, and I can offer some tips on how to update.

4shm3x

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: TK2D folder looks off?
« Reply #2 on: March 04, 2013, 10:23:17 am »
I have backups everywhere  have managed to get my Tk2D folder back to how it is in the first screenshot

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: TK2D folder looks off?
« Reply #3 on: March 04, 2013, 10:54:23 am »
Ok now that you have it as it is in the first screenshot, you need to merge the rest of the code manually. The easiest way to do this is to create an empty new project, import the latest tk2d in there, and then back in your old project, move all the files back to the default positions. Note: you MUST move these files from within the Unity project browser. Once you're happy all the files are back where they are supposed to be, import the new package in. This should overwrite all the old files instead of creating duplicates like it was the last time. I suggest keeping the standard directory structure, just to make upgrades easier.

4shm3x

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: TK2D folder looks off?
« Reply #4 on: March 04, 2013, 11:15:35 am »
How can I tell what the default positions?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: TK2D folder looks off?
« Reply #5 on: March 04, 2013, 11:24:18 am »
After you install tk2d on the new blank project, use that as a reference as to where things need to be.

4shm3x

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: TK2D folder looks off?
« Reply #6 on: March 04, 2013, 02:07:41 pm »
Awesome thanks, I will give that a look when I get home.
This won't mess up ym project and the hundreds of sprites I have will it?

Also wondering if you guys managed to take a look at the other problem I had which I have been in contact with you via email. Having problems creating animations from new sprite colelctions?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: TK2D folder looks off?
« Reply #7 on: March 04, 2013, 02:17:16 pm »
It won't if you do it carefully :)
Always make a backup before starting something like this...


Not had a chance to look at that yet, will get around to it soon.

4shm3x

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: TK2D folder looks off?
« Reply #8 on: March 04, 2013, 04:56:07 pm »
Brilliant thanks. only thing holding my project back now really