| 1 |
.TH Q3MAP2 1 2025-08-05 |
| 2 |
|
| 3 |
.SH NAME |
| 4 |
q3map2 \- a quake BSP compiler |
| 5 |
|
| 6 |
.SH SYNOPSIS |
| 7 |
.BR "" q3map2 |
| 8 |
\fIstage\fR |
| 9 |
[common options] |
| 10 |
[stage options] |
| 11 |
\fIfile\fR |
| 12 |
|
| 13 |
.SH DESCRIPTION |
| 14 |
.B q3map2 |
| 15 |
is a BSP compiler for games based on the id Tech 3 engine. |
| 16 |
It compiles .map files, which are editable with an editor |
| 17 |
(like GtkRadiant or Netradiant), into .bsp files, |
| 18 |
which are binary files for the game and are not editable. |
| 19 |
.PP |
| 20 |
It currently supports the following games: |
| 21 |
.br |
| 22 |
* Nexuiz |
| 23 |
.br |
| 24 |
* OpenArena |
| 25 |
.br |
| 26 |
* Q3Rally |
| 27 |
.br |
| 28 |
* Quake 3 Arena/Team Arena |
| 29 |
.br |
| 30 |
* Quake Live |
| 31 |
.br |
| 32 |
* Reaction |
| 33 |
.br |
| 34 |
* Return to Castle Wolfenstien |
| 35 |
.br |
| 36 |
* Smokin' Guns |
| 37 |
.br |
| 38 |
* Soldier of Fortune II |
| 39 |
.br |
| 40 |
* Star Trek Elite Force |
| 41 |
.br |
| 42 |
* Star Wars Jedi Knight: Jedi Academy |
| 43 |
.br |
| 44 |
* Star Wars Jedi Knight II: Jedi Outcast |
| 45 |
.br |
| 46 |
* Tenebrae (Quake1 Engine Modification Project) |
| 47 |
.br |
| 48 |
* Tremulous |
| 49 |
.br |
| 50 |
* Unvanquished |
| 51 |
.br |
| 52 |
* Urban Terror |
| 53 |
.br |
| 54 |
* WarFork |
| 55 |
.br |
| 56 |
* War§ow |
| 57 |
.br |
| 58 |
* Wolfenstein: Enemy Territory |
| 59 |
.br |
| 60 |
* World of Padman |
| 61 |
.br |
| 62 |
* Xonotic |
| 63 |
|
| 64 |
.SH STAGE |
| 65 |
The \fIcommand\fR specifies the operation q3map will perform on the given file. |
| 66 |
Only one command can be specified. |
| 67 |
|
| 68 |
.TP |
| 69 |
\fB-bsp\fR |
| 70 |
Compiles a .map file into a .bsp (binary space partition) file for use |
| 71 |
with the Quake III Arena engine. It also writes a .prt (portal information) |
| 72 |
file and a .srf (surface) file. This is the default command: if no command |
| 73 |
is given, \fB-bcp\fR is assumed. |
| 74 |
This command requires \fIfile\fR to be a path to an uncompiled .map file. |
| 75 |
|
| 76 |
.TP |
| 77 |
\fB-vis\fR |
| 78 |
Creates visibility sets based on the portal file. This command requires |
| 79 |
\fIfile\fR to be a path to a .map file, which has been processed with |
| 80 |
the \fB-bcp\fR command. |
| 81 |
|
| 82 |
.TP |
| 83 |
\fB-light\fR |
| 84 |
Calculates lighting data. This command requires \fIfile\fR to be a path to an |
| 85 |
uncompiled .map file. If the \fB-light\fR command is used without additional |
| 86 |
options, less than desirable output will be achieved. |
| 87 |
|
| 88 |
.TP |
| 89 |
\fB-scale\fR <factor> |
| 90 |
Scales a compiled .bsp by the prescribed factor. For example a \fIfactor\fR |
| 91 |
of 0.25 will output a new .bsp that is 25% of the original .bsp's size, |
| 92 |
a \fIfactor\fR of 2.0 will output a new .bsp that is twice as large. |
| 93 |
The scaled output is written to the maps subdirectory of the game base directory. |
| 94 |
This command requires \fIfile\fR to be a path to a compiled .bsp file. |
| 95 |
|
| 96 |
.TP |
| 97 |
\fB-convert\fR |
| 98 |
Converts a compiled .bsp to another format. This command requires \fIfile\fR |
| 99 |
to be a path to a compiled .bsp file. |
| 100 |
|
| 101 |
.TP |
| 102 |
\fB-export\fR |
| 103 |
Exports internal lightmaps from a compiled .bsp to external .tga images. |
| 104 |
This command requires \fIfile\fR to be a path to a compiled .bsp file. |
| 105 |
|
| 106 |
.TP |
| 107 |
\fB-exportents\fR |
| 108 |
Exports internal entities from a compiled .bsp. |
| 109 |
This command requires \fIfile\fR to be a path to a compiled .bsp file. |
| 110 |
|
| 111 |
.TP |
| 112 |
\fB-fixaas\fR |
| 113 |
|
| 114 |
.TP |
| 115 |
\fB-info\fR |
| 116 |
Analyzes a compiled bsp and outputs information to the screen or log. |
| 117 |
This command requires \fIfile\fR to be a path to a compiled .bsp file. |
| 118 |
|
| 119 |
.TP |
| 120 |
\fB-import\fR |
| 121 |
Imports external .tga lightmaps back into a compiled .bsp. |
| 122 |
Imported lightmaps will only work on the unmodified BSP they were exported from. |
| 123 |
This command requires \fIfile\fR to be a path to a compiled .bsp file. |
| 124 |
|
| 125 |
.TP |
| 126 |
\fB-minimap\fR |
| 127 |
|
| 128 |
.SH COMMON OPTIONS |
| 129 |
.TP |
| 130 |
\fB-force\fR |
| 131 |
Allow reading some broken/unsupported BSP files e.g. when decompiling, |
| 132 |
may also crash |
| 133 |
.TP |
| 134 |
\fB-fs_basepath <path> |
| 135 |
Sets the given path as main directory of the game |
| 136 |
(can be used more than once to look in multiple paths) |
| 137 |
.TP |
| 138 |
\fB-fs_forbiddenpath <pattern> |
| 139 |
Pattern to ignore directories, pk3, and pk3dir; example pak?.pk3 |
| 140 |
(can be used more than once to look for multiple patterns) |
| 141 |
.TP |
| 142 |
\fB-fs_game <gamename> |
| 143 |
Sets a different game directory name |
| 144 |
(default for Q3A: baseq3, can be used more than once) |
| 145 |
.TP |
| 146 |
\fB-fs_home <dir> |
| 147 |
Specifies where the user home directory is on Linux |
| 148 |
.TP |
| 149 |
\fB-fs_homebase <dir> |
| 150 |
Specifies game home directory relative to user home directory on Linux |
| 151 |
(default for Q3A: .q3a) |
| 152 |
.TP |
| 153 |
\fB-fs_homepath <path> |
| 154 |
Sets the given path as the game home directory name (fs_home + fs_homebase) |
| 155 |
.TP |
| 156 |
\fB-fs_nobasepath |
| 157 |
Do not load base paths in VFS, imply -fs_nomagicpath |
| 158 |
.TP |
| 159 |
\fB-fs_nomagicpath |
| 160 |
Do not try to guess base path magically |
| 161 |
.TP |
| 162 |
\fB-fs_nohomepath |
| 163 |
Do not load home path in VFS |
| 164 |
.TP |
| 165 |
\fB-fs_pakpath <path> |
| 166 |
Specify a package directory (can be used more than once to look |
| 167 |
in multiple paths) |
| 168 |
.TP |
| 169 |
\fB-game\fR <gamename> |
| 170 |
Load settings for the given game (default: quake3). |
| 171 |
Options are: darkplaces, dq, ef, et, etut, ja, jk2, nexuiz, oa, prophecy, |
| 172 |
q3rally, qfusion, quake3, quakelive, reaction, smokinguns, sof2, tenebrae, |
| 173 |
tremulous, unvanquished, warfork, warsow, wolf, wop, xonotic |
| 174 |
.TP |
| 175 |
\fB-threads\fR <number> |
| 176 |
Number of threads used to compile the map. For the fastest compile times |
| 177 |
the number of threads is set to the number of system processors. |
| 178 |
.TP |
| 179 |
\fB-v |
| 180 |
Output verbose information. |
| 181 |
.TP |
| 182 |
\fB-werror |
| 183 |
Make all warnings into errors. |
| 184 |
|
| 185 |
.SH STAGE OPTIONS |
| 186 |
.PP |
| 187 |
There are too many options to list here. |
| 188 |
.PP |
| 189 |
Please run \fBq3map2 -help <stage>\fR to see all the available options |
| 190 |
for a specific \fIstage\fR |