File: deutex.6

package info (click to toggle)
deutex 4.4.902-13
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,120 kB
  • sloc: ansic: 10,794; sh: 424; makefile: 340; perl: 145; csh: 4
file content (571 lines) | stat: -rw-r--r-- 14,356 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
.\" This file is part of DeuTex.
.\" 
.\" DeuTex incorporates code derived from DEU 5.21 that was put in the
.\" public domain in 1994 by Raphal Quinet and Brendon Wyber.
.\" 
.\" DeuTex is Copyright  1994-1995 Olivier Montanuy,
.\"           Copyright  1999-2005 Andr Majorel.
.\" 
.\" This program is free software; you can redistribute it and/or modify it
.\" under the terms of the GNU General Public License as published by the
.\" Free Software Foundation; either version 2 of the License, or (at your
.\" option) any later version.
.\" 
.\" This program is distributed in the hope that it will be useful, but
.\" WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
.\" Public License for more details.
.\" 
.\" You should have received a copy of the GNU General Public License along
.\" with this library; if not, write to the Free Software Foundation, Inc.,
.\" 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
.\" 
.TH DEUTEX 6 2005-08-31 "DeuTex 4.4.902"
.SH NAME
deutex, deusf \- do things with wad files
.SH SYNOPSIS
.BR "deutex \-?" | \-h | \-help | \-\-help
.br
.B  deutex \-\-version
.br
.B  deutex \-man
.br
\fBdeutex\fP [\fIoptions\fP]
.B \-add
.I incomplete.wad out.wad
.br
\fBdeutex\fP [\fIoptions\fP]
.B \-af
.I flats.wad
.br
\fBdeutex\fP [\fIoptions\fP]
.B \-append
.I incomplete.wad
.br
\fBdeutex\fP [\fIoptions\fP]
.B \-as
.I sprite.wad
.br
\fBdeutex\fP [\fIoptions\fP]
.B \-check
.I in.wad
.br
\fBdeutex\fP [\fIoptions\fP]
.B \-debug
.RI [ in.gif ]
.br
\fBdeutex\fP [\fIoptions\fP]
.B \-get
.I entry
.RI [ in.wad ]
.br
\fBdeutex\fP [\fIoptions\fP]
.B \-join
.I incomplete.wad in.wad
.br
\fBdeutex\fP [\fIoptions\fP]
.B \-make
\fR[\fP\fIdirctivs.txt\fP\fR] \fP\fIout.wad\fP
.br
\fBdeutex\fP [\fIoptions\fP]
.B \-merge
.I in.wad
.br
\fBdeutex\fP [\fIoptions\fP]
.B \-pkgfx
.RI [ in.wad " [" out.txt ]]
.br
\fBdeutex\fP [\fIoptions\fP]
.B \-pknormal
.RI [ in.wad " [" out.txt ]]
.br
\fBdeutex\fP [\fIoptions\fP]
.B \-restor\fP
.br
\fBdeutex\fP [\fIoptions\fP]
.B \-usedidx
.RI [ in.wad ]
.br
\fBdeutex\fP [\fIoptions\fP]
.B \-usedtex
.RI [ in.wad ]
.br
\fBdeutex\fP [\fIoptions\fP]
.B \-unused
.I in.wad
.br
\fBdeutex\fP [\fIoptions\fP]
.B \-wadir
.RI [ in.wad ]
.br
\fBdeutex\fP [\fIoptions\fP]
.B \-xtract
.I in.wad
.RI [ dirctivs.txt ]
.br

