AlbaRecomp

AlbaRecomp is a native PC port of FINAL FANTASY XIII-2 that recompiles the game with optimized performance and includes fixes for graphics bugs.

README

AlbaRecomp

Extremely optimized re-compilation of FF13-2 currently targeting x64 Windows, x64/ARM64 Linux and macOS.

AlbaRecomp builds a native port of FINAL FANTASY XIII-2 on your own computer. It uses your own Steam version of the game to do this. It is the sister project of WhiteRecomp (FINAL FANTASY XIII), built with the same translator, runtime and launcher.

Official Discord: https://discord.gg/FHpmpnBJC

The core translation component (XRC; x86 -> C translator+re-compiler) is open source! It lives at https://github.com/ps4star/XRC

Important

AlbaRecomp does not contain the game or any copyrighted game data or assets. You need a legitimate copy of FINAL FANTASY XIII-2 installed from Steam (the current Steam version).

Download

Get the launcher for your system from the Releases page:

SystemFile
Windows (64-bit)AlbaRecompLauncher_windows.exe
Linux (x86-64)AlbaRecompLauncher_linux (run chmod +x on it first; less tested than Windows; needs glibc 2.35 or newer: Ubuntu 22.04, Debian 12, Fedora 36, SteamOS 3 and later)
Linux (ARM64)AlbaRecompLauncher_linux_arm64 (run chmod +x on it first; glibc 2.35 or newer, as above; the least tested: it builds and runs the game on the ARM64 computer itself, which needs Clang, Vulkan drivers and SDL2)
macOS 10.15 Catalina or newer on Intel, macOS 11 or newer on Apple siliconAlbaRecompLauncher_macos.zip: unzip it and open AlbaRecomp.app. It isn't signed, so the first time right-click it and choose Open (or run xattr -dr com.apple.quarantine AlbaRecomp.app). Experimental and untested so far: see macOS.

Put the launcher in a folder of its own. Build creates the game beside it.

The AlbaRecomp-vN-windows-x64.zip, -linux-x64.tar.gz and -linux-arm64.tar.gz files on the same page are these launchers packed for RecompLauncher, with its recomplauncher.json: there you pick your FINAL FANTASY XIII-2 folder, RecompLauncher has AlbaRecomp build the game, and Play starts it.

Quick start

  1. Start the launcher. It finds the game through Steam. If it doesn't, press Browse… and pick the FINAL FANTASY XIII-2 folder (the one containing alba_data).
  2. Install what it says is missing. Usually that's just a C compiler. The launcher offers to install one, and asks for administrator permission only for an install that needs it.
  3. Options (optional). See Options below.
  4. Build. This compiles the game, which takes a few minutes. The result is AlbaRecomp.exe (Linux: AlbaRecomp) beside the launcher, with AlbaRecomp.cfg next to it, which records where your game and saves are.
  5. Run starts the game. You can also start AlbaRecomp.exe directly.

Cutscenes play straight from the game's own movie files, through the game's own Bink library (bink2w32.dll, translated like the rest of the game): there is nothing to convert.

The launcher's language: the drop-down at the top right of its window (English, 日本語, 繁體中文, 简体中文, 한국어, Русский, Deutsch, Français, Español, Português (Brasil), Italiano, Polski). It changes only the launcher's own text.

As AppImage (Linux launchers: the switch above Build). When it's on, Build makes one file, AlbaRecomp-x86_64.AppImage (or -aarch64 on ARM64), instead of AlbaRecomp and its AlbaRecomp.cfg: the game, its settings and an icon packed into a single program you can keep anywhere. Run starts it. AppImages open through FUSE (libfuse2 / libfuse2t64); without it, Run has the AppImage unpack itself to a temporary folder first. With mksquashfs installed (squashfs-tools) the AppImage is compressed (about a third of the size); without it, it's packed uncompressed.

A Build compiles only what changed since the last one, so a second Build is much quicker than the first. Clear Cache (left of Build) deletes everything the launcher and the game have stored: the whole data folder (%LOCALAPPDATA%\ff13-2-launcher on Windows, ~/Library/Application Support/ff13-2-launcher on macOS, ~/.local/share/ff13-2-launcher on Linux) -- the unpacked sources, the compiled objects and an FFmpeg you put in ffmpeg/ yourself -- and, beside the launcher, the built game with its .cfg, logs, crash reports and pipeline caches (nothing else in that folder), so the next Build starts over and compiles everything. Use it if a Build behaves strangely. After you update the launcher, it notices that your game was built by the older one and asks you to Clear Cache and Build -- do that, or the game keeps the old code and its bugs (Run reads Rebuild to Run until then). Kept: your saves (cdrive) and the launcher's settings. While a task runs, Cancel appears left of the buttons.

