forked from 0xBADEAFFE/xray-16
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.txt
62 lines (55 loc) · 2.68 KB
/
build.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
TITLE: X-Ray 1.6 build and setup instructions
Build:
------
Currently, the only compiler supported is Visual C++ 2017. 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.
Windows SDK is available from Visual Studio 2017 installer. You will definitely need to install the following items:
* 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:
https://marketplace.visualstudio.com/items?itemName=hbuexinxin.ForceUTF8NoBOM
Libraries:
------
To build X-Ray Engine you'll need following libraries:
* Windows SDK
* BugTrap: https://github.com/Xottab-DUTY/BugTrap
* CryptoPP: https://github.com/weidai11/cryptopp
* FreeImage: http://freeimage.sourceforge.net
* FreeMagic: https://github.com/OpenXRay/FreeMagic
* GameSpy: https://github.com/nitrocaster/GameSpy
* libjpeg: https://github.com/OpenXRay/libjpeg
- Use "jpeg" as project root directory name for compatibility with CxImage
* libogg-1.1.4: http://xiph.org/downloads
* libtheora-1.1.1: http://xiph.org/downloads
* libvorbis-1.2.3: http://xiph.org/downloads
* Lightwave: https://github.com/OpenXRay/LightWave
* Luabind: https://github.com/Xottab-DUTY/luabind-deboostified
* LuaJIT: https://github.com/Xottab-DUTY/LuaJIT
* lzo: https://github.com/alexgdi/lzo
* Autodesk Maya 2008/2009 SDK: https://github.com/OpenXRay/maya
* Autodesk 3DS Max 6.0 SDK: https://github.com/OpenXRay/3dsmax
* NVAPI: https://developer.nvidia.com/nvapi
* OpenAutomate: https://developer.nvidia.com/openautomate
* pugixml: https://github.com/zeux/pugixml/
* zlib: http://zlib.net
All mentioned libraries are already in repository 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):
http://cop.stalker-game.ru/?page=patches#2
- Clone the repository (you should not download it as an archive)
You can just push `Open in Desktop` if you are using Github Desktop.
If you are using Git console, here's the command:
`git clone https://github.com/OpenXRay/xray-16.git --recurse-submodules`
- If you are using git client, make sure all submodules are initialized.
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\ (which contains fsgame.ltx)