At Feb 1, 2012 source code of RTCW was released. This is slightly patched original source code based at hexameron commits.
You can be interested in original readme also.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to run the project.
You need toolchain for build anything. You need to install needed for building libraries: SDL2, libgl.
For Arch Linux:
# pacman -S extra/sdl2 extra/libglvndAlso you need to create folder for the project (in this tutorial it will be ~/RTCW):
$ mkdir ~/RTCW$ cd ~/RTCW
$ git clone https://github.com/akaWolf/RTCW-SP.git sourcesSupported build system now is CMake:
$ cd ~/RTCW
$ mkdir build
$ mkdir -p game/main
$ cd build
$ cmake ~/RTCW/sources
$ make -j $(nproc)It will build release version.
You can specify build type: cmake -DCMAKE_BUILD_TYPE=Debug ....
You have need to populate such tree:
~/RTCW/game
├── main
│ ├── cgame-rtcw.so
│ ├── pak0.pk3
│ ├── qagame-rtcw.so
│ ├── sp_pak1.pk3
│ ├── sp_pak2.pk3
│ ├── sp_pak3.pk3
│ ├── sp_pak4.pk3
│ └── ui-rtcw.so
└── wolf
As you can see, you need to copy binaries:
$ cd ~/RTCW/build
$ cp wolf ../game/
$ cp *.so ../game/main/and game files from existing game:
$ cd /path/to/installed/game
$ cp {Main/pak0.pk3,Main/sp_pak?.pk3} ~/RTCW/game/main$ cd ~/RTCW/game
$ ./wolfYou can specify needed parameters at command line like so: ./wolf +set r_mode -1 +set r_customheight 1440 +set r_customwidth 2560 +set r_fullscreen 1.
Set r_fullscreen to 1 for fullscreen mode.
r_mode is a resolution mode. it can be:
-2(desktop resolution)-1(resolution isr_customwidthxr_customheight)0..12(see tr_init.c)
fs_basepath is the path to the directory holding all the game directories and usually the executable.
fs_cdpath is the path to an alternate hierarchy that will be searched if a file is not located in the base path.
Set fs_game to . if you want to skip default additional directory level under described paths named main.
You can set fs_basepath to the directory where all compiled files are located and fs_cdpath to the directory where all resources are located.
Set fs_debug to 1 for debugging filesystem subsystem.
Set developer to 1 for verbose log.
This project is licensed under the GPL License - see the COPYING.txt file for details
- John Carmack with a team
- hexameron