2D Toolkit Forum
2D Toolkit => Support => Topic started by: 4shm3x 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
-
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.
-
I have backups everywhere have managed to get my Tk2D folder back to how it is in the first screenshot
-
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.
-
How can I tell what the default positions?
-
After you install tk2d on the new blank project, use that as a reference as to where things need to be.
-
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?
-
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.
-
Brilliant thanks. only thing holding my project back now really