Requirements

  • FINAL FANTASY XIII-2 from Steam. AlbaRecomp reads the game program (ffxiii2img.exe, which must be the current Steam version, unmodified) and all the game's files from your install. It uses the game's own movie decoder (bink2w32.dll) to play cutscenes. A patched ffxiii2img.exe is refused: have Steam restore it (Properties > Installed Files > Verify integrity of game files). Both Steam editions work: the North America / Europe one and the region-locked Asian one (the Home tab shows EN or JP). With the Asian edition, Subtitles & UI offers English, Japanese, Korean and Traditional Chinese (the languages that edition has), and the game picks its voices itself, so the Voice choice is greyed out.
  • Clang (the C compiler the game is built with).
    • On Windows: LLVM-MinGW, or MSYS2's Clang. Visual C++ can't build the game.
    • On Linux: clang, or GCC (gcc) if you prefer it.
    • On macOS: Apple's command line tools (xcode-select --install; the launcher offers to start that).
    • The launcher lists every compiler it can use and offers to install Clang if there is none.
    • If you installed Clang and the launcher still doesn't find it, use Choose clang.exe… (Windows) or Choose clang… (macOS) in its "A C compiler is needed" dialog and pick the compiler yourself. The dialog also lists every compiler it tried and why it couldn't use it. LLVM's own Windows download targets Visual C++ and can't build the game: use LLVM-MinGW.
    • Steam Deck (SteamOS): SteamOS removes the C headers from its system, so Clang alone can't build anything. The launcher's Install it for me unlocks SteamOS's read-only system, installs Clang and puts the headers back (it asks for your password: set one first with passwd in Konsole if you haven't). A SteamOS update undoes this; press Install it for me again afterwards.
  • A GPU with Vulkan (1.0 or newer; 1.3 is best).
  • SDL2 (Linux): the launcher's window and the game both use it, on Wayland or X11. Most desktops already have it. When it is missing, the launcher says so when it starts and offers to install it; or install libsdl2-2.0-0 (Ubuntu, Debian), SDL2 (Fedora) or sdl2 (Arch) yourself. The macOS app carries its own.

Status

The whole game is translated and runs on Windows. It has been played from the start through the opening and into New Bodhum: the Valhalla battle against Chaos Bahamut, the scenes that follow and the first battles on the beach, with Bink cutscenes, sound and controllers. Much of the rest of the game hasn't been played on the port yet, so please report anything that goes wrong (with the game's AlbaRecomp.log, beside it).

Not in this release yet (a FINAL FANTASY XIII feature of WhiteRecomp's launcher that hasn't been brought over): HDR.

Built-in fixes

Some of FINAL FANTASY XIII-2's own graphics bugs are fixed in every build, with nothing to turn on. AlbaRecomp replaces the game's faulty shaders with its own versions:

  • Depth of field: the blur in the field and in battle is a smooth, round blur instead of a blocky one. The Valhalla opening is fixed the same way.
  • Cutscene depth of field: only the background is blurred. Characters in the foreground stay sharp, and their colours no longer smear into the blurred background around them.
  • Shadows of cut-out leaves and foliage (palm trees, plants) have their proper shapes instead of solid blocks.
  • Rain falls in the world and no longer looks too thick or distorts the picture too strongly: the rain streak texture is shifted as Krisan Thyme's Leviathan's Tears mod shifts it, so the streaks show much less (done in AlbaRecomp itself: nothing of the mod is needed).
  • Movie edges: above 720p the original game leaves a thin line of wrong pixels along the right and bottom edges of the movies (the picture is placed for 1280 x 720 and its edge pixels read past the picture). AlbaRecomp fits the movies to whole pixels at your resolution and keeps those edge pixels inside the picture.

Features & Mods

HD Textures

FF XIII-2 HD: the FF XIII-2 HD mod (Nexus Mods) replaces the game's textures and character models with high-resolution ones. Get opens its download page; download its ZIP, then press Import ZIP… and pick it. The launcher does what the mod's own installer does, on copies of the game's archives, and puts the result in alba_data_hd in the game folder: your game files are not changed. It needs about 30 GB free while it runs and takes a while. The mod's tools are Windows programs: on Linux and macOS they run through Wine.

