gameDNAstudio / gameDNAinstaller

Automatic SDK downloader and installer for gameDNA's plugins
https://www.gamednastudio.com
Other
34 stars 7 forks source link

Errors on installing UltimateMobileKit plugin from gameDNAinstaller #4

Closed shaisa closed 6 years ago

shaisa commented 6 years ago

Hi there,

Tried to install the new UltimateMobileKit plugin from the gameDNAinstaller in UE and received a crash of the installer: image

With the following error after 41% of unpacking archive CPP.zip:

Unhandled Exception: System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
   at System.IO.PathHelper.GetFullPathName()
   at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at SharpCompress.Readers.IReaderExtensions.WriteEntryToFile(IReader reader, String destinationFileName, ExtractionOptions options)
   at SharpCompress.Readers.IReaderExtensions.WriteEntryToDirectory(IReader reader, String destinationDirectory, ExtractionOptions options)
   at gameDNAinstaller.FilesManager.UnpackArchive(String ArchiveFileName, String BaseDirectory)
   at gameDNAinstaller.Installer.ProcessConfig(List`1 Libraries)
   at gameDNAinstaller.Installer.Main(String[] args)

Plugin installation error

After copying the project's directory from a 66 character long path to a 10 character long path, it worked. I think that the original folder path is quite normal so it's better to not have this limitation in the installer. (I don't want to change the directories' structure of my projects / copy-paste the project every time I want to install the plugin after an update.)

gameDNA-Helix commented 6 years ago

Hello,

this is a limitation on Windows and yes, you have short path to the project but many libraries have very long paths after unpacking so it's why this error sometimes occurs. It's not error of long path to project but error of long path to library.

Patrick, gameDNA Ltd

bh-mohd commented 5 years ago

can someone help me i have the same problem and i move the project direct to the C: drive the still the the error

shaisa commented 5 years ago

If you get exactly the same error, try changing the folder name of the installation path to something shorter (even 10 characters long to be on the safe side).

bh-mohd commented 5 years ago

ok thx man for responding i will try it :)