.BR "deusf \-?" | \-h | \-help | \-\-help
.br
.B  deusf \-\-version
.br
.BI "deusf " options
.br
.SH DESCRIPTION
DeuTex is a wad composer for Doom, Heretic, Hexen and Strife.
It can be used to extract the lumps of a wad and save them as individual files
or the reverse, and much more.
.PP
When extracting a lump to a file, it does not just copy the raw data, it
converts it to an appropriate format (such as PPM for graphics, Sun audio for
samples, etc.).
Conversely, when it reads files for inclusion in pwads, it does the necessary
conversions (for example, from PPM to Doom picture format).
.PP
DeuSF is a trimmed version of DeuTex that is used to merge sprites and flats
from a pwad into an iwad, which is sometimes necessary because Doom and its
breed do not handle sprites in pwads well.
.PP
See \fBdocsrc/dtexman6.txt\fP for more information on DeuTex and DeuSF.
.SS Decomposing a wad
To decompose a wad (i.e. extract its contents), use the \fB\-extract\fP (a.k.a.
\fB\-xtract\fP) command.
When decomposing a wad, DeuTex creates one file for each lump.
The files are created in one of the following subdirectories of the working
directory: \fBflats/\fP, \fBlumps/\fP, \fBmusics/\fP, \fBpatches/\fP,
\fBsounds/\fP, \fBsprites/\fP, \fBtextures/\fP.
The decomposing process also creates a very important file, \fBwadinfo.txt\fP,
which will be used later when composing.
.PP
To extract the contents of the Doom II iwad,
.nf
	\fBdeutex \-doom2 /path/to/doom2.wad \-xtract\fP
.fi
.PP
To extract the contents of a Doom II pwad named \fImywad.wad\fP,
.nf
	\fBdeutex \-doom2 /path/to/doom2.wad \-xtract mywad.wad\fP
.fi
.PP
To extract only the sprites,
.nf
	\fBdeutex \-doom2 /path/to/doom2.wad \-sprites \-xtract\fP
.fi
.PP
To extract only the sounds and save them as .voc,
.nf
	\fBdeutex \-doom2 /path/to/doom2.wad \-sounds \-voc \-xtract\fP
