~ubuntu-branches/ubuntu/jaunty/glbsp/jaunty

« back to all changes in this revision

Viewing changes to USAGE.txt

  • Committer: Bazaar Package Importer
  • Author(s): Darren Salt
  • Date: 2008-01-30 13:33:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080130133349-kgojg33vyiu8xbvp
Tags: 2.24-1
* New upstream release.
* Bumped the lib soname and the library package name due to one silly
  little binary incompatibility caused by changes in an exported struct.
  (Safe; nothing else currently in the archive has ever used libglbsp2.)
* Removed my patches since they're all applied upstream.
* Updated the list of documentation files.
* Build-time changes:
  - Switched from dh_movefiles to dh_install.
  - Updated my makefile to cope with upstream changes.
  - Corrected for debian-rules-ignores-make-clean-error.
  - Corrected for substvar-source-version-is-deprecated.
  - Link libglbsp, rather than glbsp, with libm and libz.
* Fixed shlibdeps. (Closes: #460387)
* Bumped standards version to 3.7.3 (no other changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
USING glBSP
3
3
===========
4
4
 
5
 
by Andrew Apted.  13th September 2005.
 
5
by Andrew Apted.  JULY 2007
6
6
 
7
7
 
8
8
Running glBSP
9
9
-------------
10
10
 
11
 
There are now two versions of glBSP: normal 'glbsp' (the text
12
 
version), and 'glBSPX' (offering a graphical interface).  This
13
 
documentation applies to the text version only.  Under Windows,
14
 
the text version must be run from the command shell.
 
11
There are two versions of glBSP: normal 'glbsp' (the text version),
 
12
and 'glBSPX' (offering a graphical interface).  This documentation
 
13
applies to the text version only.  Under Windows, the text version
 
14
must be run from the command shell (cmd.exe).
15
15
 
16
16
There are two main ways of using glBSP:
17
17
 
42
42
 
43
43
   glbsp foo.wad fred.wad simon*.wad
44
44
 
45
 
Note !  You should not give these GWA files to the DOOM port using
 
45
Note!  You should not give these GWA files to the DOOM port using
46
46
the command line (i.e. with the -file option), doing so will confuse
47
 
it and it'll probably crash.  The port will notice the GWA file
 
47
it and it'll probably crash.  The port should notice the GWA file
48
48
automatically.
49
49
 
50
50
Note 2: when using GWA mode, the output file does not contain any
86
86
Option Descriptions
87
87
-------------------
88
88
 
89
 
The following options are recognised:
90
 
 
91
 
  -q           Quieter output.  Information about each level (like
92
 
               the number of linedefs, blockmap size, etc) is not
93
 
               displayed when this option is given, and a few other
94
 
               messages are skipped.  Important messages, like
95
 
               failure to build a certain level, are still shown.
96
 
 
97
 
  -fast        Lets glBSP can cheat a bit and re-use the original node
98
 
               information to create the GL nodes, doing it much faster.
99
 
               Use this option to enable this feature.  The message
100
 
               "Using original nodes to speed things up" will be shown.
101
 
 
102
 
               The downside to reusing the original nodes is that they
103
 
               may not be as good as the ones glBSP normally creates,
104
 
               e.g. the special checks to minimise slime-trails don't
105
 
               kick in, and the -factor value doesn't have any effect.
106
 
 
107
 
  -warn        Shows extra warning messages, which detail various
108
 
               non-serious problems that glBSP has while analysing the
109
 
               level structure.  Often these warnings show a real
110
 
               problem in the level (e.g. a non-closed sector or
111
 
               invalid sidedef), so they are worth checking now and
112
 
               then.
113
 
 
114
 
  -normal      glBSP usually detects if the normal node info (i.e.
115
 
               the non-GL variety) is present: when yes, it is left
116
 
               untouched, otherwise glBSP creates it.  This option
117
 
               forces glBSP to replace the normal node data with
118
 
               newly constructed nodes.
119
 
 
120
 
  -factor <num>
121
 
               Changes the cost assigned to seg splits.  Factor can
122
 
               be any number greater than 0, larger values make seg
123
 
               splits more costly (and thus glBSP tries harder to
124
 
               avoid them), but smaller values produce better BSP
125
 
               trees.  See the section below for more info.  The
126
 
               default value is known to be a good compromise.
127
 
 
128
 
  -pack        Pack sidedefs, by detecting which sidedefs are
129
 
               identical and removing the duplicates, producing a
130
 
               smaller PWAD.
131
 
 
132
 
               NOTE: this will make your level a lot harder to edit!
133
 
               Therefore this is most useful when producing your final
134
 
               WAD for public release.
135
 
 
136
 
  -noreject    Normally glBSP will create an simple REJECT map for
137
 
               each level.  This options prevents any existing
138
 
               REJECT map, such as one time-consumingly built by
139
 
               a dedicated reject builder, from being clobbered.
 
89
The following is a list of all the available options.
 
90
Each option has a short form and a long form.
 
91
 
 
92
  -q -quiet     Quieter output.  Information about each level (like
 
93
                the number of linedefs, blockmap size, etc) is not
 
94
                displayed when this option is given, and a few other
 
95
                messages are skipped.  Important messages, like
 
96
                failure to build a certain level, are still shown.
 
97
              
 
98
  -f -fast      Allows glBSP to cheat a bit and re-use the original node
 
99
                information to create the GL nodes, doing it much faster.
 
100
                Use this option to enable this feature.  The message
 
101
                "Using original nodes to speed things up" will be shown.
 
102
 
 
103
                The downside to reusing the original nodes is that they
 
104
                may not be as good as the ones glBSP normally creates,
 
105
                e.g. the special checks to minimise slime-trails don't
 
106
                kick in, and the -factor value doesn't have any effect.
 
107
              
 
108
  -w -warn      Shows extra warning messages, which detail various
 
109
                non-serious problems that glBSP has while analysing the
 
110
                level structure.  Often these warnings show a real
 
111
                problem in the level (e.g. a non-closed sector or
 
112
                invalid sidedef), so they are worth checking now and
 
113
                then.
 
114
              
 
115
  -n -normal    glBSP usually detects if the normal node info (i.e.
 
116
                the non-GL variety) is present: when yes, it is left
 
117
                untouched, otherwise glBSP creates it.  This option
 
118
                forces glBSP to replace the normal node data with
 
119
                newly constructed nodes.
 
120
 
 
121
  -c -factor <num>
 
122
                Sets the cost assigned to seg splits.  Factor can be
 
123
                any number from 1 to 32, and larger values make seg
 
124
                splits more costly (and thus glBSP tries harder to
 
125
                avoid them), but smaller values produce better BSP
 
126
                trees.  See the section below for more info.  The
 
127
                default value is known to be a good compromise.
 
128
               
 
129
  -p -pack      Pack sidedefs, by detecting which sidedefs are
 
130
                identical and removing the duplicates, producing a
 
131
                smaller PWAD.
 
132
               
 
133
                NOTE: this will make your level a lot harder to edit!
 
134
                Therefore this is most useful when producing your final
 
135
                WAD for public release.
 
136
 
 
137
  -xr -noreject
 
138
                Normally glBSP will create an simple REJECT map for
 
139
                each level.  This options prevents any existing
 
140
                REJECT map, such as one time-consumingly built by
 
141
                a dedicated reject builder, from being clobbered.
140
142
 
141
143
These options are rarely needed:
142
144
 
143
 
  -v1 .. -v5   Specify the version of the "GL Nodes" spec to use.
144
 
               The default is -v2.  Using -v1 produces an obsolete
145
 
               format.  Giving -v3 or -v5 will force certain lumps
146
 
               to use the new formats, but is only useful for testing
147
 
               since glBSP will automatically switch to V5 format
148
 
               when certain limits are exceeded.
149
 
 
150
 
  -loadall     glBSP normally tries to copy lumps from the input
151
 
               WAD file to the output file instead of loading them
152
 
               into memory.  This allows you to run glBSP on very
153
 
               large WADS (e.g. 15 MB for DOOM II) on a low memory
154
 
               machine.
155
 
 
156
 
               This option causes everything from the input file to be
157
 
               loaded into memory.  This allows you to run glBSP using
158
 
               the same file for both input and output, but I strongly
159
 
               recommend _against_ it: you could lose your original
160
 
               WAD if something goes wrong (and you know Murphy...).
161
 
 
162
 
  -noprog      Turn off the progress indicator.
163
 
 
164
 
  -nonormal    Forces glBSP to not create the normal node information
165
 
               when it detects that it is absent.
166
 
 
167
 
  -forcegwa    Normally glBSP will automatically use GWA mode if the
168
 
               output filename is missing (i.e. no -o option) or if
169
 
               the output filename has the ".gwa" extension.  This
170
 
               option forces glBSP into GWA mode.
171
 
 
172
 
  -prunesec    Removes any unused sectors found in the level.  Only
173
 
               works when normal nodes are being built.  This is
174
 
               not done by default since some scripting languages
175
 
               (Fragglescript, old versions of RTS) refer directly
176
 
               to the sector numbers and removing even one will
177
 
               change all the numbering.
178
 
 
179
 
  -mergevert   Merge duplicate vertices at the same location into a
180
 
               single vertex.  This is usually safe, but is not done
181
 
               by default because some engines (e.g. Risen3D) need the
182
 
               duplicate vertices to stay separate for special effect.
183
 
 
184
 
  -maxblock <num>
185
 
               Sets the limit of the number of blocks the BLOCKMAP may
186
 
               contain before we truncate it.  Default is 44000.  When
187
 
               the level is too large to fit, glBSP will truncate the
188
 
               blockmap, so it covers less area on the level.  This
189
 
               means that in the parts it doesn't cover (at the outer
190
 
               edges) there is no collision detection: you can walk
191
 
               through walls and other objects and bullets/missiles
192
 
               don't hit anything.  On very large but sparse levels,
193
 
               using a larger value (e.g. 60000) may help.
194
 
 
195
 
               A more serious problem is when the blockmap overflows.
196
 
               The blockmap created would be invalid, and could crash
197
 
               the DOOM engine when used.  glBSP will create an empty
198
 
               blockmap instead, causing modern ports to build their
199
 
               own blockmap.
 
145
  -v1 .. -v5    Specify the version of the "GL Nodes" spec to use.
 
146
                The default is -v2.  Using -v1 produces an obsolete
 
147
                format.  Giving -v3 or -v5 will force certain lumps
 
148
                to use the new formats, but is only useful for testing
 
149
                since glBSP will automatically switch to V5 format
 
150
                when certain limits are exceeded.
 
151
 
 
152
  -m -mergevert
 
153
                Merge duplicate vertices at the same location into a
 
154
                single vertex.  This is usually safe, but is not done
 
155
                by default because some engines (e.g. Risen3D) need the
 
156
                duplicate vertices to stay separate for special effect.
 
157
 
 
158
  -y -windowfx  Lets glBSP detect and handle the "One-Sided Window"
 
159
                mapping trick.  This can cause problems in some engines
 
160
                so it is disabled by default.
 
161
 
 
162
  -u -prunesec  Removes any unused sectors found in the level.  Only
 
163
                works when normal nodes are being built.  This is
 
164
                not done by default since some scripting languages
 
165
                (Fragglescript, old versions of RTS) refer directly
 
166
                to the sector numbers and removing even one will
 
167
                change all the numbering.
 
168
               
 
169
  -b -maxblock <num>
 
170
                Sets the limit of the number of blocks the BLOCKMAP may
 
171
                contain before we truncate it.  Default is 16000.  When
 
172
                the level is too large to fit, glBSP will truncate the
 
173
                blockmap, so it covers less area on the level.  This
 
174
                means that in the parts it doesn't cover (at the outer
 
175
                edges) there is no collision detection: you can walk
 
