Hello Guest

Author Topic: Could not extract GUID in text file  (Read 17352 times)

OwlchemyLabs

  • Newbie
  • *
  • Posts: 2
    • View Profile
Could not extract GUID in text file
« on: February 22, 2012, 02:52:59 am »
Hey all,

Getting an error "Could not extract GUID in text file whenever I compile a script. Using Unity 3.5.
This began appearing when I enabled text-based scenes and prefabs.

Error message
Could not extract GUID in text file Assets/Frameworks and Packages/TK2DROOT/tk2d_demo/demospritecollection/SpriteCollection_Data/data.prefab at line 1505.
UnityEngine.Resources:LoadAssetAtPath(String, Type)
tk2dEditorUtility:GetExistingIndex() (at Assets/Frameworks and Packages/TK2DROOT/tk2d/Editor/tk2dEditorUtility.cs:94)
tk2dSpriteCollectionBuilder:RebuildOutOfDate(String[]) (at Assets/Frameworks and Packages/TK2DROOT/tk2d/Sprites/Editor/tk2dSpriteCollectionBuilder.cs:18)
tk2dSpriteCollectionTextureWatcher:OnPostprocessAllAssets(String[], String[], String[], String[]) (at Assets/Frameworks and Packages/TK2DROOT/tk2d/Sprites/Editor/tk2dSpriteCollectionTextureWatcher.cs:12)
UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets(String[], String[], String[], String[], String[])

Actual line of code it's complaining about:
index = Resources.LoadAssetAtPath(indexPath, typeof(tk2dIndex)) as tk2dIndex;

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Could not extract GUID in text file
« Reply #1 on: February 22, 2012, 09:22:37 am »
Hi,

This is fixed in version 1.56 - the problem was there is a variable in the file called guid, and Unity stores the actual guid in the YAML file in a variable called guid too. It doesn't actually complain about the name collision apart from that cryptic error message. If you don't wish to upgrade, you could simply rename that variable and all occurences of it - it is meant to cope with it not existing.

Cheers,
unikron