2D Toolkit Forum

2D Toolkit => Releases => Topic started by: unikronsoftware on May 15, 2013, 02:07:10 pm

Title: 2D Toolkit Integrity Checker
Post by: unikronsoftware on May 15, 2013, 02:07:10 pm
Hi folks,

Since we are drawing really close to the 2D Toolkit 2.0 release, I'm releasing this 2D Toolkit runtime integrity checker. This will check your project to see if the GUIDs are correct on the tk2d runtime files. It is highly advisable to run this to make sure your installation is healthy before upgrading to 2.0.

1. Import unity package into your project, restart Unity if necessary.
2. You will see a "2D Toolkit Integrity Check" menu. Click the "Run" submenu there.
3. Wait until it does its thing.
4. When it finishes, you either get an "Integrity check success!" message, or "Integrity check failed..." message with one or more errors.

I would appreciate it if you could vote on the poll, and reply with the console dump if you have any errors.
ps. to uninstall, just delete the tk2dIntegrityChecker folder.

This version will check integrity up to version 2.0 - version 2.0 and above will have a built in integrity checker.
Title: Re: 2D Toolkit Integrity Checker
Post by: m4ko on May 15, 2013, 02:52:17 pm
What did I win?   8)
Title: Re: 2D Toolkit Integrity Checker
Post by: GameDragon on May 15, 2013, 05:13:53 pm
Integrity check success!

Glad to see 2.0 is almost here. ;D
Title: Re: 2D Toolkit Integrity Checker
Post by: TekuStudios on May 17, 2013, 01:05:17 pm
Yay! Huge success!!  8)
Title: Re: 2D Toolkit Integrity Checker
Post by: Sundaerae on May 17, 2013, 05:29:35 pm
I'm waiting eagerly :D
Title: Re: 2D Toolkit Integrity Checker
Post by: Aldwin on June 01, 2013, 04:21:58 pm
Hi!

I wanted to upgrade to V2.0 and used the integrity checker as recommanded. I failed with this long error message :

Code: [Select]
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Camera\tk2dCamera.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Camera\tk2dCameraAnchor.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Fonts\tk2dFont.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Fonts\tk2dFontData.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Fonts\tk2dTextMesh.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Gui\tk2dButton.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Runtime\tk2dResource.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Runtime\tk2dSystem.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dAnimatedSprite.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dBaseSprite.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dClippedSprite.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dPixelPerfectHelper.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dRuntimeSpriteCollection.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dSlicedSprite.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dSprite.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dSpriteAnimation.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dSpriteCollection.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dSpriteCollectionData.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dSpriteCollectionInterfaces.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dStaticSpriteBatcher.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dTiledSprite.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\TileMap\tk2dTileMap.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\TileMap\tk2dTileMapBuilderUtil.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\TileMap\tk2dTileMapChunks.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\TileMap\tk2dTileMapColliderBuilder.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\TileMap\tk2dTileMapData.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\TileMap\tk2dTileMapMeshBuilder.cs

UnityEngine.Debug:LogError(Object)
tk2dExternal.ExternalUI:DoCheckDeploymentIntegrity()

So I upgraded to v1.92 final (I was in 1.91), hoping the corrupt files will be replaced but I had exactly the same message... Any idea how to fix this to upgrade to v2.0 ?
Title: Re: 2D Toolkit Integrity Checker
Post by: unikronsoftware on June 03, 2013, 11:10:11 am
If GUIDs don't match, it means you've either:
1. Shared your project with dropbox, etc. without having meta files on
2. Deleted your libraries folder without meta files on
3. Source control without meta files

If you did any of the above, there will be issues upgrading. The metadata in your project is already irrepairably broken, but you can still update. It will mean more work on your part.

Drop me an email at support at unikronsoftware.com and we'll discuss further.
Title: Re: 2D Toolkit Integrity Checker
Post by: Maxime on July 08, 2013, 06:52:24 pm
how do I download it?
Title: Re: 2D Toolkit Integrity Checker
Post by: unikronsoftware on July 08, 2013, 06:57:16 pm
You need to have registered your copy following the instructions here:
http://unikronsoftware.com/2dtoolkit/forum/index.php/topic,34.0.html
Title: Re: 2D Toolkit Integrity Checker
Post by: grimmy on July 09, 2013, 02:10:08 pm
I am trying to update the plugin but I just get ' It seems that you are not allowed to download or view attachments on this board.' when I hit the download button inside the updater panel.
Title: Re: 2D Toolkit Integrity Checker
Post by: unikronsoftware on July 09, 2013, 02:13:01 pm
You need to have registered your copy following the instructions here:
http://unikronsoftware.com/2dtoolkit/forum/index.php/topic,34.0.html
Title: Re: 2D Toolkit Integrity Checker
Post by: freaksed on July 09, 2013, 11:09:49 pm
I managed to update and it seems to be working, but the integrity checker still fails (mind you i reimported a few more times just to make sure the files were up to date) log follows
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Camera\tk2dCamera.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Camera\tk2dCameraAnchor.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Fonts\tk2dFont.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Fonts\tk2dFontData.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Fonts\tk2dTextMesh.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Gui\tk2dButton.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Runtime\tk2dResource.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Runtime\tk2dSystem.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dAnimatedSprite.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dBaseSprite.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dClippedSprite.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dPixelPerfectHelper.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dRuntimeSpriteCollection.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dSlicedSprite.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dSprite.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dSpriteAnimation.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dSpriteCollection.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dSpriteCollectionData.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dSpriteCollectionInterfaces.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dStaticSpriteBatcher.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dTiledSprite.cs

UnityEngine.Debug:LogError(Object)
tk2dExternal.ExternalUI:DoCheckDeploymentIntegrity()
Title: Re: 2D Toolkit Integrity Checker
Post by: unikronsoftware on July 10, 2013, 11:25:26 am
Integrity checker failing means at some point in the past you've moved files outside the Unity interface, used dropbox / version control without meta files on, or something similar to break metadata. Updating usually works fine, but you won't be able to share assets you create with other people by exporting and importing unitypackages - the scripts will be broken on import. If its not causing any issues to you, then thats fine - it should be ok more or less if you don't move the files from the default locations.
Title: Re: 2D Toolkit Integrity Checker
Post by: mton on August 04, 2013, 06:21:18 am
Trying to update from 1.91 and got the following error:

Assets/Plugins/tk2d/Code/Camera/tk2dCameraUtil.cs(48,14): error CS0101: The namespace `global::' already contains a definition for `tk2dCameraResolutionOverride'
Assets/Plugins/tk2d/Code/Sprites/tk2dSpriteCollectionSize.cs(9,14): error CS0101: The namespace `global::' already contains a definition for `tk2dSpriteCollectionSize'

File GUID does not match: Assets/Plugins/tk2d/Code/Camera/tk2dCamera.cs
File GUID does not match: Assets/Plugins/tk2d/Code/Camera/tk2dCameraAnchor.cs
File GUID does not match: Assets/Plugins/tk2d/Code/Fonts/tk2dFont.cs
File GUID does not match: Assets/Plugins/tk2d/Code/Fonts/tk2dFontData.cs
File GUID does not match: Assets/Plugins/tk2d/Code/Fonts/tk2dTextMesh.cs
File GUID does not match: Assets/Plugins/tk2d/Code/Gui/tk2dButton.cs
File GUID does not match: Assets/Plugins/tk2d/Code/Runtime/tk2dResource.cs
File GUID does not match: Assets/Plugins/tk2d/Code/Runtime/tk2dSystem.cs
File GUID does not match: Assets/Plugins/tk2d/Code/Sprites/tk2dAnimatedSprite.cs
File GUID does not match: Assets/Plugins/tk2d/Code/Sprites/tk2dBaseSprite.cs
File GUID does not match: Assets/Plugins/tk2d/Code/Sprites/tk2dClippedSprite.cs
File GUID does not match: Assets/Plugins/tk2d/Code/Sprites/tk2dPixelPerfectHelper.cs
File GUID does not match: Assets/Plugins/tk2d/Code/Sprites/tk2dRuntimeSpriteCollection.cs
File GUID does not match: Assets/Plugins/tk2d/Code/Sprites/tk2dSlicedSprite.cs
File GUID does not match: Assets/Plugins/tk2d/Code/Sprites/tk2dSprite.cs
File GUID does not match: Assets/Plugins/tk2d/Code/Sprites/tk2dSpriteAnimation.cs
File GUID does not match: Assets/Plugins/tk2d/Code/Sprites/tk2dSpriteCollection.cs
File GUID does not match: Assets/Plugins/tk2d/Code/Sprites/tk2dSpriteCollectionData.cs
File GUID does not match: Assets/Plugins/tk2d/Code/Sprites/tk2dSpriteCollectionInterfaces.cs
File GUID does not match: Assets/Plugins/tk2d/Code/Sprites/tk2dStaticSpriteBatcher.cs
File GUID does not match: Assets/Plugins/tk2d/Code/Sprites/tk2dTiledSprite.cs
File GUID does not match: Assets/Plugins/tk2dTileMap/Code/tk2dTileMap.cs
File GUID does not match: Assets/Plugins/tk2dTileMap/Code/tk2dTileMapBuilderUtil.cs
File GUID does not match: Assets/Plugins/tk2dTileMap/Code/tk2dTileMapChunks.cs
File GUID does not match: Assets/Plugins/tk2dTileMap/Code/tk2dTileMapColliderBuilder.cs
File GUID does not match: Assets/Plugins/tk2dTileMap/Code/tk2dTileMapData.cs
File GUID does not match: Assets/Plugins/tk2dTileMap/Code/tk2dTileMapMeshBuilder.cs

UnityEngine.Debug:LogError(Object)
tk2dExternal.ExternalUI:DoCheckDeploymentIntegrity()

The 1st two are preventing me from running the project.  Any thoughts?

-Mike
Title: Re: 2D Toolkit Integrity Checker
Post by: unikronsoftware on August 04, 2013, 04:10:26 pm
Yeah, it looks like you've broken unity metadata in your project, probably for the reasons listed here:
Integrity checker failing means at some point in the past you've moved files outside the Unity interface, used dropbox / version control without meta files on, or something similar to break metadata. Updating usually works fine, but you won't be able to share assets you create with other people by exporting and importing unitypackages - the scripts will be broken on import. If its not causing any issues to you, then thats fine - it should be ok more or less if you don't move the files from the default locations.

This can't be fixed, but you can still upgrade, if you manually move and overwrite the files in Assets/Plugins/tk2d with the ones from Assets/TK2DROOT/tk2d. Turn on meta files and make a backup before you proceed, you can easily break your project further if you make mistakes.
Title: Re: 2D Toolkit Integrity Checker
Post by: mton on August 05, 2013, 01:05:28 am
Interesting.  I had thought that I had metafile on the entire time...

Anyhows, I manually move and overwrite the files in Assets/Plugins/tk2d with the ones from Assets/TK2DROOT/tk2d and are getting this error now:

Assets/Plugins/tk2dUI/Code/Core/tk2dUISpriteAnimator.cs(5,37): error CS0246: The type or namespace name `tk2dSpriteAnimator' could not be found. Are you missing a using directive or an assembly reference?

Any thoughts on what that might mean.  Thanks for your help and consideration so far.

-Mike
Title: Re: 2D Toolkit Integrity Checker
Post by: unikronsoftware on August 05, 2013, 10:18:52 pm
It means that not all the files have been moved - tk2dSpriteAnimator.cs is missing, or perhaps in the wrong folder?
Title: Re: 2D Toolkit Integrity Checker
Post by: mangulator on August 13, 2013, 05:13:09 am
I have a project that failed the check  :(  but otherwise works. I understand I probably cannot upgrade tk2d because of this, but what other problems might this cause me down the road? Is it possible some sprite collection might become corrupt?

Here's my errors:
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Camera\tk2dCamera.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Camera\tk2dCameraAnchor.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Fonts\tk2dFont.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Fonts\tk2dFontData.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Fonts\tk2dTextMesh.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Gui\tk2dButton.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Runtime\tk2dResource.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Runtime\tk2dSystem.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dAnimatedSprite.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dBaseSprite.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dPixelPerfectHelper.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dRuntimeSpriteCollection.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dSlicedSprite.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dSprite.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dSpriteAnimation.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dSpriteCollection.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dSpriteCollectionData.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dSpriteCollectionInterfaces.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\Sprites\tk2dStaticSpriteBatcher.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\TileMap\tk2dTileMap.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\TileMap\tk2dTileMapBuilderUtil.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\TileMap\tk2dTileMapChunks.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\TileMap\tk2dTileMapColliderBuilder.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\TileMap\tk2dTileMapData.cs
File GUID does not match: Assets\TK2DROOT\tk2d\Code\TileMap\tk2dTileMapMeshBuilder.cs
Title: Re: 2D Toolkit Integrity Checker
Post by: unikronsoftware on August 13, 2013, 10:57:20 pm
You won't have any issues if you don't need to update.
Its still possible to update manually, but it tends to be a huge pain. If you don't care about upgrading, then the only thing to watch out for is sharing assets with others with unmodified tk2d packages.
Title: Re: 2D Toolkit Integrity Checker
Post by: fattie on September 09, 2013, 02:29:29 pm
Integrity Check Success! .. thank God!   :D