| 1 |  |
| 2 | |
| 3 | ,---------------------------------------. |
| 4 | | _ _ ____ | |
| 5 | | (_)___ __ _ _ _ __ _| |_____|__ / | |
| 6 | | | / _ \/ _` | || / _` | / / -_)|_ \ | |
| 7 | | |_\___/\__, |\_,_\__,_|_\_\___|___/ | |
| 8 | | |_| | |
| 9 | | | |
| 10 | `--------- https://ioquake3.org --------' |
| 11 | |
| 12 | The intent of this project is to provide a baseline engine which may be used |
| 13 | for further development and to play _Quake 3: Arena,_ _Team Arena,_ and mods. |
| 14 | |
| 15 | Our source code is at https://github.com/ioquake/ioq3 |
| 16 | If you aren't there, then this isn't ioquake3, it's someone else's project. |
| 17 | |
| 18 | Some of the major features currently implemented are: |
| 19 | |
| 20 | * CMake meta-build system |
| 21 | * SDL 2 backend |
| 22 | * OpenAL sound API support (multiple speaker support and better sound |
| 23 | quality) |
| 24 | * Full x86_64 support on Linux |
| 25 | * VoIP support, both in-game and external support through Mumble. |
| 26 | * MinGW compilation support on Windows |
| 27 | * AVI video capture of demos |
| 28 | * Much improved console autocompletion |
| 29 | * Persistent console history |
| 30 | * Colorized terminal output |
| 31 | * Optional Ogg Vorbis support |
| 32 | * Much improved QVM tools |
| 33 | * Support for various esoteric operating systems |
| 34 | * cl_guid support |
| 35 | * Web server download redirection |
| 36 | * Multiuser support on Windows systems (user specific game data |
| 37 | is stored in "%APPDATA%\Quake3") |
| 38 | * PNG support |
| 39 | * Web support via Emscripten |
| 40 | * console scaling with con_scale |
| 41 | * Many, many bug fixes |
| 42 | |
| 43 | The map editor and associated compiling tools are not included. We suggest you |
| 44 | use a modern copy from http://icculus.org/gtkradiant/. |
| 45 | |
| 46 | The original id software readme that accompanied the Q3 source release has been |
| 47 | renamed to id-readme.txt so as to prevent confusion. Please refer to the |
| 48 | website for updated status. |
| 49 | |
| 50 | ## Just want to play ioquake3? |
| 51 | Check out our Player's Guide here: |
| 52 | https://ioquake3.org/help/players-guide/ |
| 53 | |
| 54 | ## Want to run a server? |
| 55 | Our SysAdmin guide is here: |
| 56 | https://ioquake3.org/help/sys-admin-guide/ |
| 57 | |
| 58 | ## Visit our forums |
| 59 | If you've got issues that you aren't sure are worth filing as bugs, or just |
| 60 | want to chat: |
| 61 | https://discourse.ioquake.org |
| 62 | |
| 63 | ## I'm going to fork ioquake3 and do my own thing! |
| 64 | Please update your fork's README.md to credit the ioquake3 project and inform users |
| 65 | what project they're looking at so you get credit for your work. |
| 66 | |
| 67 | Feel free to make a thread on our forums to let people know about |
| 68 | your project. We're looking forward to hearing about it. |
| 69 | |
| 70 | |
| 71 | # Thank You: |
| 72 | |
| 73 | <p> |
| 74 | <a href="https://www.digitalocean.com/">Digital Ocean<br/> |
| 75 | <img src="https://opensource.nyc3.cdn.digitaloceanspaces.com/attribution/assets/PoweredByDO/DO_Powered_by_Badge_blue.svg" width="201px"> |
| 76 | </a> |
| 77 | </p> |
| 78 | --- |
| 79 | <p> |
| 80 | <a href="https://www.discourse.org/">Discourse<br/> |
| 81 | <img src= |
| 82 | "https://user-images.githubusercontent.com/1681963/52239617-e2683480-289c-11e9-922b-5da55472e5b4.png" |
| 83 | width="300px"></a> |
| 84 | </p> |
| 85 | --- |
| 86 | <p> |
| 87 | <a href="https://icculus.org/">icculus dot org<br/> |
| 88 | <img src="http://icculus.org/icculus-org-now.png" width="300px"></a> |
| 89 | </p> |
| 90 | --- |
| 91 | <p> |
| 92 | <a href="https://nuclearmonster.com/">Nuclear Monster<br/> |
| 93 | <img src="https://user-images.githubusercontent.com/903791/152968830-dd08737b-55c6-4ac6-9610-31121ea0e8c6.png" width="300px"></a> |
| 94 | </p> |
| 95 | |
| 96 | # Compilation and installation |
| 97 | **Note that for all of these platforms, if you want to play _Quake 3: Arena_ or |
| 98 | the expansion pack, _Team Arena_, you'll still need to buy a copy of the game.** |
| 99 | The _Quake 3_ game source code is freely available under the GPLv2, not the game data. |
| 100 | |
| 101 | You can get links to buy and support the project here: https://ioquake3.org/buy/ |
| 102 | |
| 103 | |
| 104 | You can make your own mod that either requires the original game data or a new game |
| 105 | that does not. Please read the **Creating standalone games** section for more information |
| 106 | on the latter. |
| 107 | |
| 108 | For *nix, |
| 109 | 1. `git clone git://github.com/ioquake/ioq3.git` |
| 110 | 2. `cd ioq3` |
| 111 | 3. Install dependencies according to your operating system's instructions. |
| 112 | for apt-based systems, `sudo apt install cmake libsdl2-dev` |
| 113 | 4. `cmake -S . -B build -DCMAKE_BUILD_TYPE=Release` |
| 114 | 5. `cmake --build build` |
| 115 | 6. The resulting files will be in the `build` directory. |
| 116 | |
| 117 | For Windows, |
| 118 | 1. Install Visual Studio Community Edition from Microsoft. |
| 119 | https://visualstudio.microsoft.com/vs/community/ |
| 120 | 2. Install CMake https://cmake.org/cmake/download |
| 121 | 3. Clone our git repository either using the command-line or a GUI tool: |
| 122 | `git clone git://github.com/ioquake/ioq3.git` |
| 123 | 4. Compile using Visual Studio by selecting our CMakeLists.txt and clicking Build. |
| 124 | 5. Or using the command-line: `cmake -S . -B build -G "Visual Studio 17 2022"` |
| 125 | 6. `cmake --build build --config Release` |
| 126 | |
| 127 | For macOS, |
| 128 | 1. Install XCode. |
| 129 | 2. Install CMake via homebrew https://brew.sh or your package manager of choice. |
| 130 | 3. `git clone git://github.com/ioquake/ioq3.git` |
| 131 | 4. `cd ioq3` |
| 132 | 5. `cmake -S . -B build -DCMAKE_BUILD_TYPE=Release` |
| 133 | 6. `cmake --build build` |
| 134 | 7. Copy the resulting `ioquake3.app` in `/build/` |
| 135 | to your `/Applications/ioquake3` folder. |
| 136 | |
| 137 | For Emscripten, |
| 138 | 1. Follow the installation instructions for the Emscripten SDK including |
| 139 | setting up the environment with emsdk_env. https://emscripten.org/ |
| 140 | 2. `git clone git://github.com/ioquake/ioq3.git` |
| 141 | 3. `cd ioq3` |
| 142 | 4. `emcmake cmake -S . -B build -DCMAKE_BUILD_TYPE=Release` |
| 143 | 5. `cmake --build build` |
| 144 | 3. Copy or symlink your baseq3 pk3 files into the `build/Release/baseq3` |
| 145 | directory so they can be loaded at run-time. Only game files listed in |
| 146 | `client-config.json` will be loaded. |
| 147 | 4. Start a web server serving this directory. `python3 -m http.server` |
| 148 | is an easy default that you may already have installed. |
| 149 | 5. Open `http://localhost:8000/build/Release/ioquake3.html` |
| 150 | in a web browser. Open the developer console to see errors and warnings. |
| 151 | 6. Debugging the C code is possible using a Chrome extension. For details |
| 152 | see https://developer.chrome.com/blog/wasm-debugging-2020 |
| 153 | |
| 154 | Installation, for *nix |
| 155 | 1. Set the CMAKE_INSTALL_PREFIX to your prefered installation directory. |
| 156 | By default it will be set to /opt/quake3/. |
| 157 | 2. `cmake --install build`. |
| 158 | |
| 159 | The following CMake variables may be set, using `-D` on the command line. |
| 160 | |
| 161 | ``` |
| 162 | BUILD_SERVER - build the 'ioq3ded' server binary |
| 163 | BUILD_CLIENT - build the 'ioquake3' client binary |
| 164 | BUILD_RENDERER_OPENGL1 - build the opengl1 client / renderer library |
| 165 | BUILD_RENDERER_OPENGL2 - build the opengl2 client / renderer library |
| 166 | BUILD_GAME_LIBRARIES - build the game shared libraries |
| 167 | BUILD_GAME_QVMS - build the game qvms |
| 168 | BUILD_STANDALONE - build binaries suited for stand-alone games |
| 169 | |
| 170 | USE_RENDERER_DLOPEN - build and use the renderer in a library |
| 171 | USE_OPENAL - use OpenAL where available |
| 172 | USE_OPENAL_DLOPEN - link with OpenAL at runtime |
| 173 | USE_HTTP - enable http download support |
| 174 | USE_CODEC_VORBIS - enable Ogg Vorbis support |
| 175 | USE_CODEC_OPUS - enable Ogg Opus support |
| 176 | USE_MUMBLE - enable Mumble support |
| 177 | USE_VOIP - enable built-in VoIP support |
| 178 | USE_FREETYPE - enable FreeType support for rendering fonts |
| 179 | |
| 180 | USE_INTERNAL_LIBS - build internal libraries instead of dynamically |
| 181 | linking against system libraries; this just sets |
| 182 | the default for USE_INTERNAL_ZLIB etc. |
| 183 | USE_INTERNAL_SDL - link against internal SDL (if available) |
| 184 | USE_INTERNAL_ZLIB - build and link against internal zlib |
| 185 | USE_INTERNAL_JPEG - build and link against internal JPEG library |
| 186 | USE_INTERNAL_OGG - build and link against internal ogg library |
| 187 | USE_INTERNAL_VORBIS - build and link against internal Vorbis library |
| 188 | USE_INTERNAL_OPUS - build and link against internal opus/opusfile libraries |
| 189 | |
| 190 | EMSCRIPTEN_PRELOAD_FILE - set to 1 to package 'baseq3' (BASEGAME) directory |
| 191 | containing pk3s and loose files as a single |
| 192 | .data file that is loaded instead of listing |
| 193 | individual files in client-config.json |
| 194 | |
| 195 | CMAKE_BUILD_TYPE - on single config CMake, set to Debug or Release |
| 196 | ``` |
| 197 | |
| 198 | The defaults for these variables may differ depending on the target platform. |
| 199 | |
| 200 | |
| 201 | # OpenGL ES support |
| 202 | |
| 203 | The opengl2 renderer (the default) supports OpenGL ES 2+. Though there |
| 204 | are many missing features and the performance may not be sufficient for |
| 205 | embedded System-on-a-Chip and mobile platforms. |
| 206 | |
| 207 | The opengl1 renderer does not have OpenGL ES support. |
| 208 | |
| 209 | The opengl2 renderer will try both OpenGL and OpenGL ES APIs to find one that |
| 210 | works. The `r_preferOpenGLES` cvar controls which API to try first. |
| 211 | Set it to -1 for auto (default), 0 for OpenGL, and 1 for OpenGL ES. It should be |
| 212 | set using command line arguments: |
| 213 | |
| 214 | ioquake3 +set cl_renderer opengl2 +set r_preferOpenGLES 1 |
| 215 | |
| 216 | |
| 217 | # Filesystem |
| 218 | |
| 219 | Compared to the original release, user configuration and data files are stored |
| 220 | in more modern locations. If you want a different behaviour a specific path |
| 221 | can be provided by adding `+set fs_homepath <path>` to the command line. |
| 222 | |
| 223 | ### Windows |
| 224 | |
| 225 | `C:\Users\<username>\AppData\Roaming\Quake3` |
| 226 | |
| 227 | ### macOS |
| 228 | |
| 229 | `/Users/<username>/Library/Application Support/Quake3` |
| 230 | |
| 231 | ### Linux |
| 232 | |
| 233 | `/home/<username>/.config/Quake3` Configuration files. |
| 234 | `/home/<username>/.local/share/Quake3` Data files (pk3s etc.). |
| 235 | `/home/<username>/.local/state/Quake3` Other internal runtime files. |
| 236 | |
| 237 | These directories correspond to the Free Desktop XDG Base Directory |
| 238 | Specification. The original release used `/home/.q3a`. This will be used if |
| 239 | present, however in this case a prompt will be shown suggesting migration to |
| 240 | the above locations, if desired. |
| 241 | |
| 242 | # Console |
| 243 | |
| 244 | ## New cvars |
| 245 | |
| 246 | ``` |
| 247 | cl_autoRecordDemo - record a new demo on each map change |
| 248 | cl_aviFrameRate - the framerate to use when capturing video |
| 249 | cl_aviMotionJpeg - use the mjpeg codec when capturing video |
| 250 | cl_guidServerUniq - makes cl_guid unique for each server |
| 251 | cl_cURLLib - filename of cURL library to load (non-Windows) |
| 252 | cl_consoleKeys - space delimited list of key names or |
| 253 | characters that toggle the console |
| 254 | cl_mouseAccelStyle - Set to 1 for QuakeLive mouse acceleration |
| 255 | behaviour, 0 for standard q3 |
| 256 | cl_mouseAccelOffset - Tuning the acceleration curve, see below |
| 257 | |
| 258 | con_autochat - Set to 0 to disable sending console input |
| 259 | text as chat when there is not a slash |
| 260 | at the beginning |
| 261 | con_autoclear - Set to 0 to disable clearing console |
| 262 | input text when console is closed |
| 263 | con_scale - Scales console text to make it legible at |
| 264 | high resolutions. Defaults to 1. Maximum |
| 265 | is 4. Accepts fractional values (1.5). |
| 266 | con_notifylines - The number of lines to display in the |
| 267 | notify area |
| 268 | |
| 269 | in_joystickUseAnalog - Do not translate joystick axis events |
| 270 | to keyboard commands |
| 271 | |
| 272 | j_forward - Joystick analogue to m_forward, |
| 273 | for forward movement speed/direction. |
| 274 | j_side - Joystick analogue to m_side, |
| 275 | for side movement speed/direction. |
| 276 | j_up - Joystick up movement speed/direction. |
| 277 | j_pitch - Joystick analogue to m_pitch, |
| 278 | for pitch rotation speed/direction. |
| 279 | j_yaw - Joystick analogue to m_yaw, |
| 280 | for yaw rotation speed/direction. |
| 281 | j_forward_axis - Selects which joystick axis |
| 282 | controls forward/back. |
| 283 | j_side_axis - Selects which joystick axis |
| 284 | controls left/right. |
| 285 | j_up_axis - Selects which joystick axis |
| 286 | controls up/down. |
| 287 | j_pitch_axis - Selects which joystick axis |
| 288 | controls pitch. |
| 289 | j_yaw_axis - Selects which joystick axis |
| 290 | controls yaw. |
| 291 | |
| 292 | s_useOpenAL - use the OpenAL sound backend if available |
| 293 | s_alPrecache - cache OpenAL sounds before use |
| 294 | s_alGain - the value of AL_GAIN for each source |
| 295 | s_alSources - the total number of sources (memory) to |
| 296 | allocate |
| 297 | s_alDopplerFactor - the value passed to alDopplerFactor |
| 298 | s_alDopplerSpeed - the value passed to alDopplerVelocity |
| 299 | s_alMinDistance - the value of AL_REFERENCE_DISTANCE for |
| 300 | each source |
| 301 | s_alMaxDistance - the maximum distance before sounds start |
| 302 | to become inaudible. |
| 303 | s_alRolloff - the value of AL_ROLLOFF_FACTOR for each |
| 304 | source |
| 305 | s_alGraceDistance - after having passed MaxDistance, length |
| 306 | until sounds are completely inaudible |
| 307 | s_alDriver - which OpenAL library to use |
| 308 | s_alDevice - which OpenAL device to use |
| 309 | s_alAvailableDevices - list of available OpenAL devices |
| 310 | s_alInputDevice - which OpenAL input device to use |
| 311 | s_alAvailableInputDevices - list of available OpenAL input devices |
| 312 | s_sdlBits - SDL bit resolution |
| 313 | s_sdlSpeed - SDL sample rate |
| 314 | s_sdlChannels - SDL number of channels |
| 315 | s_sdlDevSamps - SDL DMA buffer size override |
| 316 | s_sdlMixSamps - SDL mix buffer size override |
| 317 | s_backend - read only, indicates the current sound |
| 318 | backend |
| 319 | s_muteWhenMinimized - mute sound when minimized |
| 320 | s_muteWhenUnfocused - mute sound when window is unfocused |
| 321 | sv_dlRate - bandwidth allotted to PK3 file downloads |
| 322 | via UDP, in kbyte/s |
| 323 | |
| 324 | com_ansiColor - enable use of ANSI escape codes in the tty |
| 325 | com_altivec - enable use of altivec on PowerPC systems |
| 326 | com_standalone (read only) - If set to 1, quake3 is running in |
| 327 | standalone mode |
| 328 | com_basegame - Use a different base than baseq3. If no |
| 329 | original Quake3 or TeamArena pak files |
| 330 | are found, this will enable running in |
| 331 | standalone mode |
| 332 | com_homepath - Specify name that is to be appended to the |
| 333 | home path |
| 334 | com_legacyprotocol - Specify protocol version number for |
| 335 | legacy Quake3 1.32c protocol, see |
| 336 | "Network protocols" section below |
| 337 | (startup only) |
| 338 | com_maxfpsUnfocused - Maximum frames per second when unfocused |
| 339 | com_maxfpsMinimized - Maximum frames per second when minimized |
| 340 | com_busyWait - Will use a busy loop to wait for rendering |
| 341 | next frame when set to non-zero value |
| 342 | com_pipefile - Specify filename to create a named pipe |
| 343 | through which other processes can control |
| 344 | the server while it is running. |
| 345 | Nonfunctional on Windows. |
| 346 | com_gamename - Gamename sent to master server in |
| 347 | getservers[Ext] query and infoResponse |
| 348 | "gamename" infostring value. Also used |
| 349 | for filtering local network games. |
| 350 | com_protocol - Specify protocol version number for |
| 351 | current ioquake3 protocol, see |
| 352 | "Network protocols" section below |
| 353 | (startup only) |
| 354 | |
| 355 | in_joystickNo - select which joystick to use |
| 356 | in_availableJoysticks - list of available Joysticks |
| 357 | in_keyboardDebug - print keyboard debug info |
| 358 | |
| 359 | sv_dlURL - the base of the HTTP or FTP site that |
| 360 | holds custom pk3 files for your server |
| 361 | sv_banFile - Name of the file that is used for storing |
| 362 | the server bans |
| 363 | |
| 364 | net_ip6 - IPv6 address to bind to |
| 365 | net_port6 - port to bind to using the ipv6 address |
| 366 | net_enabled - enable networking, bitmask. Add up |
| 367 | number for option to enable it: |
| 368 | enable ipv4 networking: 1 |
| 369 | enable ipv6 networking: 2 |
| 370 | prioritise ipv6 over ipv4: 4 |
| 371 | disable multicast support: 8 |
| 372 | net_mcast6addr - multicast address to use for scanning for |
| 373 | ipv6 servers on the local network |
| 374 | net_mcastiface - outgoing interface to use for scan |
| 375 | |
| 376 | r_allowResize - make window resizable |
| 377 | r_ext_texture_filter_anisotropic - anisotropic texture filtering |
| 378 | r_zProj - distance of observer camera to projection |
| 379 | plane in quake3 standard units |
| 380 | r_greyscale - desaturate textures, useful for anaglyph, |
| 381 | supports values in the range of 0 to 1 |
| 382 | r_stereoEnabled - enable stereo rendering for techniques |
| 383 | like shutter glasses (untested) |
| 384 | r_anaglyphMode - Enable rendering of anaglyph images |
| 385 | red-cyan glasses: 1 |
| 386 | red-blue: 2 |
| 387 | red-green: 3 |
| 388 | green-magenta: 4 |
| 389 | To swap the colors for left and right eye |
| 390 | just add 4 to the value for the wanted |
| 391 | color combination. For red-blue and |
| 392 | red-green you probably want to enable |
| 393 | r_greyscale |
| 394 | r_stereoSeparation - Control eye separation. Resulting |
| 395 | separation is r_zProj divided by this |
| 396 | value in quake3 standard units. |
| 397 | See also |
| 398 | http://wiki.ioquake3.org/Stereo_Rendering |
| 399 | for more information |
| 400 | r_marksOnTriangleMeshes - Support impact marks on md3 models, MOD |
| 401 | developers should increase the mark |
| 402 | triangle limits in cg_marks.c if they |
| 403 | intend to use this. |
| 404 | r_sdlDriver - read only, indicates the SDL driver |
| 405 | backend being used |
| 406 | r_noborder - Remove window decoration from window |
| 407 | managers, like borders and titlebar. |
| 408 | r_screenshotJpegQuality - Controls quality of jpeg screenshots |
| 409 | captured using screenshotJPEG |
| 410 | r_aviMotionJpegQuality - Controls quality of video capture when |
| 411 | cl_aviMotionJpeg is enabled |
| 412 | r_mode -2 - This new video mode automatically uses the |
| 413 | desktop resolution. |
| 414 | ``` |
| 415 | |
| 416 | ## New commands |
| 417 | |
| 418 | ``` |
| 419 | video [filename] - start video capture (use with demo command) |
| 420 | stopvideo - stop video capture |
| 421 | stopmusic - stop background music |
| 422 | minimize - Minimize the game and show desktop |
| 423 | togglemenu - causes escape key event for opening/closing menu, or |
| 424 | going to a previous menu. works in binds, even in UI |
| 425 | |
| 426 | print - print out the contents of a cvar |
| 427 | unset - unset a user created cvar |
| 428 | |
| 429 | banaddr <range> - ban an ip address range from joining a game on this |
| 430 | server, valid <range> is either playernum or CIDR |
| 431 | notation address range. |
| 432 | exceptaddr <range> - exempt an ip address range from a ban. |
| 433 | bandel <range> - delete ban (either range or ban number) |
| 434 | exceptdel <range> - delete exception (either range or exception number) |
| 435 | listbans - list all currently active bans and exceptions |
| 436 | rehashbans - reload the banlist from serverbans.dat |
| 437 | flushbans - delete all bans |
| 438 | |
| 439 | net_restart - restart network subsystem to change latched settings |
| 440 | game_restart <fs_game> - Switch to another mod |
| 441 | |
| 442 | which <filename/path> - print out the path on disk to a loaded item |
| 443 | |
| 444 | execq <filename> - quiet exec command, doesn't print "execing file.cfg" |
| 445 | |
| 446 | kicknum <client number> - kick a client by number, same as clientkick command |
| 447 | kickall - kick all clients, similar to "kick all" (but kicks |
| 448 | everyone even if someone is named "all") |
| 449 | kickbots - kick all bots, similar to "kick allbots" (but kicks |
| 450 | all bots even if someone is named "allbots") |
| 451 | |
| 452 | tell <client num> <msg> - send message to a single client (new to server) |
| 453 | |
| 454 | cvar_modified [filter] - list modified cvars, can filter results (such as "r*" |
| 455 | for renderer cvars) like cvarlist which lists all cvars |
| 456 | |
| 457 | addbot random - the bot name "random" now selects a random bot |
| 458 | ``` |
| 459 | |
| 460 | |
| 461 | # README for Developers |
| 462 | |
| 463 | ## pk3dir |
| 464 | |
| 465 | _ioquake3_ has a useful new feature for mappers. Paths in a game directory with |
| 466 | the extension ".pk3dir" are treated like pk3 files. This means you can keep |
| 467 | all files specific to your map in one directory tree and easily zip this |
| 468 | folder for distribution. |
| 469 | |
| 470 | ## 64bit mods |
| 471 | |
| 472 | If you wish to compile external mods as shared libraries on a 64bit platform, |
| 473 | and the mod source is derived from the id Q3 SDK, you will need to modify the |
| 474 | interface code a little. Open the files ending in _syscalls.c and change |
| 475 | every instance of int to intptr_t in the declaration of the syscall function |
| 476 | pointer and the dllEntry function. Also find the vmMain function for each |
| 477 | module (usually in cg_main.c g_main.c etc.) and similarly replace the return |
| 478 | value in the prototype with intptr_t (arg0, arg1, ...stay int). |
| 479 | |
| 480 | Add the following code snippet to q_shared.h: |
| 481 | |
| 482 | ```c |
| 483 | #ifdef Q3_VM |
| 484 | typedef int intptr_t; |
| 485 | #else |
| 486 | #include <stdint.h> |
| 487 | #endif |
| 488 | ``` |
| 489 | |
| 490 | Note if you simply wish to run mods on a 64bit platform you do not need to |
| 491 | recompile anything since by default Q3 uses a virtual machine system. |
| 492 | |
| 493 | ## Creating mods compatible with Q3 1.32b |
| 494 | |
| 495 | If you're using this package to create mods for the last official release of |
| 496 | Q3, it is necessary to pass the commandline option '-vq3' to your invocation |
| 497 | of q3asm. This is because by default q3asm outputs an updated qvm format that |
| 498 | is necessary to fix a bug involving the optimizing pass of the x86 vm JIT |
| 499 | compiler. |
| 500 | |
| 501 | ## Creating standalone games |
| 502 | |
| 503 | Have you finished the daunting task of removing all dependencies on the Q3 |
| 504 | game data? You probably now want to give your users the opportunity to play |
| 505 | the game without owning a copy of Q3, which consequently means removing cd-key |
| 506 | and authentication server checks. In addition to being a straightforward Q3 |
| 507 | client, _ioquake3_ also purports to be a reliable and stable code base on which |
| 508 | to base your game project. |
| 509 | |
| 510 | However, before you start compiling your own version of _ioquake3_, you have to |
| 511 | ask yourself: Have we changed or will we need to change anything of importance |
| 512 | in the engine? |
| 513 | |
| 514 | If your answer to this question is "no", it probably makes no sense to build |
| 515 | your own binaries. Instead, you can just use the pre-built binaries on the |
| 516 | website. Just make sure the game is called with: |
| 517 | |
| 518 | +set com_basegame <yournewbase> |
| 519 | |
| 520 | in any links/scripts you install for your users to start the game. The |
| 521 | binary must not detect any original quake3 game pak files. If this |
| 522 | condition is met, the game will set com_standalone to 1 and is then running |
| 523 | in stand alone mode. |
| 524 | |
| 525 | If you want the engine to use a different directory in your homepaths than |
| 526 | "Quake3" then set a new name at startup by adding |
| 527 | |
| 528 | +set com_homepath <homedirname> |
| 529 | |
| 530 | to the command line. You can also control which game name to use when talking |
| 531 | to the master server: |
| 532 | |
| 533 | +set com_gamename <gamename> |
| 534 | |
| 535 | So clients requesting a server list will only receive servers that have a |
| 536 | matching game name. |
| 537 | |
| 538 | Example line: |
| 539 | |
| 540 | +set com_basegame basefoo +set com_homepath foo |
| 541 | +set com_gamename foo |
| 542 | |
| 543 | If you really changed parts that would make vanilla ioquake3 incompatible with |
| 544 | your mod, we have included another way to conveniently build a stand-alone |
| 545 | binary. Edit /cmake/identity.cmake and run cmake with the option BUILD_STANDALONE=1. |
| 546 | Don't forget to edit the PRODUCT_NAME and subsequent #defines in qcommon/q_shared.h with |
| 547 | information appropriate for your project. |
| 548 | |
| 549 | ## Standalone game licensing |
| 550 | |
| 551 | While a lot of work has been put into _ioquake3_ that you can benefit from free |
| 552 | of charge, it does not mean that you have no obligations to fulfill. Please be |
| 553 | aware that as soon as you start distributing your game with an engine based on |
| 554 | our sources we expect you to fully comply with the requirements as stated in |
| 555 | the GPL. That includes making sources and modifications you made to the |
| 556 | ioquake3 engine as well as the game-code used to compile the .qvm files for |
| 557 | the game logic freely available to everyone. Furthermore, note that the "QIIIA |
| 558 | Game Source License" prohibits distribution of mods that are intended to |
| 559 | operate on a version of Q3 not sanctioned by id software: |
| 560 | |
| 561 | "with this Agreement, ID grants to you the non-exclusive and limited right |
| 562 | to distribute copies of the Software ... for operation only with the full |
| 563 | version of the software game QUAKE III ARENA" |
| 564 | |
| 565 | This means that if you're creating a standalone game, you cannot use said |
| 566 | license on any portion of the product. As the only other license this code has |
| 567 | been released under is the GPL, this is the only option. |
| 568 | |
| 569 | This does NOT mean that you cannot market this game commercially. The GPL does |
| 570 | not prohibit commercial exploitation and all assets (e.g. textures, sounds, |
| 571 | maps) created by yourself are your property and can be sold like every other |
| 572 | game you find in stores. |
| 573 | |
| 574 | |
| 575 | ## PNG support |
| 576 | |
| 577 | ioquake3 supports the use of PNG (Portable Network Graphic) images as |
| 578 | textures. It should be noted that the use of such images in a map will |
| 579 | result in missing placeholder textures where the map is used with the id |
| 580 | Quake 3 client or earlier versions of ioquake3. |
| 581 | |
| 582 | Recent versions of GtkRadiant and q3map2 support PNG images without |
| 583 | modification. However GtkRadiant is not aware that PNG textures are supported |
| 584 | by ioquake3. To change this behaviour open the file 'q3.game' in the 'games' |
| 585 | directory of the GtkRadiant base directory with an editor and change the |
| 586 | line: |
| 587 | |
| 588 | texturetypes="tga jpg" |
| 589 | |
| 590 | to |
| 591 | |
| 592 | texturetypes="tga jpg png" |
| 593 | |
| 594 | Restart GtkRadiant and PNG textures are now available. |
| 595 | |
| 596 | ## Building with MinGW for pre Windows XP |
| 597 | |
| 598 | IPv6 support requires a header named "wspiapi.h" to abstract away from |
| 599 | differences in earlier versions of Windows' IPv6 stack. There is no MinGW |
| 600 | equivalent of this header and the Microsoft version is obviously not |
| 601 | redistributable, so in its absence we're forced to require Windows XP. |
| 602 | However if this header is acquired separately and placed in the qcommon/ |
| 603 | directory, this restriction is lifted. |
| 604 | |
| 605 | |
| 606 | # Contributing |
| 607 | |
| 608 | Please submit patches through GitHub pull requests. |
| 609 | |
| 610 | The focus for ioq3 is to develop a stable base suitable for further development |
| 611 | and provide players with the same Quake 3 experience they've had for years. |
| 612 | |
| 613 | We do have graphical improvements with the new renderer, but they are off by default. |
| 614 | See opengl2-readme.md for more information. |
| 615 | |
| 616 | # Credits |
| 617 | |
| 618 | Maintainers |
| 619 | |
| 620 | * Tim Angus <[email protected]> |
| 621 | * Jack "Mr. Nuclear Monster" Slater <[email protected]> |
| 622 | |
| 623 | Former Maintainers |
| 624 | |
| 625 | * James Canete <[email protected]> |
| 626 | * Ludwig Nussel <[email protected]> |
| 627 | * Thilo Schulz <[email protected]> |
| 628 | * Tony J. White <[email protected]> |
| 629 | * Zack Middleton <[email protected]> |
| 630 | |
| 631 | Significant contributions from |
| 632 | |
| 633 | * Ryan C. Gordon <[email protected]> |
| 634 | * Andreas Kohn <[email protected]> |
| 635 | * Joerg Dietrich <[email protected]> |
| 636 | * Stuart Dalton <[email protected]> |
| 637 | * Vincent S. Cojot <vincent at cojot dot name> |
| 638 | * optical <[email protected]> |
| 639 | * Aaron Gyes <[email protected]> |
| 640 | * surrealchemist |
| 641 | |
| 642 |