.fi
.SS Composing (building) a wad
Composing is the symmetrical process.
It's done with the three commands \fB\-build\fP, \fB\-create\fP and
\fB\-make\fP, that are equivalent.
Using \fBwadinfo.txt\fP and the files in flats/, lumps/, musics/, patches/,
sounds/, sprites/ and textures/, DeuTex creates a new wad.
.PP
To create a new pwad named \fImywad.wad\fP,
.nf
.RS
\fBdeutex \-doom2 /path/to/doom2.wad \-make mywad.wad\fP
.RE
.fi
.PP
To create a new iwad named \fImytc.wad\fP,
.nf
.RS
\fBdeutex \-doom2 /path/to/doom2.wad \-iwad \-make mytc.wad\fP
.RE
.fi
.SS Other operations
DeuTex has many (too many ?) other commands like \fB\-join\fP, \fB\-merge\fP,
\fB\-usedtex\fP etc.
See \fBdocsrc/dtexman6.txt\fP for a full description.
.SH OPTIONS
.SS Modal options not requiring an iwad
.TP
\fB\-?\fP
Same as \fB\-\-help\fP.
.TP
\fB\-h\fP
Same as \fB\-\-help\fP.
.TP
\fB\-help\fP
Same as \fB\-\-help\fP.
.TP
\fB\--help\fP
Print list of options.
.TP
\fB\-man\fP
Print list of options in troff \-man format.
.TP
\fB\-syntax\fP
Print the syntax of wad creation directives.
.TP
\fB\-unused \fP\fIin.wad\fP
Find unused spaces in a wad.
.TP
\fB\--version\fP
Print version number and exit successfully.
.SS Modal options requiring an iwad
.TP
\fB\-add \fP\fIin.wad out.wad\fP
Copy sp & fl of iwad and \fIin.wad\fP to \fIout.wad\fP.
.TP
\fB\-af \fP\fIflats.wad\fP
Append all floors/ceilings to the wad.
.TP
\fB\-append \fP\fIio.wad\fP
Add sprites & flats of iwad to \fIio.wad\fP.
.TP
\fB\-as \fP\fIsprite.wad\fP
Append all sprites to the wad.
.TP
\fB\-build \fP\fR[\fP\fIin.txt\fP\fR] \fP\fIout.wad\fP
Make a pwad.
.TP
\fB\-check \fP\fIin.wad\fP
Check the textures.
.TP
\fB\-create \fP\fR[\fP\fIin.txt\fP\fR] \fP\fIout.wad\fP
Same as \fB\-build\fP.
.TP
\fB\-debug \fP\fR[\fP\fIfile\fP\fR]\fP
Debug colour conversion.
.TP
\fB\-extract \fP\fR[\fP\fIin.wad \fP\fR[\fP\fIout.txt\fP\fR]]\fP
Same as \fB\-xtract\fP.
.TP
\fB\-get \fP\fIentry \fP\fR[\fP\fIin.wad\fP\fR]\fP
Get a wad entry from main wad or \fIin.wad\fP.
.TP
\fB\-join \fP\fIincomplete.wad in.wad\fP
Append sprites & flats of Doom to a pwad.
.TP
\fB\-make \fP\fR[\fP\fIin.txt\fP\fR] \fP\fIout.wad\fP
Same as \fB\-build\fP.
.TP
\fB\-merge \fP\fIin.wad\fP
Merge doom.wad and a pwad.
.TP
\fB\-pkgfx \fP\fR[\fP\fIin.wad \fP\fR[\fP\fIout.txt\fP\fR]]\fP
Detect identical graphics.
.TP
\fB\-pknormal \fP\fR[\fP\fIin.wad \fP\fR[\fP\fIout.txt\fP\fR]]\fP
Detect identical normal.
.TP
\fB\-restore\fP
Restore doom.wad and the pwad.
.TP
\fB\-test \fP\fIin.wad\fP
Same as \fB\-check\fP.
.TP
\fB\-usedidx \fP\fR[\fP\fIin.wad\fP\fR]\fP
Colour index usage statistics.
.TP
\fB\-usedtex \fP\fR[\fP\fIin.wad\fP\fR]\fP
List textures used in all levels.
.TP
\fB\-wadir \fP\fR[\fP\fIin.wad\fP\fR]\fP
List and identify entries in a wad.
.TP
\fB\-xtract \fP\fR[\fP\fIin.wad \fP\fR[\fP\fIout.txt\fP\fR]]\fP
Extract some/all entries from a wad.
.SS General options
.TP 12
\fB\-overwrite\fP
Overwrite all.
.TP 12
\fB\-dir \fP\fIdir\fP
Extraction directory (default \fB.\fP).
.SS Iwad
.TP 15
\fB\-doom \fP\fIdir\fP
Path to Doom iwad.
.TP 15
\fB\-doom2 \fP\fIdir\fP
Path to Doom II iwad.
.TP 15
\fB\-doom02 \fP\fIdir\fP
Path to Doom alpha 0.2 iwad.
.TP 15
\fB\-doom04 \fP\fIdir\fP
Path to Doom alpha 0.4 iwad.
.TP 15
\fB\-doom05 \fP\fIdir\fP
Path to Doom alpha 0.5 iwad.
.TP 15
\fB\-doompr \fP\fIdir\fP
Path to Doom PR pre\-beta iwad.
.TP 15
\fB\-heretic \fP\fIdir\fP
Path to Heretic iwad.
.TP 15
\fB\-hexen \fP\fIdir\fP
Path to Hexen iwad.
.TP 15
\fB\-strife \fP\fIdir\fP
Path to Strife iwad.
.TP 15
\fB\-strife10 \fP\fIdir\fP
Path to Strife 1.0 iwad.
.SS Wad options
.TP
\fB\-be\fP
Assume all wads are big endian (default LE).
.TP
\fB\-deu\fP
Add 64k of junk for DEU 5.21 compatibility.
.TP
\fB\-george\fP
Same as \fB\-s_end\fP.
.TP
\fB\-ibe\fP
Input wads are big endian (default LE).
.TP
\fB\-ile\fP
Input wads are little endian (default).
.TP
\fB\-ipf \fP\fIcode\fP
Picture format (\fBalpha\fP, *\fBnormal\fP, \fBpr\fP, \fBrott\fP).
.TP
\fB\-itf \fP\fIcode\fP
Input texture format (\fBnameless\fP, \fBnone\fP, *\fBnormal\fP, \fBstrife11\fP).
.TP
\fB\-itl \fP\fIcode\fP
Texture lump (\fBnone\fP, *\fBnormal\fP, \fBtextures\fP).
.TP
\fB\-iwad\fP
Compose iwad, not pwad.
.TP
\fB\-le\fP
Assume all wads are little endian (default).
.TP
\fB\-musid\fP
Use old music identification method.
.TP
\fB\-obe\fP
Create big endian wads (default LE).
.TP
\fB\-ole\fP
Create little endian wads (default).
.TP
\fB\-otf \fP\fIcode\fP
Output texture format (\fBnameless\fP, \fBnone\fP, *\fBnormal\fP, \fBstrife11\fP).
.TP
\fB\-s_end\fP
Use \fBS_END\fP for sprites, not \fBSS_END\fP.
.TP
\fB\-tf \fP\fIcode\fP
Texture format (\fBnameless\fP, \fBnone\fP, *\fBnormal\fP, \fBstrife11\fP).
.SS Lump selection
.TP 11
\fB\-flats\fP
Select flats.
.TP 11
\fB\-graphics\fP
Select graphics.
.TP 11
\fB\-levels\fP
Select levels.
.TP 11
\fB\-lumps\fP
Select lumps.
.TP 11
\fB\-musics\fP
Select musics.
.TP 11
\fB\-patches\fP
Select patches.
.TP 11
\fB\-scripts\fP
Select Strife scripts.
.TP 11
\fB\-sneas\fP
Select sneas (sneaps and sneats).
.TP 11
\fB\-sneaps\fP
Select sneaps.
.TP 11
\fB\-sneats\fP
Select sneats.
.TP 11
\fB\-sounds\fP
Select sounds.
.TP 11
\fB\-sprites\fP
Select sprites.
.TP 11
\fB\-textures\fP
Select textures.
.SS Graphics
.TP
\fB\-bmp\fP
Save pictures as BMP (\fB.bmp\fP).
.TP
\fB\-gif\fP
Save pictures as GIF (\fB.gif\fP).
.TP
\fB\-ppm\fP
Save pictures as rawbits PPM (P6, \fB.ppm\fP).
.TP
\fB\-rgb \fP\fIr g b\fP
Specify the transparent colour (default 0 47 47).
.SS Sound
.TP
\fB\-au\fP
Save sounds as Sun audio (\fB.au\fP).
.TP
\fB\-fullsnd\fP
Save sounds beyond declared length.
.TP
\fB\-rate \fP\fIcode\fP
Policy for != 11025 Hz (\fBreject\fP, \fBforce\fP, *\fBwarn\fP, \fBaccept\fP).
.TP
\fB\-voc\fP
Save sounds as voc (\fB.voc\fP).
.TP
\fB\-wav\fP
Save sounds as WAVE (\fB.wav\fP).
.SS Reporting
.TP 11
\fB\-di \fP\fIname\fP
Debug identification of entry.
.TP 11
\fB\-log \fP\fIfile\fP
Name of log file (default \fBdeutex.log\fP).
.TP 11
\fB\-v0\fP
Set verbosity level to 0.
.TP 11
\fB\-v1\fP
Set verbosity level to 1.
.TP 11
\fB\-v2\fP
Set verbosity level to 2 (default).
.TP 11
\fB\-v3\fP
Set verbosity level to 3.
.TP 11
\fB\-v4\fP
Set verbosity level to 4.
.TP 11
\fB\-v5\fP
Set verbosity level to 5.
.SS WinTex-related options
.TP
\fB\-win \fP\fIdoom data info select colour\fP
WinTex shortcut.
.TP
\fB\-wim \fP\fIdoom select\fP
WinTex shortcut.
.TP
\fB\-wtx \fP\fIiwad\fP
WinTex shortcut.
.SH DIAGNOSTICS
All messages are identified by a unique code.
Some messages are identical\ ; the code is useful to distinguish them.
All codes have four characters\ ; two letters and two digits.
The letters identify the part of the code where the message comes from, the
digits give the message number within that area.
In general, numbers are assigned so that messages that come from parts of the
code that are executed earlier have lower numbers.
.SH FILES
.TP
.IB dir /flats/
When extracting, flats are saved to this directory.
When composing, flats are read from this directory.
.TP
.IB dir /graphics/
When extracting, graphics are saved to this directory.
When composing, graphics are read from this directory.
.TP
.IB dir /levels/
When extracting, levels are saved to this directory.
When composing, levels are read from this directory.
.TP
.IB dir /lumps/
When extracting, lumps are saved to this directory.
When composing, lumps are read from this directory.
.TP
.IB dir /musics/
When extracting, musics are saved to this directory.
When composing, musics are read from this directory.
.TP
.IB dir /patches/
When extracting, patches are saved to this directory.
When composing, patches are read from this directory.
.TP
.IB dir /scripts/
When extracting, Strife scripts are saved to this directory.
When composing, Strife scripts are read from this directory.
.TP
.IB dir /sneaps/
When extracting, Doom alpha sneaps are saved to this directory.
When composing, Doom alpha sneaps are read from this directory.
.TP
.IB dir /sneats/
When extracting, Doom alpha sneats are saved to this directory.
When composing, Doom alpha sneats are read from this directory.
.TP
.IB dir /sounds/
When extracting, sounds are saved to this directory.
When composing, sounds are read from this directory.
.TP
.IB dir /sprites/
When extracting, sprites are saved to this directory.
When composing, sprites are read from this directory.
.TP
.IB dir /textures/texture1.txt
The \fBTEXTURE1\fP lump (all but Doom alpha 0.4 and 0.5).
.TP
.IB dir /textures/texture2.txt
The \fBTEXTURE2\fP lump (all commercial iwads except Doom 2).
.TP
.IB dir /textures/textures.txt
The \fBTEXTURES\fP lump (Doom alpha 0.4 and 0.5).
.TP
.IB dir /wadinfo.txt
The default master file.
.SH ENVIRONMENT
.TP
.B DOOMWADDIR
The directory where the iwad resides. The value of this environment variable is
overridden by \fB\-main\fP, \fB\-doom\fP and friends.
.SH BUGS
See \fBTODO\fP.
.SH LEGAL
DeuTex is copyright  1994-1995 Olivier Montanuy, copyright  1999-2005 Andr
Majorel.
.PP
Most of this program is GPL'd but some of it is available under other licenses.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
See LICENSE for specific information and copyright notices.
All trademarks are the property of their owners.
.SH AUTHOR
The original author of DeuTex is Olivier Montanuy
<Olivier.Montanuy=wanadoo+fr>.
From 1994 to 1996, DeuTex was maintained by Olivier Montanuy with help from Per
Allansson <c91peral=und+ida+liu+se>, James Bonfield
<jkb=mrc-molecular-biology+cambridge+ac+uk>, Sharon Bowles, Mark Mathews
<mark.mathews=channel1+com> and Chuck Rossi.
The original manual was written by Kevin McGrail <hevkev=sfo+com>.
.PP
As of version 4 (1999), the maintainer is Andr Majorel
<URL:http://www.teaser.fr/~amajorel/>.
.PP
Questions and bug reports should be sent to the current maintainer, \fInot\fP
to the original authors.
.SH SEE ALSO
.BR wadcat (6),
.BR wadext (6),
.BR wadext2 (6),
.BR wadflat (6),
.BR wadgc (6),
.BR wadlc (6),
.BR wadldc (6),
.BR wadpatch (6),
.BR wadsprit (6),
.BR wadtex (6),
.BR wadtxls (6),
.BR xwadtools (6)