Skip to content

Return to Castle Wolfenstein Single Player GPL Source Release

License

Notifications You must be signed in to change notification settings

akaWolf/RTCW-SP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Return to Castle Wolfenstein Single Player GPL Source Release

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.

Getting Started

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.

Prerequisites

You need toolchain for build anything. You need to install needed for building libraries: SDL2, libgl.

For Arch Linux:

# pacman -S extra/sdl2 extra/libglvnd

Also you need to create folder for the project (in this tutorial it will be ~/RTCW):

$ mkdir ~/RTCW

Cloning the repository

$ cd ~/RTCW
$ git clone https://github.com/akaWolf/RTCW-SP.git sources

Building

Supported 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 ....

Deployment

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

Run

$ cd ~/RTCW/game
$ ./wolf

You 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.

Some variables

Set r_fullscreen to 1 for fullscreen mode.

r_mode is a resolution mode. it can be:

  • -2 (desktop resolution)
  • -1 (resolution is r_customwidth x r_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.

License

This project is licensed under the GPL License - see the COPYING.txt file for details

Acknowledgments

  • John Carmack with a team
  • hexameron

About

Return to Castle Wolfenstein Single Player GPL Source Release

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 93.1%
  • Perl 3.4%
  • C++ 2.2%
  • Objective-C 1.1%
  • Assembly 0.2%
  • CMake 0.0%