| 1 |
@PACKAGE@(6) |
| 2 |
========= |
| 3 |
:doctype: manpage |
| 4 |
|
| 5 |
NAME |
| 6 |
---- |
| 7 |
@PACKAGE@ - do things with wad files |
| 8 |
|
| 9 |
SYNOPSIS |
| 10 |
-------- |
| 11 |
*@PACKAGE@* *-?*|*-h*|*-help*|*--help* |
| 12 |
|
| 13 |
*@PACKAGE@* *--version* |
| 14 |
|
| 15 |
*@PACKAGE@* ['OPTIONS'] *-add* 'incomplete.wad' 'out.wad' |
| 16 |
|
| 17 |
*@PACKAGE@* ['OPTIONS'] *-af* 'flats.wad' |
| 18 |
|
| 19 |
*@PACKAGE@* ['OPTIONS'] *-append* 'incomplete.wad' |
| 20 |
|
| 21 |
*@PACKAGE@* ['OPTIONS'] *-as* 'sprite.wad' |
| 22 |
|
| 23 |
*@PACKAGE@* ['OPTIONS'] *-check* 'in.wad' |
| 24 |
|
| 25 |
*@PACKAGE@* ['OPTIONS'] *-debug* ['in.gif'] |
| 26 |
|
| 27 |
*@PACKAGE@* ['OPTIONS'] *-get* 'entry' ['in.wad'] |
| 28 |
|
| 29 |
*@PACKAGE@* ['OPTIONS'] *-join* 'incomplete.wad' 'in.wad' |
| 30 |
|
| 31 |
*@PACKAGE@* ['OPTIONS'] *-make* ['dirctivs.txt'] 'out.wad' |
| 32 |
|
| 33 |
*@PACKAGE@* ['OPTIONS'] *-merge* 'in.wad' |
| 34 |
|
| 35 |
*@PACKAGE@* ['OPTIONS'] *-pkgfx* ['in.wad' ['out.txt']] |
| 36 |
|
| 37 |
*@PACKAGE@* ['OPTIONS'] *-pknormal* ['in.wad' ['out.txt']] |
| 38 |
|
| 39 |
*@PACKAGE@* ['OPTIONS'] *-restore* |
| 40 |
|
| 41 |
*@PACKAGE@* ['OPTIONS'] *-usedidx* ['in.wad'] |
| 42 |
|
| 43 |
*@PACKAGE@* ['OPTIONS'] *-usedtex* ['in.wad'] |
| 44 |
|
| 45 |
*@PACKAGE@* ['OPTIONS'] *-unused* 'in.wad' |
| 46 |
|
| 47 |
*@PACKAGE@* ['OPTIONS'] *-wadir* ['in.wad'] |
| 48 |
|
| 49 |
*@PACKAGE@* ['OPTIONS'] *-xtract* 'in.wad' ['dirctivs.txt'] |
| 50 |
|
| 51 |
DESCRIPTION |
| 52 |
----------- |
| 53 |
@PACKAGE_NAME@ is a wad composer for Doom, Heretic, Hexen and Strife. |
| 54 |
It can be used to extract the lumps of a wad and save them as |
| 55 |
individual files or the reverse, and much more. |
| 56 |
|
| 57 |
When extracting a lump to a file, it does not just copy the raw data, |
| 58 |
it converts it to an appropriate format (such as PPM for graphics, Sun |
| 59 |
audio for samples, etc.). Conversely, when it reads files for |
| 60 |
inclusion in pwads, it does the necessary conversions (for example, |
| 61 |
from PPM to Doom picture format). |
| 62 |
|
| 63 |
Decomposing a wad |
| 64 |
~~~~~~~~~~~~~~~~~ |
| 65 |
To decompose a wad (i.e. extract its contents), use the *-extract* |
| 66 |
(a.k.a. *-xtract*) command. When decomposing a wad, @PACKAGE_NAME@ |
| 67 |
creates one file for each lump. The files are created in one of the |
| 68 |
following subdirectories of the working directory: *flats/*, *lumps/*, |
| 69 |
*musics/*, *patches/*, *sounds/*, *sprites/*, *textures/*. The |
| 70 |
decomposing process also creates a very important file, *wadinfo.txt*, |
| 71 |
which will be used later when composing. |
| 72 |
|
| 73 |
To extract the contents of the Doom II iwad, |
| 74 |
|
| 75 |
@PACKAGE@ -doom2 /path/to/doom2.wad -xtract |
| 76 |
|
| 77 |
To extract the contents of a Doom II pwad named mywad.wad, |
| 78 |
|
| 79 |
@PACKAGE@ -doom2 /path/to/doom2.wad -xtract mywad.wad |
| 80 |
|
| 81 |
To extract only the sprites, |
| 82 |
|
| 83 |
@PACKAGE@ -doom2 /path/to/doom2.wad -sprites -xtract |
| 84 |
|
| 85 |
To extract only the sounds, |
| 86 |
|
| 87 |
@PACKAGE@ -doom2 /path/to/doom2.wad -sounds -xtract |
| 88 |
|
| 89 |
Composing (building) a wad |
| 90 |
~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 91 |
Composing is the symmetrical process. It's done with the three |
| 92 |
commands *-build*, *-create* and *-make*, that are equivalent. Using |
| 93 |
*wadinfo.txt* and the files in *flats/*, *lumps/*, *musics/*, |
| 94 |
*patches/*, *sounds/*, *sprites/* and *textures/*, @PACKAGE_NAME@ |
| 95 |
creates a new wad. |
| 96 |
|
| 97 |
To create a new pwad named mywad.wad, |
| 98 |
|
| 99 |
@PACKAGE@ -doom2 /path/to/doom2.wad -make mywad.wad |
| 100 |
|
| 101 |
To create a new iwad named mytc.wad, |
| 102 |
|
| 103 |
@PACKAGE@ -doom2 /path/to/doom2.wad -iwad -make mytc.wad |
| 104 |
|
| 105 |
Other operations |
| 106 |
~~~~~~~~~~~~~~~~ |
| 107 |
@PACKAGE_NAME@ has many (too many?) other commands like *-join*, |
| 108 |
*-merge*, *-usedtex* etc. |
| 109 |
|
| 110 |
OPTIONS |
| 111 |
------- |
| 112 |
Modal options not requiring an iwad |
| 113 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 114 |
*-?*, *-h*, *-help*, *--help*:: |
| 115 |
Print list of options. |
| 116 |
|
| 117 |
*-syntax*:: |
| 118 |
Print the syntax of wad creation directives. |
| 119 |
|
| 120 |
*--version*:: |
| 121 |
Print version number and exit immediately. |
| 122 |
|
| 123 |
*-unused* 'in.wad':: |
| 124 |
Find unused spaces in a wad. |
| 125 |
|
| 126 |
Modal options requiring an iwad |
| 127 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 128 |
*-add* 'in.wad' 'out.wad':: |
| 129 |
Copy sp & fl of iwad and 'in.wad' to 'out.wad'. |
| 130 |
|
| 131 |
*-af* 'flats.wad':: |
| 132 |
Append all floors/ceilings to the wad. |
| 133 |
|
| 134 |
*-append* 'io.wad':: |
| 135 |
Add sprites & flats of iwad to io.wad. |
| 136 |
|
| 137 |
*-as* 'sprite.wad':: |
| 138 |
Append all sprites to the wad. |
| 139 |
|
| 140 |
*-build*|*-create*|*-make* ['in.txt'] 'out.wad':: |
| 141 |
Make a pwad. |
| 142 |
|
| 143 |
*-check*|*-test* 'in.wad':: |
| 144 |
Check the textures. |
| 145 |
|
| 146 |
*-debug* ['file']:: |
| 147 |
Debug color conversion. |
| 148 |
|
| 149 |
*-extract*|*-xtract* ['in.wad' ['out.txt']]:: |
| 150 |
Extract some/all entries from a wad. |
| 151 |
|
| 152 |
*-get* 'entry' ['in.wad']:: |
| 153 |
Get a wad entry from main wad or in.wad. |
| 154 |
|
| 155 |
*-join* 'incomplete.wad' 'in.wad':: |
| 156 |
Append sprites & flats of Doom to a pwad. |
| 157 |
|
| 158 |
*-merge* 'in.wad':: |
| 159 |
Merge doom.wad and a pwad. |
| 160 |
|
| 161 |
*-pkgfx* ['in.wad' ['out.txt']]:: |
| 162 |
Detect identical graphics. |
| 163 |
|
| 164 |
*-pknormal* ['in.wad' ['out.txt']]:: |
| 165 |
Detect identical normal. |
| 166 |
|
| 167 |
*-restore*:: |
| 168 |
Restore doom.wad and the pwad. |
| 169 |
|
| 170 |
*-usedidx* ['in.wad']:: |
| 171 |
Color index usage statistics. |
| 172 |
|
| 173 |
*-usedtex* ['in.wad']:: |
| 174 |
List textures used in all levels. |
| 175 |
|
| 176 |
*-wadir* ['in.wad']:: |
| 177 |
List and identify entries in a wad. |
| 178 |
|
| 179 |
General options |
| 180 |
~~~~~~~~~~~~~~~ |
| 181 |
*-overwrite*:: |
| 182 |
Overwrite all. |
| 183 |
|
| 184 |
*-dir* 'dir':: |
| 185 |
Extraction directory (default `.`). |
| 186 |
|
| 187 |
Iwad |
| 188 |
~~~~ |
| 189 |
*-doom* 'dir':: |
| 190 |
Path to Doom iwad. |
| 191 |
|
| 192 |
*-doom2* 'dir':: |
| 193 |
Path to Doom II iwad. |
| 194 |
|
| 195 |
*-doom02* 'dir':: |
| 196 |
Path to Doom alpha 0.2 iwad. |
| 197 |
|
| 198 |
*-doom04* 'dir':: |
| 199 |
Path to Doom alpha 0.4 iwad. |
| 200 |
|
| 201 |
*-doom05* 'dir':: |
| 202 |
Path to Doom alpha 0.5 iwad. |
| 203 |
|
| 204 |
*-doompr* 'dir':: |
| 205 |
Path to Doom PR pre-beta iwad. |
| 206 |
|
| 207 |
*-heretic* 'dir':: |
| 208 |
Path to Heretic iwad. |
| 209 |
|
| 210 |
*-hexen* 'dir':: |
| 211 |
Path to Hexen iwad. |
| 212 |
|
| 213 |
*-strife* 'dir':: |
| 214 |
Path to Strife iwad. |
| 215 |
|
| 216 |
*-strife10* 'dir':: |
| 217 |
Path to Strife 1.0 iwad. |
| 218 |
|
| 219 |
Wad options |
| 220 |
~~~~~~~~~~~ |
| 221 |
*-be*:: |
| 222 |
Assume all wads are big endian (default LE). |
| 223 |
|
| 224 |
*-deu*:: |
| 225 |
Add 64k of junk for DEU 5.21 compatibility. |
| 226 |
|
| 227 |
*-george*|*-s_end*:: |
| 228 |
Use *S_END* for sprites, not *SS_END*. |
| 229 |
|
| 230 |
*-ibe*:: |
| 231 |
Input wads are big endian (default LE). |
| 232 |
|
| 233 |
*-ile*:: |
| 234 |
Input wads are little endian (default). |
| 235 |
|
| 236 |
*-ipf* 'code':: |
| 237 |
Picture format (*alpha*, *normal*, *pr*; default normal). |
| 238 |
|
| 239 |
*-itf* 'code':: |
| 240 |
Input texture format (*nameless*, *none*, *normal*, *strife11*; |
| 241 |
default normal). |
| 242 |
|
| 243 |
*-itl* 'code':: |
| 244 |
Texture lump (*none*, *normal*, *textures*; default normal). |
| 245 |
|
| 246 |
*-iwad*:: |
| 247 |
Compose iwad, not pwad. |
| 248 |
|
| 249 |
*-le*:: |
| 250 |
Assume all wads are little endian (default). |
| 251 |
|
| 252 |
*-obe*:: |
| 253 |
Create big endian wads (default LE). |
| 254 |
|
| 255 |
*-ole*:: |
| 256 |
Create little endian wads (default). |
| 257 |
|
| 258 |
*-otf* 'code':: |
| 259 |
Output texture format (*nameless*, *none*, *normal*, *strife11*; |
| 260 |
default normal). |
| 261 |
|
| 262 |
*-pngoffsets*:: |
| 263 |
Override offsets in WADINFO with offsets contained in PNG metadata |
| 264 |
|
| 265 |
*-tf* 'code':: |
| 266 |
Texture format (*nameless*, *none*, *normal*, *strife11*; default |
| 267 |
normal). |
| 268 |
|
| 269 |
Lump selection |
| 270 |
~~~~~~~~~~~~~~ |
| 271 |
*-flats*:: |
| 272 |
Select flats. |
| 273 |
|
| 274 |
*-graphics*:: |
| 275 |
Select graphics. |
| 276 |
|
| 277 |
*-levels*:: |
| 278 |
Select levels. |
| 279 |
|
| 280 |
*-lumps*:: |
| 281 |
Select lumps. |
| 282 |
|
| 283 |
*-musics*:: |
| 284 |
Select musics. |
| 285 |
|
| 286 |
*-patches*:: |
| 287 |
Select patches. |
| 288 |
|
| 289 |
*-scripts*:: |
| 290 |
Select Strife scripts. |
| 291 |
|
| 292 |
*-sneas*:: |
| 293 |
Select sneas (sneaps and sneats). |
| 294 |
|
| 295 |
*-sneaps*:: |
| 296 |
Select sneaps. |
| 297 |
|
| 298 |
*-sneats*:: |
| 299 |
Select sneats. |
| 300 |
|
| 301 |
*-sounds*:: |
| 302 |
Select sounds. |
| 303 |
|
| 304 |
*-sprites*:: |
| 305 |
Select sprites. |
| 306 |
|
| 307 |
*-textures*:: |
| 308 |
Select textures. |
| 309 |
|
| 310 |
Graphics |
| 311 |
~~~~~~~~ |
| 312 |
*-bmp*:: |
| 313 |
Save pictures as BMP (*.bmp*). |
| 314 |
|
| 315 |
*-png*:: |
| 316 |
Save pictures as PNG (*.png*). Default format. |
| 317 |
|
| 318 |
*-gif*:: |
| 319 |
Save pictures as GIF (*.gif*). |
| 320 |
|
| 321 |
*-ppm*:: |
| 322 |
Save pictures as rawbits PPM (P6, *.ppm*). |
| 323 |
|
| 324 |
*-rgb* 'r' 'g' 'b':: |
| 325 |
Specify the transparent colour (default 0 47 47). |
| 326 |
|
| 327 |
Sound |
| 328 |
~~~~~ |
| 329 |
*-rate* 'code':: |
| 330 |
Policy for != 11025 Hz (*reject*, *force*, *warn*, *accept*; default warn). |
| 331 |
|
| 332 |
Reporting |
| 333 |
~~~~~~~~~ |
| 334 |
*-di* 'name':: |
| 335 |
Debug identification of entry. |
| 336 |
|
| 337 |
*-v0*|*-v1*|*-v2*|*-v3*|*-v4*|*-v5*:: |
| 338 |
Set verbosity level, default 2. |
| 339 |
|
| 340 |
DIAGNOSTICS |
| 341 |
----------- |
| 342 |
All messages are identified by a unique code. Some messages are |
| 343 |
identical; the code is useful to distinguish them. All codes have |
| 344 |
four characters: two letters and two digits. The letters identify the |
| 345 |
part of the code where the message comes from, the digits give the |
| 346 |
message number within that area. In general, numbers are assigned so |
| 347 |
that messages that come from parts of the code that are executed |
| 348 |
earlier have lower numbers. |
| 349 |
|
| 350 |
FILES |
| 351 |
----- |
| 352 |
'dir'*/flats/*:: |
| 353 |
When extracting, flats are saved to this directory. When composing, |
| 354 |
flats are read from this directory. |
| 355 |
|
| 356 |
'dir'*/graphics/*:: |
| 357 |
When extracting, graphics are saved to this directory. When |
| 358 |
composing, graphics are read from this directory. |
| 359 |
|
| 360 |
'dir'*/levels/*:: |
| 361 |
When extracting, levels are saved to this directory. When composing, |
| 362 |
levels are read from this directory. |
| 363 |
|
| 364 |
'dir'*/lumps/*:: |
| 365 |
When extracting, lumps are saved to this directory. When composing, |
| 366 |
lumps are read from this directory. |
| 367 |
|
| 368 |
'dir'*/musics/*:: |
| 369 |
When extracting, musics are saved to this directory. When composing, |
| 370 |
musics are read from this directory. |
| 371 |
|
| 372 |
'dir'*/patches/*:: |
| 373 |
When extracting, patches are saved to this directory. When composing, |
| 374 |
patches are read from this directory. |
| 375 |
|
| 376 |
'dir'*/scripts/*:: |
| 377 |
When extracting, Strife scripts are saved to this directory. When |
| 378 |
composing, Strife scripts are read from this directory. |
| 379 |
|
| 380 |
'dir'*/sneaps/*:: |
| 381 |
When extracting, Doom alpha sneaps are saved to this directory. When |
| 382 |
composing, Doom alpha sneaps are read from this directory. |
| 383 |
|
| 384 |
'dir'*/sneats/*:: |
| 385 |
When extracting, Doom alpha sneats are saved to this directory. When |
| 386 |
composing, Doom alpha sneats are read from this directory. |
| 387 |
|
| 388 |
'dir'*/sounds/*:: |
| 389 |
When extracting, sounds are saved to this directory. When composing, |
| 390 |
sounds are read from this directory. |
| 391 |
|
| 392 |
'dir'*/sprites/*:: |
| 393 |
When extracting, sprites are saved to this directory. When composing, |
| 394 |
sprites are read from this directory. |
| 395 |
|
| 396 |
'dir'*/textures/texture1.txt*:: |
| 397 |
The *TEXTURE1* lump (all but Doom alpha 0.4 and 0.5). |
| 398 |
|
| 399 |
'dir'*/textures/texture2.txt*:: |
| 400 |
The *TEXTURE2* lump (all commercial IWADs except Doom 2). |
| 401 |
|
| 402 |
'dir'*/textures/textures.txt*:: |
| 403 |
The *TEXTURES* lump (Doom alpha 0.4 and 0.5). |
| 404 |
|
| 405 |
'dir'*/tx_start/*:: |
| 406 |
Special texture directory for certain engines such as ZDoom. |
| 407 |
Specifying a positive integer after the name in wadinfo.txt causes no |
| 408 |
format conversion to be performed (eg, PNGs and BMPs remain as PNGs |
| 409 |
and BMPs in the WAD), otherwise an attempt to convert to Doom’s patch |
| 410 |
format is done. |
| 411 |
|
| 412 |
'dir'*/wadinfo.txt*:: |
| 413 |
The default master file. |
| 414 |
|
| 415 |
ENVIRONMENT |
| 416 |
----------- |
| 417 |
*DOOMWADDIR*:: |
| 418 |
The directory where the iwad resides. The value of this environment |
| 419 |
variable is overridden by *-main*, *-doom* and friends. |
| 420 |
|
| 421 |
COPYRIGHT |
| 422 |
--------- |
| 423 |
@PACKAGE_NAME@ is copyright © 1994-1995 Olivier Montanuy, copyright © |
| 424 |
1999-2005 André Majorel, copyright © 2006-2021 contributors to |
| 425 |
@PACKAGE_NAME@. |
| 426 |
|
| 427 |
Most of this program is under the GNU General Public License version |
| 428 |
2, but some of it is available under other licenses. This program is |
| 429 |
distributed in the hope that it will be useful, but WITHOUT ANY |
| 430 |
WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 431 |
FITNESS FOR A PARTICULAR PURPOSE. See LICENSE for specific |
| 432 |
information and copyright notices. All trademarks are property of |
| 433 |
their owners. |
| 434 |
|
| 435 |
AUTHORS |
| 436 |
------- |
| 437 |
The original author of @PACKAGE_NAME@ is Olivier Montanuy. From 1994 |
| 438 |
to 1996, @PACKAGE_NAME@ was maintained by Olivier Montanuy with help |
| 439 |
from Per Allansson, James Bonfield, Sharon Bowles, Mark Mathews, and |
| 440 |
Chuck Rossi. The original manual was written by Kevin McGrail. |
| 441 |
|
| 442 |
From version 4.0 (1999) through 4.4.902 (2005), the maintainer was |
| 443 |
André Majorel (http://www.teaser.fr/~amajorel). |
| 444 |
|
| 445 |
The project has since been maintained by a loose collaboration of |
| 446 |
authors primarily as part of the Debian project and Freedoom project. |
| 447 |
They include Jon Dowland, Simon Howard, Mike Swanson, RjY, Ayub |
| 448 |
Ahmed, and Nick Zatkovich. |
| 449 |
|
| 450 |
REPORTING BUGS |
| 451 |
-------------- |
| 452 |
Please report bugs to the issue tracker at |
| 453 |
https://github.com/Doom-Utils/deutex. |