본문 바로가기
Unreal

Unreal 5.1.1 엔진 소스 Setup.bat 오류 해결 방법

by myroad 2023. 8. 10.

Unreal 5.1.1의 소스코드을 다운받아 Setup.bat을 실행하면 아래와 같은 오류가 발생한다.

Failed to download 'http://cdn.unrealengine.com/dependencies/UnrealEngine-23448686/00bea197a7e321f427afb5898d135b353746bab8': InvalidDataException: The archive entry was compressed using an unsupported compression method.
   at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
   at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
   at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
   at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
   at System.IO.Compression.DeflateStream.ReadCore(Span`1 buffer)
   at System.IO.Compression.DeflateStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.Compression.GZipStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at GitDependencies.Program.ExtractFilesFromRawStream(Stream RawStream, IncomingFile[] Files, SHA1 RawStreamHasher)Wrapped by CorruptPackFileException: Can't read from pack stream
   at GitDependencies.Program.ExtractFilesFromRawStream(Stream RawStream, IncomingFile[] Files, SHA1 RawStreamHasher)
   at GitDependencies.Program.DownloadAndExtractFiles(String Url, Uri Proxy, String CacheFileName, Int64 CompressedSize, String ExpectedHash, IncomingFile[] Files, Double HttpTimeoutMultiplier, NotifyReadDelegate NotifyRead)Wrapped by AggregateException: One or more errors occurred. (Can't read from pack stream)
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at GitDependencies.Program.DownloadWorker(ConcurrentQueue`1 DownloadQueue, AsyncDownloadState State, Double HttpTimeoutMultiplier, Int32 MaxRetries, CancellationToken CancellationToken)

해결 방법은 https://github.com/EpicGames/UnrealEngine/releases/tag/5.1.1-release에서 Commit.gitdeps.xml파일도 받아서  Engine/Build/폴더에 덮어 씌워준 후 Setup.bat을 실행시켜 주어야 한다.