Unreal Engine 4 and a Small Team - Day 1
We started using Unreal Engine 4 for the first time as a team today at Get Set Games. It was an interesting day. I’m going to share our experiences here.
We are a small team (2 developers, 2 artists and 2 designers) and we’re evaluating UE4 to see if it’s a good fit for a new mobile game. Today 3 of us (myself and 2 designers) worked on setting up a project in source control so that we can collaborate. All 3 of us have been using UE4 since shortly after Epic announced their new licensing model at GDC. However, this was the first time any of us had used it in a team environment.
Project Setup
To start things off, we forked Epic’s github repository for the engine, made a git repo for our project and then added our engine fork as a submodule in our project repo. The thinking here is that anyone who works on the project could build our fork of the engine and use the resulting editor to author the project.
This turned out to be a problem for a couple of reasons:
Wow, does it ever take a long time to build the engine. ~20-30 minutes on our machines. This is not something that we want to have anyone doing with any regularity and
If you do this and create a project with the resulting editor, you’ll find that when the second team member builds the engine and tries to load the project, it will warn that the project was made with a different version of the engine and that it needs to be upgraded - even if there are no code differences between engines. This is because the project’s engine version is set to a UUID identifying the engine, which is different for each build.
So we scrapped the “everyone builds their own engine” idea. Later, we’ll set up our CI server to build our fork of the engine and distribute that to team members (I suspect this will be a whole other blog post), but for now we’ll just use the version that’s available for download to create our project.
We removed the submodule from the project repo, emptied the project repo altogether and recreated the project using the engine that is available for download on Epic’s website. We used the “Code Third Person” template.
It was around this point that we noticed something else interesting: when we play the game in the editor, the frame rate gets cut in half if we’re watching a YouTube video in Chrome at the same time. Even when not playing the game, general editor usage also seems to suffer. This is unfortunate because the training videos that Epic has on YouTube are terrific and would be ideal to have open at the same time as the editor.
Next it was time to determine which files we can have git ignore in our project repo. I found that this response on the UE4 AnswerHub did the trick for us:
Binaries/
Intermediate/
Saved/
ProjectName.opensdf
ProjectName.sdf
ProjectName.sln
ProjectName.v12.suo
Our project repo is looking great now. It’s time to test some workflow scenarios:
Merge Conflicts
One of the first things we tried was having two people make a change to a level and resolve the resulting merge conflict. This highlighted a major problem: all levels, materials, blueprints, etc. are stored as binary files by UE4. This means that git can’t merge them. The only way to resolve this kind of conflict is to back out one team member’s change. Care to flip a coin?
This implies that we may need to adopt a workflow that doesn’t rely on merging. Perhaps we could avoid merge conflicts by having everyone work in their own levels?
I swapped a few tweets back and forth with Jeff LaMarche, who wrote a fantastic post last month about his company’s decision to switch from Unity to Unreal. He said they’ve adopted a checkin/checkout SCM method using Perforce
@derekvanvliet Perforce. Unfortunately.
Tried git (our standard), SVN, and Perforce.
Not great, but UE4 seems to work best with Perforce
— Jeff LaMarche (@jeff_lamarche)
September 22, 2014
@derekvanvliet Check out / Check in. It’s archaic. It feels like being forced to go back a decade. :(
I’m hoping they improve git support.
— Jeff LaMarche (@jeff_lamarche)
September 22, 2014
Alternatively, I wonder if UE4 could be made to serialize some or all of these binary assets in a text format that could be merged effectively by git (such as json or xml).
Editor Live Updating
Then we posed the question: what happens if I pull down changes to files in our project’s git repo while I have the editor open?
This proved to be problematic. It appears that the editor places a lock on any file that is part of the project. When git goes to modify one such file, it results in a permission denied error.
It seems that as a general rule, we should have the editor closed when pulling the latest SCM changes down. It would be really nice if project files could be modified externally and refresh the editor in such cases.
Editor Live Updating pt. 2
Lastly we asked what would happen if we pull down changes in our project’s git repo that only consisted of new files (such as new materials) when the editor is open.
We found this worked fine, but agreed that the frequency of us adding assets without actually using them in a level would be low.
Moving Forward
It was a day full of unexpected and interesting problems. Next we’re going to evaluate UI layout, blueprint, matinee, building UE4 on our CI server, deploying cross-platform products and integrating third party mobile ad libraries.
Derek van Vliet