Scroll to navigation

ufo2map(1) tools ufo2map(1)

NAME

ufo2map - UFO: Alien Invasion map compiler

SYNOPSIS

ufo2map <param1 <subparam1> <subparam2> <...>> <param2> <...> [map]

DESCRIPTION

This is the UFO: AI map compiler.

OPTIONS

General options:

: print (this) help and exit
: priority level [unix nice level from -20 to 19 where 19 is the lowest priority]
: don't generate a footstep file
: generate two csv files describing the floors and walls found by the trace functions
: generate a trace debug file. The client can load the file to highlight map obstructions
: print statistics and quit. may be used with -check or -fix
: set verbosity. higher <int> gives more output if it is required, this should be the first option 0 - no stdout, 1 - only check/fix messages, 2 - (compile) only mapname 2 - (check/fix) mapname if findings, 4 - normal output, 5 - extra output, 6 - dump (a lot extra from BSPing)
: return Version and Revision level
: generate a material (.mat) file, do not proceed to compilation

Lighting options:

: extra light samples
: don't perform the lighting calculations, where TYPE is one of day, night, all default is all
: lightquant - lightmap resolution downscale (e.g. 4 = 1 << 4) (values between 1 and 6)
: global light scale factor
: saturation factor (e.g. 1.5 - default is 1.0)
: contrast factor (e.g. 1.05, default is 1.0)
: thread amount

Binary space partitioning (BSPing) options:

:

-blocks <xl> <yl> <xh> <yh>:

: subdivide brushes for better light effects (but higher polycount)
: surface light scaling (float value)
: entity light scaling (float value)
: don't treat details (and trans surfaces) as details
: print bsp file info
: warn if a brush has a volume lower than the specified float. brushes are tested after CSG.
: draw downward pointing faces. (so actors cannot see up through floors in first person view). default is to set SURF_NODRAW to downard faces.
:
: Add another game dir to the search directories
: skip detail brushes
: skip node face merging
: don't prune (or cut) nodes
:
:
: skip water brushes in compilation
:
: modify existing bsp file with entities from map file
: write lightmaps into tga images
: also be verbose about submodels (entities)

Mapping options:

These options operate on map file only. No bsp file is created. Output prefixed by an asterisk (*) indicates operations that would change the map file. -check : check source map, only print information. -fix : same subparameters as -check, changes the source map file.
subparameters for -check and -fix
: performs all checks and fixes. This is the default.
: includes 'lvl tex mfc mbr'. Performs all checks and fixes associated with brushes.
: performs all checks and fixes associated with entities.
: checks for brushes contained entirely within other brushes. includes coincident duplicates.
: report intersection between optimisable brushes from worldspawn and func_group entities
this is not included in all or bru as it is not always a bad thing
: test for brushes smaller than <float> unit^3. this is done without the csg
step, unlike the bsp -micro option. default 1 unit^3.
: if no levelflags for a brush or entity are set, all of them are set
: ensure set levelflag bits are uninterrupted
: assigns SURF_NODRAW to hidden faces
: warns when no texture or error texture is assigned.
ensures special textures and content/surface flags are consistent.
: ensures the contentflags are the same on each face of each brush.
: intersecting brushes with a common face: prevent textures shimmering together
July 2013 ufo2map