DEV Community

Juego Studios
Juego Studios

Posted on

Setting Up Perforce Streams for a Small Unreal Team: A Day-One Configuration Checklist

Most small Unreal teams in the UK start on Git, hit the wall with large binary assets, and move to Perforce somewhere around their first vertical slice. The move itself is easy. What hurts is the configuration nobody thought about on day one: a typemap that lets two people edit the same map, a stream layout that makes hotfixes awkward, or a contractor who can see the whole depot when they only needed one plugin.

This is the checklist I'd want a small team to work through before the first p4 submit, especially if outside developers will join the project later.

1. Decide the stream layout before you import anything

Streams are cheap to create and annoying to restructure, so sketch the shape first.

  • One mainline (for example //Project/Main) that is always meant to build and run.
  • Development streams only for work that genuinely needs isolation for more than a few days, such as an engine upgrade or a risky systems rewrite. Short-lived feature work is usually simpler straight on mainline with small, frequent submits.
  • Release streams cut from mainline when you lock a build for a milestone, store submission or publisher demo, so hotfixes don't drag in half-finished features.
  • Consider virtual streams for people who only need part of the depot (an audio contractor, for instance). They filter the view without duplicating files.

Write the layout down in a short README in the depot root. The next person to join will thank you.

2. Get the typemap right on the first day

Unreal assets (.uasset, .umap) are binary and can't be merged. If two people edit the same one, somebody loses their work.

  • Set .uasset and .umap to a binary type with exclusive checkout (the +l modifier), so only one person can have the file open for edit at a time.
  • Keep source, config and text files (.cpp, .h, .cs, .ini, .uproject, .uplugin) as text so they diff and merge normally.
  • Large source art (.psd, .fbx, .blend, .wav) should be binary too, and usually locked as well.
  • Apply the typemap before the initial import. Changing file types afterwards is possible but tedious, and it's easy to miss files.

3. Ignore the folders that don't belong in version control

Add a .p4ignore file (and make sure P4IGNORE is set for every workspace) that excludes Unreal's generated folders:

  • Saved/, Intermediate/ and DerivedDataCache/ at project and plugin level.
  • IDE files such as .vs/ and *.sln if you regenerate project files locally.
  • Binaries/ is a team decision. Programmers usually build their own; artists and designers need prebuilt editor binaries from somewhere, which is what the next point is about.

4. Plan how non-programmers get working editor builds

Artists and designers shouldn't have to compile C++ to open the editor.

  • Unreal Game Sync (UGS) lets people sync to a changelist that is known to build, and can pull precompiled editor binaries produced by your build machine.
  • If UGS feels heavy for a five-person team, a simpler option is a build machine that submits editor binaries to a separate path at known-good changelists. Just be clear which approach you use, and don't mix them.
  • Either way, agree on one rule: nobody syncs to a changelist the build machine hasn't passed.

5. Lock down permissions with groups, not individuals

The protections table is where contractors and outside teams get handled properly.

  • Create groups such as core-dev, art, contractors-network and grant access by group. Adding or removing a person then becomes a one-line change.
  • Give external developers write access only to the paths they work in, and read access to what they need to build. They rarely need release streams.
  • Restrict who can create or reparent streams, and who can edit the typemap and triggers. On a small team that's usually one or two people.
  • Use separate accounts for build machines, never a shared human login.

6. Agree on changelist habits early

Tooling is half of it. The other half is how people submit.

  • Small, focused changelists with a real description ("Fix null ref in inventory UI when stack is empty") instead of "stuff".
  • Check in code and the assets it depends on in the same changelist, so nobody syncs a half-change that won't load.
  • Release locks when you're done for the day. Exclusive checkout only works if people don't sit on files over the weekend.
  • If you use a review tool such as Swarm or shelved changelists for review, decide now which changes need review and which don't.

7. Test the setup with one fresh workspace

Before declaring it done, have someone who wasn't involved create a brand-new workspace on a clean machine, sync mainline and open the editor.

  • Did it sync only what it should?
  • Did the editor open without compiling (for non-programmers)?
  • Can they check out a map, and does a second person get blocked as expected?

If that person hits a snag, the next contractor will hit it too, only later and more expensively.

Bringing in outside developers

Getting Perforce right matters most when the team grows beyond the people who set it up. If you're planning to add external engineers to an Unreal project, it's worth having this baseline in place first. We work with studios that bring in Unreal developers for hire, and a tidy depot is one of the things that makes the first week productive rather than spent untangling access.

If you're also weighing an engine upgrade on a live project, I wrote a separate checklist on scoping a UE4 to UE5 move for UK studios that pairs well with this one.

Top comments (0)