Skip to content

[EN] How to build and setup on Windows

Xottab_DUTY edited this page Mar 24, 2019 · 16 revisions

How to build and setup OpenXRay on Windows

Build:

Currently, the only compiler supported is MSVC.

If you don't have Visual Studio yet, you can download and install Visual Studio 2017 Community Edition - it's absolutely free for open source projects.

You will definitely need to install the following items that are available for installation in Visual Studio installer:

  • Windows 8.1 SDK (or newer)
  • Visual C++ MFC for x86 and x64
  • C++/CLI support
  • NuGet package manager

You will need following extension to save files in Visual Studio with encoding UTF-8 without BOM.

Libraries:

All required libraries are already in repository as plain files or as submodules.

Setup:

  • Install S.T.A.L.K.E.R: Call of Pripyat

  • Install patch 1.6.02 (only for russian locale, worldwide release should have it included):

  • Clone the repository (you should not download it as an archive)

    • If you are using Git console, here's the command:

      • git clone https://github.com/OpenXRay/xray-16.git --recursive
    • If you are using Git client:

      • You can just push Open in Desktop if you are using Github Desktop.
      • Then type this command in the Git console git submodule update --init --recursive
  • Now you can build the engine!

Debug/Run from Visual Studio:

In solution "engine" properties in Visual Studio set:

  • Startup Project: Single startup project = xr_3da

In Project "xr_3da" properties set:

  • Debugging: Working Directory = C:\PATH\TO\StalkerCallOfPripyat\ (folder which contains fsgame.ltx)

Some tips

Currently Debug build is very slow. It's recommended to use Mixed.

Clone this wiki locally