Hello Guest

Author Topic: Errors updating to 2.5 for Unity5  (Read 6543 times)

eholding007

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 1
    • View Profile
Errors updating to 2.5 for Unity5
« on: March 05, 2015, 06:03:06 pm »
I am trying to update TK2D to version 2.5 for Unity5 but am getting several errors which cause it not to load. Dropping back to TK2D v2.1 makes these errors go away but would like to get the most up to date version.

Assets/TK2DROOT/tk2d/Code/Runtime/tk2dResource.cs(4,14): error CS0101: The namespace `global::' already contains a definition for `tk2dResource'

Assets/TK2DROOT/tk2d/Code/Runtime/tk2dSystem.cs(5,14): error CS0101: The namespace `global::' already contains a definition for `tk2dResourceTocEntry'

Assets/TK2DROOT/tk2d/Code/Runtime/tk2dSystem.cs(13,14): error CS0101: The namespace `global::' already contains a definition for `tk2dAssetPlatform'

Assets/TK2DROOT/tk2d/Code/Runtime/tk2dSystem.cs(21,14): error CS0101: The namespace `global::' already contains a definition for `tk2dSystem'

Any ideas what could be wrong?

Thanks.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Errors updating to 2.5 for Unity5
« Reply #1 on: March 05, 2015, 07:17:27 pm »
Looks like your install was corrupt / contains duplicate classes in other places? Look for tk2dResource.cs in your project, does it exist anywhere else?

Kirb

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: Errors updating to 2.5 for Unity5
« Reply #2 on: March 07, 2015, 08:33:13 am »
I am getting similar errors. Newly converted project to Unity 5. Downloaded 2.5 from the releases thread and updated...


Assets/TK2DROOT/tk2dTileMap/Code/tk2dTileMapBuilderUtil.cs(8,29): error CS0101: The namespace `tk2dRuntime.TileMap' already contains a definition for `BuilderUtil'
Assets/TK2DROOT/tk2dTileMap/Code/tk2dTileMapChunks.cs(8,22): error CS0101: The namespace `tk2dRuntime.TileMap' already contains a definition for `LayerSprites'
Assets/TK2DROOT/tk2dTileMap/Code/tk2dTileMapChunks.cs(18,22): error CS0101: The namespace `tk2dRuntime.TileMap' already contains a definition for `SpriteChunk'
Assets/TK2DROOT/tk2dTileMap/Code/tk2dTileMapChunks.cs(83,22): error CS0101: The namespace `tk2dRuntime.TileMap' already contains a definition for `SpriteChannel'
...

Actually, these errors seem to be present even when using my earlier version of 2DTK, when updated to Unity 5.
Any idea as to what may be causing these?
« Last Edit: March 07, 2015, 10:51:36 am by Kirb »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Errors updating to 2.5 for Unity5
« Reply #3 on: March 07, 2015, 12:07:22 pm »
I suspect the same function exists elsewhere for some reason - could be a duplicate file. This shouldn't be an issue - it doesn't appear in a new project if you install tk2d. Only way to figure it out is t o look for the offending errors and see where the duplicates are.

Kirb

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: Errors updating to 2.5 for Unity5
« Reply #4 on: March 07, 2015, 08:03:51 pm »
No duplicate files, but removing 2DTK entirely from the project and then reimporting it seems to have done the trick. Good enough for me!