Debian Codegraph @

text/README

raw
1 ,---------------------------------------.
2 | _ _ ____ |
3 | (_)___ __ _ _ _ __ _| |_____|__ / |
4 | | / _ \/ _` | || / _` | / / -_)|_ \ |
5 | |_\___/\__, |\_,_\__,_|_\_\___|___/ |
6 | |_| |
7 | |
8 `---------- http://ioquake3.org --------'
9
10 The intent of this project is to provide a baseline Quake 3 which may be used
11 for further development. Some of the major features currently implemented are:
12
13 * SDL backend for unix-like operating systems
14 * OpenAL sound API support (multiple speaker support and better sound
15 quality)
16 * Full x86_64 support on Linux
17 * MinGW compilation support on Windows and cross compilation support on Linux
18 * AVI video capture of demos
19 * Much improved console autocompletion
20 * Persistent console history
21 * Colorized terminal output
22 * Optional Ogg Vorbis support
23 * Much improved QVM tools
24 * Support for various esoteric operating systems (see
25 http://ioquake3.org/?page=status)
26 * cl_guid support
27 * HTTP/FTP download redirection (using cURL)
28 * Multiuser support on Windows systems (user specific game data
29 is stored in "%APPDATA%\Quake3")
30 * Many, many bug fixes
31
32 The map editor and associated compiling tools are not included. We suggest you
33 use a modern copy from http://www.qeradiant.com/.
34
35 The original id software readme that accompanied the Q3 source release has been
36 renamed to id-readme.txt so as to prevent confusion. Please refer to the
37 web-site for updated status.
38
39
40 --------------------------------------------- Compilation and installation -----
41
42 For *nix
43 1. Change to the directory containing this readme.
44 2. Run 'make'.
45
46 For Windows, using MinGW
47 1. Download and install MinGW and MSys from http://www.mingw.org/.
48 2. Download http://www.libsdl.org/extras/win32/common/directx-devel.tar.gz
49 and untar it into your MinGW directory (usually C:\MinGW).
50 3. Open an MSys terminal, and follow the instructions for compiling on *nix.
51
52 For Windows, using MSVC
53 1. Run Visual Studio and open the quake3.sln file in the code/win32/msvc
54 directory.
55 2. Build.
56 3. Copy the resultant Quake3.exe to your quake 3 directory, make a backup if
57 you want to keep your original. If you wish to use native libraries, copy
58 the resultant dlls to your baseq3 directory.
59
60 For Mac OS X, building a Universal Binary
61 1. Install the MacOSX10.2.8.sdk and MacOSX10.4u.sdk which are included in
62 XCode 2.2 and newer.
63 2. Change to the directory containing this README file.
64 3. Run './make-macosx-ub.sh'
65 4. Copy the resulting ioquake3.app in /build/release-darwin-ub to your
66 /Applications/ioquake3 folder.
67
68 Installation, for *nix
69 1. Set the COPYDIR variable in the shell to be where you installed Quake 3
70 to. By default it will be /usr/local/games/quake3 if you haven't set it.
71 This is the path as used by the original Linux Q3 installer and subsequent
72 point releases.
73 2. Run 'make copyfiles'.
74
75 It is also possible to cross compile for Windows under *nix using MinGW. A
76 script is available to build a cross compilation environment from
77 http://www.libsdl.org/extras/win32/cross/build-cross.sh. The gcc/binutils
78 version numbers that the script downloads may need to be altered. After you
79 have successfully run this script cross compiling is simply a case of using
80 './cross-make-mingw.sh' in place of 'make'.
81
82 If the make based build system is being used (i.e. *nix or MinGW), the
83 following variables may be set, either on the command line or in
84 Makefile.local:
85
86 OPTIMIZE - use this for custom CFLAGS
87 DEFAULT_BASEDIR - extra path to search for baseq3 and such
88 BUILD_SERVER - build the 'ioq3ded' server binary
89 BUILD_CLIENT - build the 'ioquake3' client binary
90 BUILD_CLIENT_SMP - build the 'ioquake3-smp' client binary
91 BUILD_GAME_SO - build the game shared libraries
92 BUILD_GAME_QVM - build the game qvms
93 USE_SDL - use the SDL backend where available
94 USE_OPENAL - use OpenAL where available
95 USE_OPENAL_DLOPEN - link with OpenAL at runtime
96 USE_CURL - use libcurl for http/ftp download support
97 USE_CURL_DLOPEN - link with libcurl at runtime
98 USE_CODEC_VORBIS - enable Ogg Vorbis support
99 USE_LOCAL_HEADERS - use headers local to ioq3 instead of system ones
100 USE_CCACHE - use ccache compiler caching tool
101 COPYDIR - the target installation directory
102
103 The defaults for these variables differ depending on the target platform.
104
105
106 ------------------------------------------------------------------ Console -----
107
108 New cvars
109 cl_autoRecordDemo - record a new demo on each map change
110 cl_aviFrameRate - the framerate to use when capturing video
111 cl_aviMotionJpeg - use the mjpeg codec when capturing video
112
113 s_useOpenAL - use the OpenAL sound backend if available
114 s_alPrecache - cache OpenAL sounds before use
115 s_alGain - the value of AL_GAIN for each source
116 s_alSources - the total number of sources (memory) to
117 allocate
118 s_alDopplerFactor - the value passed to alDopplerFactor
119 s_alDopplerSpeed - the value passed to alDopplerVelocity
120 s_alMinDistance - the value of AL_REFERENCE_DISTANCE for
121 each source
122 s_alMaxDistance - the maximum distance before sounds start
123 to become inaudible.
124 s_alRolloff - the value of AL_ROLLOFF_FACTOR for each
125 source
126 s_alGraceDistance - after having passed MaxDistance, length
127 until sounds are completely inaudible.
128 s_alDriver - which OpenAL library to use
129 s_alDevice - which OpenAL device to use
130 s_alAvailableDevices - list of available OpenAL devices
131
132 s_sdlBits - SDL bit resolution
133 s_sdlSpeed - SDL sample rate
134 s_sdlChannels - SDL number of channels
135 s_sdlDevSamps - SDL DMA buffer size override
136 s_sdlMixSamps - SDL mix buffer size override
137
138 ttycon_ansicolor - enable use of ANSI escape codes in the tty
139 r_GLlibCoolDownMsec - wait for some milliseconds to close GL
140 library
141 com_altivec - enable use of altivec on PowerPC systems
142 s_backend - read only, indicates the current sound
143 backend
144 in_shiftedKeys - non-SDL Linux only; enables binding to
145 shifted keys
146 in_joystickNo - SDL only; select which joystick to use
147 cl_consoleHistory - read only, stores the console history
148 cl_platformSensitivity - read only, indicates the mouse input
149 scaling
150 r_ext_texture_filter_anisotropic - anisotropic texture filtering
151 cl_guidServerUniq - makes cl_guid unique for each server
152 cl_cURLLib - filename of cURL library to load
153 sv_dlURL - the base of the HTTP or FTP site that
154 holds custom pk3 files for your server
155
156 New commands
157 video [filename] - start video capture (use with demo command)
158 stopvideo - stop video capture
159
160
161 ------------------------------------------------------------ Miscellaneous -----
162
163 Using shared libraries instead of qvm
164 To force Q3 to use shared libraries instead of qvms run it with the following
165 parameters: +set sv_pure 0 +set vm_cgame 0 +set vm_game 0 +set vm_ui 0
166
167 Using Demo Data Files
168 Copy demoq3/pak0.pk3 from the demo installer to your baseq3 directory. The
169 qvm files in this pak0.pk3 will not work, so you have to use the native
170 shared libraries or qvms from this project. To use the new qvms, they must be
171 put into a pk3 file. A pk3 file is just a zip file, so any compression tool
172 that can create such files will work. The shared libraries should already be
173 in the correct place. Use the instructions above to use them.
174
175 Please bear in mind that you will not be able to play online using the demo
176 data, nor is it something that we like to spend much time maintaining or
177 supporting.
178
179 64bit mods
180 If you wish to compile external mods as shared libraries on a 64bit platform,
181 and the mod source is derived from the id Q3 SDK, you will need to modify the
182 interface code a little. Open the files ending in _syscalls.c and change
183 every instance of int to intptr_t in the declaration of the syscall function
184 pointer and the dllEntry function. Also find the vmMain function for each
185 module (usually in cg_main.c g_main.c etc.) and similarly replace the return
186 value in the prototype with intptr_t (arg0, arg1, ...stay int).
187
188 Add the following code snippet to q_shared.h:
189
190 #ifdef Q3_VM
191 typedef int intptr_t;
192 #else
193 #include <stdint.h>
194 #endif
195
196 Note if you simply wish to run mods on a 64bit platform you do not need to
197 recompile anything since by default Q3 uses a virtual machine system.
198
199 Creating mods compatible with Q3 1.32b
200 If you're using this package to create mods for the last official release of
201 Q3, it is necessary to pass the commandline option '-vq3' to your invocation
202 of q3asm. This is because by default q3asm outputs an updated qvm format that
203 is necessary to fix a bug involving the optimizing pass of the x86 vm JIT
204 compiler. See http://www.quakesrc.org/forums/viewtopic.php?t=5665 (if it
205 still exists when you read this) for more details.
206
207 cl_guid Support
208 cl_guid is a cvar which is part of the client's USERINFO string. Its value
209 is a 32 character string made up of [a-f] and [0-9] characters. This
210 value is pseudo-unique for every player. Id's Quake 3 Arena client also
211 sets cl_guid, but only if Punkbuster is enabled on the client.
212
213 If cl_guidServerUniq is non-zero (the default), then this value is also
214 pseudo-unique for each server a client connects to (based on IP:PORT of
215 the server).
216
217 The purpose of cl_guid is to add an identifier for each player on
218 a server. This value can be reset by the client at any time so it's not
219 useful for blocking access. However, it can have at least two uses in
220 your mod's game code:
221 1) improve logging to allow statistical tools to index players by more
222 than just name
223 2) granting some weak admin rights to players without requiring passwords
224
225 Using HTTP/FTP Download Support (Server)
226 You can enable redirected downloads on your server even if it's not
227 an ioquake3 server. You simply need to use the 'sets' command to put
228 the sv_dlURL cvar into your SERVERINFO string and ensure sv_allowDownloads
229 is set to 1
230
231 sv_dlURL is the base of the URL that contains your custom .pk3 files
232 the client will append both fs_game and the filename to the end of
233 this value. For example, if you have sv_dlURL set to
234 "http://ioquake3.org", fs_game is "baseq3", and the client is
235 missing "test.pk3", it will attempt to download from the URL
236 "http://ioquake3.org/baseq3/test.pk3"
237
238 sv_allowDownload's value is now a bitmask made up of the following
239 flags:
240 1 - ENABLE
241 2 - do not use HTTP/FTP downloads
242 4 - do not use UDP downloads
243 8 - do not ask the client to disconnect when using HTTP/FTP
244
245 Server operators who are concerned about potential "leeching" from their
246 HTTP servers from other ioquake3 servers can make use of the HTTP_REFERER
247 that ioquake3 sets which is "ioQ3://{SERVER_IP}:{SERVER_PORT}". For,
248 example, Apache's mod_rewrite can restrict access based on HTTP_REFERER.
249
250 Using HTTP/FTP Download Support (Client)
251 Simply setting cl_allowDownload to 1 will enable HTTP/FTP downloads
252 assuming ioquake3 was compiled with USE_CURL=1 (the default).
253 like sv_allowDownload, cl_allowDownload also uses a bitmask value
254 supporting the following flags:
255 1 - ENABLE
256 2 - do not use HTTP/FTP downloads
257 4 - do not use UDP downloads
258
259 When ioquake3 is built with USE_CURL_DLOPEN=1 (default on some platforms),
260 it will use the value of the cvar cl_cURLLib as the filename of the cURL
261 library to dynamically load.
262
263 Multiuser Support on Windows systems
264 On Windows, all user specific files such as autogenerated configuration,
265 demos, videos, screenshots, and autodownloaded pk3s are now saved in a
266 directory specific to the user who is running ioquake3.
267
268 On NT-based such as Windows XP, this is usually a directory named:
269 "C:\Documents and Settings\%USERNAME%\Application Data\Quake3\"
270
271 Windows 95, Windows 98, and Windows ME will use a directory like:
272 "C:\Windows\Application Data\Quake3"
273 in single-user mode, or:
274 "C:\Windows\Profiles\%USERNAME%\Application Data\Quake3"
275 if multiple logins have been enabled.
276
277 In order to access this directory more easily, the installer may create a
278 Shortcut which has its target set to:
279 "%APPDATA%\Quake3\"
280 This Shortcut would work for all users on the system regardless of the
281 locale settings. Unfortunately, this environment variable is only
282 present on Windows NT based systems.
283
284 You can revert to the old single-user behaviour by setting the fs_homepath
285 cvar to the directory where ioquake3 is installed. For example:
286 ioquake3.exe +set fs_homepath "c:\ioquake3"
287 Note that this cvar MUST be set as a command line parameter.
288
289 SDL Keyboard Differences
290 ioquake3 clients built againt SDL (e.g. Linux and Mac OS X) have different
291 keyboard behaviour than the original Quake3 clients.
292
293 * "Caps Lock" and "Num Lock" can not be used as normal binds since they
294 do not send a KEYUP event until the key is pressed again.
295
296 * SDL > 1.2.9 does not support disabling "Dead Key" recognition.
297 In order to send "Dead Key" characters (e.g. ~, ', `, and ^), you
298 must key a Space (or sometimes the same character again) after the
299 character to send it on many international keyboard layouts.
300
301 * The SDL client supports many more keys than the original Quake3 client.
302 For example the keys: "Windows", "SysReq", "ScrollLock", and "Break".
303 For non-US keyboards, all of the so called "World" keys are now
304 supported as well as F13, F14, F15, and the country-specific
305 mode/meta keys.
306
307 SDL's "Dead Key" behaviour makes the hard-coded toggleConsole binds ~ and `
308 annoying to use on many non-US keyboards. In response, an additional
309 toggleConsole bind has been added on the key combination Shift-Esc.
310
311 ------------------------------------------------------------- Contributing -----
312
313 Please send all patches to bugzilla (https://bugzilla.icculus.org), or join the
314 mailing list ([email protected]) and submit your patch there. The
315 best case scenario is that you submit your patch to bugzilla, and then post the
316 URL to the mailing list. If you're too lazy for either method, then it would be
317 better if you emailed your patches to [email protected] directly than not at
318 all.
319
320 The focus for ioquake3 to develop a stable base suitable for further
321 development, and provide players with the same Quake 3 experience they've had
322 for years. As such ioq3 does not have any significant graphical enhancements
323 and none are planned at this time. However, improved graphics and sound
324 patches will be accepted as long as they are entirely optional, do not
325 require new media and are off by default.
326
327
328 --------------------------------------------- Building Official Installers -----
329
330 We need help getting automated installers on all the platforms that ioquake3
331 supports. We don't neccesarily care about all the installers being identical,
332 but we have some general guidelines:
333
334 * Please include the id patch pk3s in your installer, which are available
335 from http://ioquake3.org/?page=getdata subject to agreement to the id
336 EULA. Your installer shall also ask the user to agree to this EULA (which
337 is in the /web/include directory for your convenience) and subsequently
338 refuse to continue the installation of the patch pk3s and pak0.pk3 if they
339 do not.
340
341 * Please don't require pak0.pk3, since not everyone using the engine
342 plans on playing Quake 3 Arena on it. It's fine to (optionally) assist the
343 user in copying the file or tell them how.
344
345 * It is fine to just install the binaries without requiring id EULA agreement,
346 providing pak0.pk3 and the patch pk3s are not refered to or included in the
347 installer.
348
349 * Please include at least an SDL so/dylib on every platform but Windows
350 (which doesn't use it yet).
351
352 * Please include an OpenAL so/dylib/dll, since every platform should be using
353 it by now.
354
355 * We'll bump the version to 1.34 as soon as we get enough people who can
356 demonstrate a competent build for Windows and Mac.
357
358 * Please contact the mailing list and/or [email protected] after you've
359 made your installer.
360
361 * Please be prepared to alter your installer on the whim of the maintainers.
362
363 * Your installer will be mirrored to an "official" directory, thus making it
364 a done deal.
365
366 ------------------------------------------------------------------ Credits -----
367
368 Maintainers
369 Aaron Gyes <floam at sh dot nu>
370 Ludwig Nussel <[email protected]>
371 Thilo Schulz <[email protected]>
372 Tim Angus <[email protected]>
373 Tony J. White <[email protected]>
374 Zachary J. Slater <[email protected]>
375
376 Significant contributions from
377 Ryan C. Gordon <[email protected]>
378 Andreas Kohn <[email protected]>
379 Joerg Dietrich <[email protected]>
380 Stuart Dalton <[email protected]>
381 Vincent S. Cojot <vincent at cojot dot name>
382 optical <[email protected]>