
QuBE --- a cheap Quake file editor  (QUake Binary Editor)

Displays and changes things in Quake's .BSP and .PAK files.  Generally to
do it you have to be a bit of a hacker, so this doesn't include much in
the way of documentation because I can assume you know what the hell
you're doing.

QuBE [options] filename

  -h	Help:	    Displays poorly-written help.
		    Example use:  qube -h

  -g    Graph:      Display the level graphically (SVGA only).
		    Example use:  qube -g test1.bsp
		    This currently can only display the things (sorry).
		    The map will be added as soon as I can figure out
		    how the hell it's stored.

  -ka	PicAdd:     Add/create/update file(s) in a .PAK file.
		    Not yet implemented.  Please don't complain; I can
		    only code so fast.

  -kl   PakList:    List the pictures in a .PAK file.
		    Example use:  qube -kl id1.pak

  -kx	PakXtract:  Extract file(s) from a .PAK file.
		    Not yet implemented.  Please don't complain; I can
		    only code so fast.

  -kX   PakXtract:  Extract *ALL* the files in a .PAK file.
		    Example use:  qube -kX id1.pak
		    You'll need a lot of disk space for this option.

  -ka	PakAdd:     Add a file to a .PAK file
		    Not yet implemented.  Please don't complain; I can
		    only code so fast.

  -pl   PicList:    List the pictures in this file.
		    Example use:  qube -pl test1.bsp

  -px   PicXtract:  Extract one picture to a BMP file.
		    Example use:  qube -px 9 1 test1.bsp
		    This example if used on TEST1.BSP will extract
		    the 1/1 version of DUNG0_4.  Since Carmack used
		    mipmapping in Quake, there are four versions of
		    every image.  You can specify the others (in this
		    case) as -px9.2, -px 9 4, and -px 9 8.

  -pX   PicXtract:  Extract all pictures to a BMP file.
		    Example use:  qube -pX test1.bsp
		    You'll need a lot of disk space for this option.

  -tl	ThingList:  Display "things" as a printed list.
		    Example use:  qube -tl test1.bsp

Why am I writing this, when I know that id will release their own tools?
I dunno.  I just want to see how they laid out the files, I guess.  I
don't guarantee that this stuff will work for you; I don't guarantee it'll
work for me!  It was just a fun hack, and if you want to use it, then use it.

I'll upgrade it as time permits.

I'll also release the source as soon as it's actually presentable; right now
it's nearly illegible.

						- Sean Werkema
						  stw113@psu.edu
						  2/27/1996