176
                through walls and other objects and bullets/missiles
 
177
                don't hit anything.  On very large but sparse levels,
 
178
                using a larger value (e.g. 30000) may help.
 
179
               
 
180
                A more serious problem is when the blockmap overflows.
 
181
                The blockmap created would be invalid, and could crash
 
182
                the DOOM engine when used.  glBSP will create an empty
 
183
                blockmap instead, causing modern ports to build their
 
184
                own blockmap.
 
185
 
 
186
  -xp -noprog   Turn off the progress indicator.
 
187
 
 
188
  -xn -nonormal
 
189
                Forces glBSP to not create the normal node information
 
190
                when it detects that it is absent.
 
191
 
 
192
  -xu -noprune  Prevents glBSP from removing zero-length linedefs and
 
193
                unused sidedefs.
200
194
 
201
195
 
202
196
ZDBSP Format Nodes
203
197
------------------
204
198
 
205
199
When the normal nodes overflow, older versions of glBSP would simply
206
 
write out the invalid node data.  glBSP 2.20 will write out the node
207
 
data in the ZDBSP format (originally created for the ZDoom engine).
 
200
write out the invalid node data.  glBSP 2.20 and higher will write
 
201
out the node data in the ZDBSP format (originally created for the
 
202
ZDoom engine).
208
203
 
209
204
 
210
205
Interaction with other tools
289
284
 
290
285
  +  glBSP has Hexen support.
291
286
 
292
 
  +  glBSP packs the blockmap, and can merge identical sidedefs.
 
287
  +  glBSP compresses the blockmap, and can pack sidedefs.
293
288
 
294
289
  +  glBSP has a much more modular architecture, and can even serve as
295
290
     a plug-in for other programs.