4K GUI: the HD Fonts and GUI mod (Nexus Mods) replaces the game's text, menus and battle HUD with high-resolution versions. Get opens its download page; download the (STANDALONE VERSION) HD Fonts and GUI ZIP, then press Import ZIP… and pick it. The launcher unpacks only the textures (about 0.6 GB) into alba_data_hd in the game folder; nothing of the mod runs. HD Textures then turns them on or off, with no rebuild. The mod's shader fixes are not taken from it: AlbaRecomp has its own (see Built-in fixes).

Console DLC

Mega Patch (DLC): the console versions' DLC (the extra costumes and weapons, Classic Serah included) from Krisan Thyme's Console Content Patch (v2.0.1), which is also in the Final Fantasy XIII2 Mega fix pack ZIP. Download the ZIP, then press Import ZIP… and pick it. Only the DLC is taken from it: the pack's other mods are not used (AlbaRecomp has its own rain fix, see Built-in fixes). The launcher applies the patch to copies of the files it needs, in memory, for the English and Japanese voices both. It keeps only the DLC files (about 12 MB) and serves them to the game next to its own archives, so your game files are not changed and nothing of the mod runs. The patch was made for the Steam version: with other game files the import says so and stops. Console DLC then turns it on or off, with no rebuild; it works with the HD textures too. Cross-compiled builds take it along: a Linux ARM64 build in its mods folder, and an Android APK carries it inside (Build the APK again after importing).

Cutscenes

Cutscene Colors: Corrected (default) shows the Bink cutscenes with their full range of colour, as they were made; Original shows them as the PC release does (dark scenes crushed to black, bright ones blown out). Brightness, Contrast and Saturation (percent; 100 as is) adjust the cutscenes' picture. They take effect the next time the game starts, with no Build needed.

Boosters

Boosters (Off by default) adds these keys to the game. Each one switches on and off while you play, and its state shows at the top left for a few seconds. F1 opens the in-game options menu; press F1 again in it to go to the Game Speed slider (the other keys work there too, and the boosters have rows in it):

KeyBooster
F1Game speed: a slider from 1x to 8x in steps of 0.25x (in the in-game menu, Left and Right change it)
F2Invincible party: your party takes no damage
F3Max gil: 999,999,999 gil; your own gil comes back when you switch it off
F4One-hit kills
F8Max CP: 999,999 CP for every character, and Crystarium nodes cost nothing; your own CP (still earned) comes back when you switch it off

On Android, the OPTIONS button and LB and RB together on a controller open the in-game options menu, which has the boosters' rows: tap one, or choose it and press A, to switch it. See In-game options menu.

macOS

