Skip to main content

Preview feature

Binary archives are currently a preview feature and may be enabled only on selected environments. Behaviour and command flags may change before general availability.
On large Unreal projects, only a handful of people need to compile the editor. Everyone else - artists, designers, level builders - just needs a working editor that matches the current source. Compiling C++ locally is slow, error-prone, and a waste of time for non-programmers. Unreal Game Sync (UGS) solves this with Precompiled Binaries (PCBs): a programmer compiles the editor, attaches the binaries to a Perforce changelist, and everyone else syncs that changelist and pulls the matching binaries instead of building. Diversion’s dv archive command provides the same workflow, natively and without Perforce:
  • a programmer or a build machine compiles the editor and publishes the binaries against a specific commit.
  • Anyone fetches the binaries and gets a ready-to-run editor - no local compile.
Because the binaries are pinned to a commit, there is never any ambiguity about which build matches your synced source.

How it maps to UGS

Prerequisites

  • Diversion installed and signed in on both the build machine and the team machines. See the Quickstart if you have not set this up.
  • The Unreal project tracked as a Diversion repository.
  • A clean workspace on the build machine when publishing (no uncommitted changes) - the archive is bound to the exact commit you are on.

What to put in the archive

For a typical Unreal project, the compiled output that other team members need lives in:
  • Binaries/ - the project’s compiled modules
  • Plugins/**/Binaries/ - compiled plugin modules
  • (For a source-built engine) Engine/Binaries/ and Engine/Plugins/**/Binaries/
Decide which of these your team needs to receive. A common split for a project that uses the installed engine is just the project’s own Binaries/ and Plugins/.

Keep binaries out of the committed tree

Add the binary output directories to your .dvignore so they are not synced as ordinary workspace files. Archives are the distribution channel for them; committing them as well would defeat the purpose and bloat the repo.

Publishing a build

On the build machine, after a successful compile and with the workspace checked out at the commit you want to publish against:
1

Zip the compiled output

Create a single zip containing the binary folders you want to distribute. The internal layout of the zip is up to you - you map it to destinations in the next step. For example, a zip whose root contains Binaries/ and Plugins/ folders.
2

Publish the archive against the current commit

  • engine-binaries is the archive name your team will fetch by.
  • The zip path must be absolute.
  • Each <dst>=<src> maps a folder inside the zip (<src>) to a destination relative to the workspace root (<dst>). Use forward slashes for <src> even on Windows.
On success you will see Published 'engine-binaries' from <commit> (sha=...).
If the zip’s Binaries/Plugins folders are already at the locations you want them unpacked to, the mapping is just Binaries/=Binaries/ Plugins/=Plugins/. To unpack the whole zip into the workspace root instead, pass a single destination with no =src:
You cannot publish the same archive name against the same commit twice. If you produce a new build for a commit that already has engine-binaries, publish it under a different name (for example engine-binaries-hotfix).

Fetching a build

On a team member’s machine:
1

Make sure the destinations are empty

Every destination the archive unpacks into must be absent or empty before fetching. If you previously built locally, clear the old Binaries/ and Plugins/ output first - otherwise the fetch is rejected and nothing is written.
2

Fetch the archive

The command downloads and unpacks the archive, showing progress (download, then extraction) until it completes. When it finishes you have a ready-to-run editor with no local compile.
To discover which archives exist for the repository:

Automating with a build machine / CI

The natural setup is to publish from CI (or a dedicated build machine) on every change to engine or game C++:
  1. CI checks out the latest commit on the target branch and builds the editor.
  2. CI zips the binary output and runs dv archive publish engine-binaries <zip> ... while checked out at that commit.
  3. Team members run dv archive fetch engine-binaries --commit <commit>.
For wiring Diversion into a Horde-based Unreal build farm, see Set up Horde with Diversion.