NieR Gestalt Recompiled 0.7.2
A PC port of NieR (Xbox 360, 2010), made by static recompilation.
Source code: https://github.com/techman771/nier-recomp   (this build: commit b816c66)

THE GAME IS NOT INCLUDED. You need your own copy of NieR for the Xbox 360, taken
from a disc you own: either extracted to a folder (default.xex and a media
folder) or as a disc image (.iso). The port is made for the release with
title ID 535107E8; it cannot be built from another release.

This package holds no game files and none of the game's code. The game's code
is built on your PC, from your copy, when you install: that step downloads a
compiler (llvm-mingw, 191 MB, from its GitHub page), takes a minute or two and
removes the compiler again. It needs an internet connection that one time.

What you need
  Windows 10 or 11 (64-bit), a Direct3D 12 graphics card, a processor with AVX2
  (Intel Haswell, AMD Zen, or later), about 8 GB of disk space, and an
  internet connection while installing.

Installing with Setup
  Run the setup program. It asks where to install, then for your copy of the
  game (a folder or a disc image), checks it, copies it into the install
  folder and builds the game's code. Your original is not changed. It can also
  add your downloadable content and fetch NVIDIA's DLSS files. Start the game
  from the Start menu or the desktop shortcut.
  Windows may warn that the setup program is from an unknown publisher: it is
  not signed.

Using the zip instead
  1. Unzip it anywhere you can write to (not under Program Files).
  2. Put your game into the Nier folder, so that Nier\default.xex and
     Nier\media exist. From a disc image:
        nier_gamefiles.exe game "C:\path\to\NieR.iso" .
     (run in the unzipped folder; a folder works in place of the image).
  3. Run build_game.cmd to build the game's code (recomp\build\nier_game.dll).
  4. Start recomp\build\nier.exe.

Steam Deck (use the zip, not Setup)
  The game runs there through Proton. In Desktop Mode:
  1. In Steam, install "Proton Experimental" (Library, tick Tools in the filter).
  2. Unzip this package somewhere with 8 GB free, for example Documents.
  3. Open the unzipped folder in Dolphin, right-click an empty spot, choose
     Open Terminal Here, and type:   bash deck-install.sh
     It asks for your copy of the game (a folder or a disc image), copies it,
     builds the game's code (it downloads a compiler, 84 MB, and removes it
     again; a few minutes) and offers to add the game to Steam.
  4. In Steam, the game's Properties: under Compatibility force Proton
     Experimental; under Launch Options put the line the script printed
     ("...deck-launch.sh" %command%). The launch script holds the GPU clock
     steady while the game runs, which removes a slight judder.
  Settings that held 60 fps on an LCD Deck: 60 Hz, Frame Rate 60, Output
  Resolution 720p, Upscaling FSR 3.1 Native, Shadows High.

Updates
  When the game starts it looks for a newer release (one request to GitHub's
  list of this project's releases) and, if there is one, asks before the title
  screen: update now, not now, or skip that version. A controller is enough to
  answer. Updating downloads the new release, checks it, rebuilds the game's
  code only if it has to, and starts the game again. Your saves, your settings
  and your copy of the game are kept. "Check for Updates" under PC Settings
  turns the check off.
  Steam Deck: the same, when the game is started with deck-launch.sh. Or, in
  Desktop Mode with the game closed, in the game's folder:
        bash deck-install.sh --update

Downloadable content ("The World of Recycled Vessel" / "15 Nightmares")
  Setup can add it from a folder. By hand: put the content package, as an
  Xbox 360 stores it, into dlc\535107E8\00000002\ - or, if you have it already
  unpacked, put the unpacked files into a folder there whose name ends in ".d",
  for example dlc\535107E8\00000002\DLC.d\media\DLC01.cpk. Or run
        nier_gamefiles.exe dlc "C:\path\to\folder" .

Settings
  Options > Game Settings > PC Settings in the game: frame rate (up to 240 fps
  or uncapped), output resolution, upscaling (FSR 1, FSR 3.1, DLSS), shadow
  quality, button icons, key bindings. The title menu has Quit to Desktop.
  Controllers: Xbox, PlayStation and Steam Deck controls, or keyboard and mouse.

DLSS (GeForce RTX cards)
  NVIDIA's files are not part of this package. Tick the box in Setup, or run
  recomp\build\get_dlss.cmd: it downloads NVIDIA's Streamline SDK from NVIDIA's
  GitHub (276 MB), checks it and keeps the four files it needs (60 MB). DLSS
  then appears under Upscaling.

Where things are (inside the install folder)
  save\                         your saved games
  recomp\build\settings.ini     your settings
  recomp\playtest.log           the log of the last run - attach it, with
  recomp\playtest.log.err       this one, when you report a problem
  recomp\shadercache\           compiled shaders (safe to delete)
  recomp\build\nier_game.dll    the game's code, built on your PC (do not share
                                it: it is made from the game)
  recomp\gamebuild\build.log    the log of that build
  The first start compiles shaders for a few seconds and shows its progress.

Known issues in 0.7.2
  - Short pauses (a tenth to half a second) now and then, mostly when entering
    an area or the first time an effect is shown.
  - With DLSS at 4K the frame rate can dip below a 240 fps cap.
  - The mouse pointer is not used in menus.
  - Played through to Ending A on Windows. Later endings and the downloadable
    content have had little testing.
  Report problems at https://github.com/techman771/nier-recomp/issues

Licence
  The port's own code is under the GNU General Public License, version 3
  (LICENSE.txt); the source is at the address above. Third-party parts and
  their licences are listed in licences\THIRD-PARTY.txt.
  NieR is the property of Square Enix. This project is not affiliated with or
  endorsed by Square Enix, Microsoft or NVIDIA.