macOS support has not been run on a Mac yet. Reports of what works and what doesn't are very welcome.

  • The game files: FINAL FANTASY XIII-2 on Steam is a Windows game, so Steam for macOS won't install it. Copy the FINAL FANTASY XIII-2 folder from a Windows PC (or from a CrossOver or Whisky install of Steam), then pick it with Browse….
  • What Build makes: a native game for your Mac (ARM64 on Apple silicon, x86-64 on Intel Macs) in ~/Library/Application Support/ff13-2-launcher/game, not beside the launcher. Run starts it.
  • A Mac app for the game: each Build also puts FINAL FANTASY XIII-2 (AlbaRecomp).app in ~/Applications. Start the game from there, Launchpad or Spotlight without opening the launcher.
  • Graphics, sound and controllers: the app carries MoltenVK (Vulkan on Apple's Metal) and SDL2, so there is nothing to install.

Options

The options are saved between sessions, on two tabs:

  • Game Options: almost everything. These are passed to the game when it starts, so they take effect the next time you start the game, with no rebuild. Most of them can also be changed while you play, in the in-game options menu (see below).
  • Build Options: only what changes how the game is compiled: Compiler, Optimization Level, Profile-Guided Optimization, Link-Time Optimization, Experimental Optimizations and Debug & Profile Tools. After changing one, the Home tab's button reads Build to Run: it builds the game again, then starts it.
In-game options menu

Press F1 in the game to open a menu of the game options and change them while you play. Up and Down choose a row, Left and Right (or Enter and Space) change it, and Escape or Backspace close the menu. While it is open the game gets no keys. Changes apply at once, except the few marked with *, which apply the next time you start the game: turning HDR on or off, and switching Anti-Aliasing to or from FSR 3.1, FSR 4, DLSS or MSAA. Each change is saved to the game's settings, and the launcher picks it up the next time it starts or when the game exits.

The menu has Display (fullscreen, stretch, HDR brightness), Graphics (frame rate, anti-aliasing, anisotropic filtering, effects resolution), Audio (sound on or off, music, sound effect and voice volumes), Controls (mouse sensitivity, vibration, gamepad scanning) and Cutscenes (skipping, blur, colours, brightness, contrast, saturation). With Boosters on, their rows are in it too, and F1 to F4 and F8 still press them while the menu is open.

The last row, QUIT GAME, closes the game. The first press only asks (QUIT GAME? PRESS AGAIN TO QUIT) and a second press quits; moving to another row or closing the menu cancels it. It is the same as closing the window: save first.

On Android, tap the OPTIONS button at the bottom centre of the screen (shown with the touch controls), or press LB and RB together on a controller. Tap a row to change it (tap its left third to step back), drag to scroll, and tap outside the menu to close it. On a controller, the d-pad or left stick moves and changes, A changes, and B, Back, Start or LB and RB again close it.

Display
  • Aspect Ratio: which shape of resolutions the list below offers: 16:9 (the game's own), 16:10, Ultrawide (21:9 and 32:9) or 4:3. At other shapes than 16:9 the 3D view fills the whole screen (wider at ultrawide, taller at 16:10 and 4:3), while the menus and the battle HUD keep their 16:9 shape in the middle; cutscene movies keep theirs, with bars. No Build needed. XRC_ULTRAWIDE=0 in AlbaRecomp.cfg gives the retail game's stretched picture at any shape.
  • Resolution: the resolution the game renders at, passed to the game as -Width=W -Height=H, from the list for the chosen Aspect Ratio (16:9: 854 x 480 up to 7680 x 4320 (8K), 1280 x 720 by default; 16:10: 1200 x 750 up to 7680 x 4800; ultrawide: 2560 x 1080, 3440 x 1440, 3840 x 1600, 5120 x 2160 up to 7680 x 3200 (21:9), 3840 x 1080, 5120 x 1440 up to 7680 x 2160 (32:9) and more; 4:3: 960 x 720 up to 5760 x 4320). 6K and 8K need a GPU with a lot of memory. Higher is sharper and costs more GPU time. The game's window can be resized or maximized, and F11 switches fullscreen on and off; the picture is scaled to fit the window with its shape kept.
  • Window Scaling: Fit (default) keeps the picture's 16:9 shape, with black bars in a window of another shape. Stretch fills the whole window.
  • Start Fullscreen: On opens the game in borderless fullscreen; F11 still switches. Off (default) opens a window.
  • FPS: the frame rate cap: 30, 60 (default), Uncapped (VSync) (your display's refresh rate) or 120, 144, 165 or 240 (for a display at least that fast). Every screen of the game runs at it, the ones the game itself runs at 30 too (the Paradigm Pack's bestiary, the Datalog). The game's speed stays right at any rate. No Build needed.
  • Graphics Driver: Vulkan, the port's own renderer.
Graphics

GPU picks the graphics card the game draws with. Auto (the default) takes the best one, and shows its name: a dedicated graphics card always comes before a GPU built into the processor, and among GPUs of the same kind the one with the newest Vulkan version, the most features and extensions and the most video memory wins. So on a laptop with both, the game uses the dedicated card. Every GPU the computer has is listed by name; choose one to make the game use it whatever the others are. If the chosen GPU is gone later (an external GPU unplugged, a new card), the game takes the best one instead, and the row says so. The game's log lists every GPU with its score and says which one it took. No Build needed.

Graphics is a preset for shadows and anti-aliasing:

ChoiceShadowsAnti-aliasing
Ultrafast (Worst Quality)OffOff
Fast512 x 5122x FXAA
Fancy (Default)1024 x 1024, the game's default4x FXAA
Ultrafancy8192 x 81928x FXAA
CustomAs set belowAs set below

Custom shows Shadow Resolution (passed to the game as -Shadow=N; Off draws no shadow maps at all), Anti-alias Method and Anti-alias Quality (1x, 2x, 4x or 8x, for FXAA and MSAA). The Anti-alias Methods, as in WhiteRecomp:

  • FXAA (default): a cheap filter on the 3D image that leaves the HUD sharp.
  • MSAA: the game's own multisampling, -MSAA=N.
  • TAA: temporal anti-aliasing: each frame blended with the ones before it, smoothing edges and shimmer better than FXAA at a small cost. Not on Android.
  • FSR 3.1: AMD's FidelityFX Super Resolution 3.1 as native-resolution anti-aliasing (no upscaling). Windows and Linux.
  • FSR 4 (AMD): AMD's FSR 4 at native resolution, on Windows. With this option on, Build downloads AMD's FidelityFX SDK 2.4 Vulkan files (about 36 MB, from AMD's own GitHub reposit