Docs

These docs follow the dev branch and can describe changes newer than v0.9.4. The release notes list what the download contains.

Build from source#

The launcher runs these same scripts. Use a checkout when you're changing host or ShiftGlue code.

Requirements#

  • Windows 10 or 11, x64, PowerShell 5.1 or newer.
  • Microsoft's C++ libraries and Windows SDK. With the prebuilt ShiftGlue kit, and once you accept Microsoft's licence (PINYON_SHIFT_ACCEPT_MICROSOFT_LICENSE=1, the launcher's checkbox), setup fetches only those with xwin (about 770 MB, no administrator rights). Otherwise it uses Visual Studio 2022 C++ Build Tools 17.1 or newer and installs them if missing. The kit carries the Visual C++ runtime DLLs that xwin and the ShiftGlue tools need, so a PC without the Visual C++ Redistributable can build too. PINYON_SHIFT_MSVC_SYSROOT=0 always uses the Build Tools; building ShiftGlue from source needs them.
  • A GPU with Vulkan 1.3 (or, experimentally, Direct3D feature level 11_0: see the Direct3D 11 backend), an internet connection and about 30 GB free.

Setup checks the C++ library and the Windows SDK before building, and stops with compiler diagnostics if they're too old.

Set up and play#

git clone https://github.com/arcanite24/pinyon-shift.git
.\tools\setup-preview.ps1 -IsoPath C:\path\to\your-disc.iso
.\tools\launch-preview.ps1

setup-preview.ps1 runs the six setup stages and can be run again after a failure: finished downloads and extraction are reused after they're verified. Other forms:

# Check the image only
.\tools\setup-preview.ps1 -IsoPath C:\path\to\your-disc.iso -VerifyOnly
# Build from an extracted folder
.\tools\setup-preview.ps1 -ExtractedPath 'D:\Games\Forza Horizon'

Rebuild#

After changing host or ShiftGlue code:

.\tools\build-preview.ps1

Base and v4 builds regenerate changed translations and refresh their source lists before compiling. Ordinary updates do not need -CleanGenerated. If an older build failed to link a facade DLL with undefined PPCFoldedRanges or PPCFoldedHash, update the source and rerun the build. See Building for the build and update procedure.

Within an existing packaged source directory, setup keeps the managed SDK checkout and unchanged dependency objects when its exact pin changes. CMake still rebuilds changed inputs and flags. A new launcher source/<version> directory does not reuse the previous version's objects. The small Windows and SteamOS fixture checks are described in Local build cost; first-install time and disk requirements remain unchanged.

The pinyon.py command line#

tools/pinyon.py works without PowerShell and is the launcher for Linux builds.

python tools/pinyon.py launch -- --fullscreen=true
python tools/pinyon.py android doctor --install
python tools/pinyon.py android build

launch also takes --state-root, --hidden (no window, audio muted) and --render-test-script for scripted routes. Game arguments go after --. The Android commands are listed on the Android page.

Package the launcher#

.\tools\package-launcher.ps1

The package holds a self-contained launcher and a source archive. It excludes the compiled game, generated translations and all game content.

Contributing#

Read CONTRIBUTING.md first. Repository checks reject disc images, executables, generated translations, extracted assets and build products. Commit subjects follow Conventional Commits.