File: expack.1

package info (click to toggle)
exult 1.12.0-2
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid
  • size: 43,608 kB
  • sloc: cpp: 169,917; xml: 7,400; yacc: 2,850; makefile: 2,419; java: 1,901; ansic: 1,654; lex: 673; sh: 539; objc: 416
file content (148 lines) | stat: -rw-r--r-- 2,919 bytes parent folder | download | duplicates (4)
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
.\" -*- nroff -*-
.TH expack 1 2002-03-23 Exult

.SH NAME
expack \- manipulate Flex files

.SH SYNOPSIS
.B expack -a
.IR "FLEXFILE FILE" ...

.B expack -c
.IR "FLEXFILE FILE" ...

.B expack -x
.IR FLEXFILE " [" INDEX ]

.B expack -i
.I MANIFEST

.B expack -l
.I FLEXFILE

.SH DESCRIPTION
.B expack
is a command-line utility that lets you extract and create Flex files.
Flex files are archives (which means that they act as containers for
other files, somewhat like directories) used by
.I Ultima VII
to store most of its data. Note that the names of the original files
are not stored in the Flex \(em files are only retrievable by their
index.

.SS Modes of operation

.TP
.BR -a " Add"
--NOT IMPLEMENTED YET.  FUTURE ENHANCEMENT--
This command adds one or more
.IR FILE s
to the end of
.IR FLEXFILE .

.TP
.BR -c " Create"
This command takes one or more 
.IR FILE s
and bundles them into
.IR FLEXFILE ,
overwriting it in the process.

.TP
.BR -x " Extract"
Lets you extract the files contained within
.IR FLEXFILE .
If
.I INDEX
is given only the file at this position will be unpacked, otherwise all
files are extracted. The created files will be named \fIindex\fB.u7o\fR.

.TP
.BR -i " Input"
Similar to "Create", this command creates
.I FLEXFILE
from a number of input files. However, "Input" takes the names of the
input files from
.I MANIFEST
instead of the command line.

.I MANIFEST
must be a list of file names, one per line. The first name
is that of the Flex file that is to be created, the rest are the input
files used in building it.

.TP
.BR -l " List"
This command lists the contents of a
.IR FLEXFILE .
It gives you the
number of files contained within the Flex file, as well as the length
of each file.

.SH EXAMPLES
.TP
.B expack -a animals.flx bee.wav
Adds
.B bee.wav
to the Flex file
.BR animals.flx .

.TP
.B expack -a animals.flx hamster.wav snake.wav donkey.wav
Adds
.BR hamster.wav ", " snake.wav ", and " donkey.wav
to the Flex file
.BR animals.flx .

.TP
.B expack -c animals.flx duck.wav cat.wav cow.wav dog.wav
Creates a new Flex file
.B animals.flx
containing
.BR duck.wav ", " cat.wav ", " cow.wav ", and " dog.wav .

.TP
.B expack -x text.flx 17
Extracts the file at position
.BR 17 from text.flx into 17.u7o .

.TP
.B expack -x text.flx
Extracts all files from
.B text.flx
into files named
.BR 0.u7o ", " 1.u7o ", " 2.u7o ", etc."

.TP
.B expack -i wavlist
With
.B wavlist
reading:

jmsfx.flx
.br
ant.wav
.br
bee.wav
.br
cat.wav

will create a new Flex file
.B jmsfx.flx
consisting of
.BR ant.wav ", " bee.wav ", and" cat.wav .

.TP
.B expack -l text.flx
Lists the number and lenghts of files contained in
.BR text.flx .

.SH BUGS
The "Add" command
.RB ( -a )
does not work yet.

.SH AUTHOR
This manpage was written by Robert Bihlmeyer based on a text by Marc
Winterrowd. It may be freely redistributed and modified under the
terms of the GNU General Public License version 2 or higher.