GitHub dependency zips and latest-preview snapshots

Thanks! We write an XML file to Engine/Build/Commit.gitdeps.xml which lists all the binaries you need to have for each commit. The first time you run Setup.bat/Setup.sh, it creates a Git hook to run a program called GitDependencies when you checkout or merge, and that program compares what’s in your workspace to the manifest and downloads any differences from our CDN. The source for GitDependencies is in the repository under Engine/Source/Programs/GitDependencies, if you want to take a look at it!

If we had our own dependencies, since GitDependencies would delete any folders not listed in that file, how would we go about adding them? Have GitDependencies point to our own server and modify the file? Or are there any other options on this? Just curious before modifying the tool for an engine modification.

It scans for any files matching the pattern /Build/.gitdeps.xml, so you could certainly add another to your fork. As a solution, it’s really best suited to the situation where you’re pushing binaries 1:many - it works well because it’s a contained to the repository (you don’t need to install any git extensions or anything like that), but it would make for pretty nasty merges if two people modify the binaries list at the same time. Something like git-media or git-annex would be better suited to that kind of thing.

That said, if you really want to try it, you might be interested to have a look at this pull request, where submitted a standalone tool to generate those files - https://github.com/EpicGames/UnrealEngine/pull/884.

I will. Thanks. I was just trying not to end up with running one gitdeps, it erasing any of my folders while updating the official dependencies.

Hi. I’m trying to build UE4 form source and I just saw that your guide is outdated.

It was made for v4.5 and not 4.6 or 4.7 so there is no mention there of the setup.bat that downloads the dependencies. So of course when you run GenerateProjectFiles.bat like the guide says you should, you get an error saying that you lack some dependencies (obviously). Could you please update the guide ? I’m sure other people have had the same issues as me.

What about GitHub’s LFS extension? It’s in early access at the moment but it’s fully supported by the GitHub app.

I can’t seem to find the answer anywhere. I’ve been afflicted with a rather frustrating problem that Nuclearfossil had as well, but he didn’t detail how he solved it. The Setup.bat seems to want some file called UE4Prereqsetup_x64.exe, but I didn’t get such a file when I cloned the repository. What do I do?

Setup.bat should download that file when it runs Engine\Binaries\DotNET\GitDependencies.exe. It would be downloaded to Engine\Extras\Redist\en-us\UE4PrereqSetup_x64.exe.

What output do you get when you run Setup.bat? Can you check your virus scanner hasn’t quarantined either of the above files?

I get the same, and it throws up that message as soon as the cmd window shows ‘Installing prerequisites…’ right at the start of the download.

If it helps, this is my shortcut’s target;

It doesn’t seem to happen with the normal Setup.bat (at least not straight away).

Screenshot:
6544941427613bd517dab6de7a248442.png

I think you have setup.bat repeated twice in that shortcut. It’s treating the second one as an argument, but can’t parse it, which is giving you an error (but it’s scrolled off the top of the screen).

When I clicked on all the links above I got the same result:

Anyone help me to download engine source code?

It sounds like you haven’t associated your GitHub account with your UE account, or you’re not logged in to GitHub. You can find instructions on how to set it up here.

Grabbed the latest .zip of source onto a new machine, unpacked it and ran setup.bat. Watched the “Updating dependencies” counter spend a while building up to 99%, then fail with this:

Checking dependencies (excluding Mac, Android, Linux)…
Updating dependencies: 99% (22123/22124), 3130.3/3131.0 MiB | 4.78 MiB/s…
Failed to download ‘http://cdn.unrealengine.com/dependencies/2636785-bb59fe7a4b5f4abc9305901e79ac10da/e70061ffc85b6027a648cac0b1c8c6ef7d4e3106’: Can’t read from pack stream (CorruptPackFileException)

Initially thought maybe I had a network problem near the end since it had gotten that far. Tried again with the same result.

Tried this again on another machine, and it works. The main difference between the two machines is Windows 10 (didn’t work) and Windows 8.1 (did work). So now I’m not sure if this is a problem specific to Windows 10 or something else with that machine.

Hi jmp0,

Would you be able to create a new post in the Bug Reports section of the AnswerHub for this?

Thanks,

Sure.

Hello everyone.

I am trying to compile Unreal 4.6.1 ,but when I executed Setup.bat I found the next error:

E:\UnrealEngineSource>Setup.bat Checking dependencies (excluding Mac, HTML5, Android)…
Received 17642/17657 files (2607,2/2608,7mb; 0,01mb/s; 99%)…
Failed to download ‘http://cdn.unrealengine.com/dependencies/2369409-8e3ef78261c144639cff509a0b6b4805/8b9dc269d72f7357a9ff4be501cd5836b33d2a3c’ to ‘C:\Users\Venus\AppData\Local\Temp mp8F7A.tmp’: The magic number in GZip header is not correct. Make sure you are passing in a GZip stream. (InvalidDataException)
Press any key to continue . . .

I tried to run Setup.bat again, but I always have the same issue:

E:\UnrealEngineSource>Setup.bat Checking dependencies (excluding Mac, HTML5, Android)…
Received 0/15 files (0,1/1,6mb; 0,01mb/s; 0%)…
Failed to download ‘http://cdn.unrealengine.com/dependencies/2369409-8e3ef78261c144639cff509a0b6b4805/8b9dc269d72f7357a9ff4be501cd5836b33d2a3c’ to ‘C:\Users\Venus\AppData\Local\Temp mpA943.tmp’: The magic number in GZip header is not correct. Make sure you are passing in a GZip stream. (InvalidDataException)
Press any key to continue . . .

As you can see only lack to download less than 2 mb, but I always have the same error.

How I can solve it?
What is the problem?

Thanks before hand!

Why Make Them As a Zip?Stupid!!

Hi,

I just puled the latest git version and I don’t have any oof the files bolded. How can I know which files it is downloading, and where are they saved?

I also tried to interrupt the download and resume it (something I should be able to do according to the original post), but it restart from 0%. Why?

Is there a particular font, type of font, or font system that is needed for Linux versions of the Unreal Engine SDK? On Linux Mint 17.3 I was able to compile everything (supposedly successfully, no errors) and run UE4Editor I get this:

I tried updating some libraries, to newer versions (when possible, considering availability and compatibility) and recompiling, several times, but always the same thing. But since the writing is all messed up, it occurred to me that maybe I just needed a new font. Unfortunately, I can’t read the apparent error message in the bottom right of the screen. Does anyone have any ideas what I’m missing or what’s going on here?