Skip to content

About

No description, website, or topics provided.

Resources

Stars

97 stars

Watchers

3 watching

Forks

Repository files navigation

fci-recomp

A native Windows port of Far Cry Instincts (2005, original Xbox) and Far Cry Instincts: Evolution (2006, original Xbox), built by statically recompiling the code from a disc image. Code is translated to C ahead of time and compiled into a Windows program, which runs alongside a reimplementation of the Xbox kernel, Direct3D and audio.

Note: this repository contains no original copyrighted game code, data, assets, or executables. An original game disc is required for the recompilation to run.

DISCORD: https://discord.gg/UhRnapmH2j

AI Use Disclosure

This project was made using extensive AI assistance and LLM-related tools. A human with a programming background is in the loop throughout development, and I review as much code and documentation as I can.

Status

Version 0.3.0 - Current stable release, supports Windows and Steam Deck via Proton. Far Cry Instincts and Far Cry Instincts Evolution are fully playable in single player campaign modes with working map editors, online multiplayer with built-in server browser, offline LAN multiplayer, and split screen multiplayer modes. Both titles are running on a D3D12 renderer with various visual enhancements.

Features

  • 2 recomps in 1; both Far Cry Instincts and its follow-up sequel Far Cry Instincts: Evolution.
  • Single player story mode for both games as they were on the original Xbox.
  • Online and LAN multiplayer for both games through a server browser in the Multiplayer menu.
  • Map editors for both games as they were on the original Xbox. Building them is optional and can be skipped if you aren't interested in making maps. Enhancements to the map editors are planned!
  • Quick save (F5) and quick load (F9) in Story Mode.
  • Mouse and keyboard support. The mouse manipulates the game camera directly, rather than simply driving a digital analog stick. Keybinds can be changed in fci.ini or the launcher.
  • Modern visual enhancements via a modified version of Xbox XBE Recomp tailored for Far Cry Instincts and Evolution. Anisotropic filtering, anti-aliasing, screen-space ambient occlusion, scalable internal rendering resolution, soft shadows, scalable sun shadow resolution, borderless fullscreen, increased draw distances, adjustable field of view, various aspect ratios, experimental volumetric fog, and more.

Roadmap

See our #roadmap on the Discord channel!

Requirements

  • Windows 10 or 11 64-bit, and a GPU that supports Direct3D 12
  • About 10 GB of free space
  • Nothing else to install, as of 0.2.4 - the release includes the compiler and the other build tools
  • A dump of at least one of the following game discs, as an ISO or extracted files:
    • Far Cry Instincts (original Xbox, title ID 55530008, version 1)
    • Far Cry Instincts: Evolution (original Xbox, title ID 55530060, version 3)

Setup

With the launcher

  1. Download the zip of the latest release and extract it.
  2. Start FCI Launcher.exe. Windows may warn that it's from an unknown publisher, since the launcher isn't signed. Click "More info", then "Run anyway".
  3. Choose your disc image (or drop it on the window), then Build. Tick the map editor box to build it too.
  4. Launch your game.

With BuildGame.cmd

  1. Download the zip of the latest release and extract.
  2. Drag your disc image (or the folder with the disc's files) onto BuildGame.cmd.
  3. Wait for it to finish: expect 5-20 minutes depending on your hardware. Nothing is downloaded or installed. Consider raising an issue if you have any errors during the recompilation/build process.
  4. (Optional) Drag your disc image onto BuildEditor.cmd to recompile and build the game's map editor if you intend to make maps, which you should, because it's pretty cool.
  5. Start FarCryInstincts\FarCryInstincts.exe, or FarCryEvolution\FarCryEvolution.exe.
  6. Repeat the above steps for each title.

Save data and log files are stored in %APPDATA%\fci-recomp by default. This directory can be changed by modifying fci.ini. Note that there are separate .ini files for each title. If a damaged profile is repaired at startup, the save it set aside is kept in save-backups there. The build folder contains an object cache meant to keep future updates faster in some cases. It can be deleted safely, but keep it to speed up future updates.

Developers can run the same steps via Python: python fci-recomp.py setup <disc> (--help lists the options).

A git checkout doesn't include the compiler and toolkit; the first build downloads them once (python -B tools/toolchain.py fetch does it ahead of time).

Steam Deck (experimental)

Both Instincts and Evolution run on the Steam deck via Proton, but this is experimental. Expect some issues here and there. The FCI Launcher is not supported yet on Steam Deck, nor is building the game in Linux.

  1. Build the game (and the map editor, if you want it) on a Windows PC as above.
  2. Copy the whole game folder (FarCryInstincts or FarCryEvolution, with its game folder inside) to the Deck.
  3. In Desktop Mode, add FarCryInstincts.exe or FarCryEvolution.exe to Steam as a non-Steam game.
  4. In the game's Properties > Compatibility, force Proton 10, Proton stable, or newer.
  5. Launch it from Steam.

Configuration

Adjust game settings under the Settings tab in FCI Launcher, or in-game under the Options menus. Keybinds must be setup in the launcher or .ini file exclusively, for the moment.

Alternatively - directories, display, graphics, keybinds, and other settings are configured by editing fci.ini, found next to the game executable. For more information on what each setting does, read the comments included in the ini. To change a setting, you must remove the preceding semicolon ; from a line and change values to your desired settings. Save and relaunch the game.

Known issues

  • Crashes may rarely occur during single player mode or elsewhere. Please report any crash and include your crash log to help improve the project.
  • Occasional freezes on Steam Deck/Linux under Proton, requiring a force quit.
  • Frame rates above 30 are experimental (see display-frame-rate in fci.ini). AI and physics may break or cause a game softlock, unless the engine update cap setting is enabled. Multiplayer always runs with the cap.
  • Minor visual glitches or performance dips in some areas.
  • At a wide field of view, the screen edges can show stale image strips indoors.
  • Volumetric fog is a work-in-progress, and may cause crashes or other glitches. Try it out and see if you like it.

Logs of crashed sessions are kept in %APPDATA%\fci-recomp\logs. Consider raising an issue and attaching a crash log if your game crashes, or report any other technical issues.

Legal

This is an unofficial fan project, not affiliated with or endorsed by Ubisoft, Crytek or Microsoft. Far Cry is a trademark of Ubisoft Entertainment; Xbox is a trademark of Microsoft. All trademarks belong to their owners.

The repository contains no code, data or assets from the game, and no Microsoft software. You need a legally obtained copy of the original game. Requests for game copies, or links to them, will be removed.

License

This project's code is released under the MIT license. Third-party components keep their own licenses: see THIRD_PARTY.md. That includes Xbox XBE Recomp (MIT), xboxrecomp (MIT, with LGPL-2.1 parts from xemu), and our patches to those LGPL files, which are LGPL-2.1 as well.

Thanks

sp00nz for xboxrecomp, TGP482 for Xbox XBE Recomp, and the xemu developers, whose hardware research this builds on.

About

No description, website, or topics provided.

Resources

Stars

97 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages