Banbury / UnityPsdImporter

Advanced PSD importer for Unity3D
Other
167 stars 65 forks source link

DirectoryNotFoundException #4

Closed pax83 closed 10 years ago

pax83 commented 10 years ago

bug, then layers has invalid symbols like colon

DirectoryNotFoundException: Could not find a part of the path 
"C:\Users\PAX\Documents\GUITest\Assets\GameCenterPack_01:16\ 04:27.png".
System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/FileStream.cs:292)
System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
(wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int)
System.IO.File.Create (System.String path, Int32 bufferSize) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/File.cs:135)
System.IO.File.Create (System.String path) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/File.cs:130)
System.IO.File.WriteAllBytes (System.String path, System.Byte[] bytes) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/File.cs:594)
PSDEditorWindow.SaveAsset (UnityEngine.Texture2D tex, System.String suffix)
PSDEditorWindow.ExportLayers ()
PSDEditorWindow.OnGUI ()
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
playemgames commented 10 years ago

Can't debug this on my end, looks like your directory name is wrong, either include a small project or email me with the details on the bug.

pax83 commented 10 years ago

Simply try to import this psd http://freebiesbug.com/psd-freebies/gamecenter-ui-pack/

playemgames commented 10 years ago

I tried it and it worked on my end. One thing to note is to uncheck all the Layer Groups when importing, and if you want text to come in appropriately, flatten your layers before hand. Layer Groups are not really supported at this point.