ufo2map(1)
β¨ ufo2map β the map compiler era β¨
okay bestie, gather round, because this is ufo2map(1) from the tools manual section β it's the UFO: Alien Invasion map compiler and it's literally the thing that turns your map into a map. no cap. π
πΈ SYNOPSIS πΈ
ufo2map <param1 <subparam1> <subparam2> <...>> <param2> <...> [map]
π¦ DESCRIPTION π¦
This is the UFO: AI map compiler. that's it, that's the whole vibe β it compiles maps, it's giving main character energy for your whole level. π
π OPTIONS π
β¨ General options β¨
-h,--helpβ prints (this) help and then dips out. exit, bye. π-nice <prio>β priority level. it's the unix nice level, ranging from-20to19, where19is the lowest priority. so be nice about it. π«Ά-nofootstepβ don't generate a footstep file. no footsteps, silent queen behavior. π-tracefileβ generate twocsvfiles describing the floors and walls found by the trace functions.-debugfile (TODO)β generate a trace debug file. the client can load the file to highlight map obstructions. (yes bestie, it says TODO. we don't make the rules.)-stats,--statisticsβ print statistics and quit. may be used with-checkor-fix.-v,--verbosity <int>β set verbosity. higher<int>gives more output if it is required, and this should be the first option. the levels are:0β no stdout1β only check/fix messages2β (compile) only mapname2β (check/fix) mapname if findings4β normal output5β extra output6β dump (a lot extra from BSPing)
-V,--versionβ return Version and Revision level. show me the receipts. π-materialβ generate a material (.mat) file, and do not proceed to compilation. just the material, nothing else. periodt.
π Lighting options π
-extraβ extra light samples. more sparkle. β¨-nolighting TYPEβ don't perform the lighting calculations, whereTYPEis one ofday,night,all. default isall.-quantβ lightquant β lightmap resolution downscale (e.g.4 = 1 << 4) with values between1and6.-scaleβ global light scale factor.-saturationβ saturation factor (e.g.1.5β default is1.0).-contrastβ contrast factor (e.g.1.05, default is1.0).-t,--threadsβ thread amount. multitasking icon. π
π§ Binary space partitioning (BSPing) options π§
-block <xl> <yl>β (that's it, that's the whole description in the source. iconic.)-blocks <xl> <yl> <xh> <yh>β (also just vibes, no further description given.)-subdivideβ subdivide brushes for better light effects (but higher polycount). glow up tax, bestie. β¨-surfaceβ surface light scaling (float value).-entityβ entity light scaling (float value).-fulldetailβ don't treat details (and trans surfaces) as details.-infoβ print bsp file info.-micro <float>β warn if a brush has a volume lower than the specified float. brushes are tested after CSG.-nobackclipβ draw downward pointing faces. (so actors cannot see up through floors in first person view). default is to setSURF_NODRAWto downard faces.-nocsgβ (no further description, she's mysterious. π)-gamedirβ Add another game dir to the search directories.-nodetailβ skip detail brushes.-nomergeβ skip node face merging.-nopruneβ don't prune (or cut) nodes.-noshareβ (no extra detail given.)-notjuncβ (no extra detail given.)-nowaterβ skip water brushes in compilation. dry land only. π-noweldβ (no extra detail given.)-onlyentsβ modify existing bsp file with entities from map file.-exportlightmapsβ write lightmaps into tga images.-verboseentitiesβ also be verbose about submodels (entities).
π Mapping options π
These options operate on the 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, but changes the source map file.
π subparameters for -check and -fix π
allβ performs all checks and fixes. This is the default.bru brushesβ includeslvl tex mfc mbr. Performs all checks and fixes associated with brushes.ent entitiesβ performs all checks and fixes associated with entities.con containedβ checks for brushes contained entirely within other brushes. includes coincident duplicates.isc intersectionβ report intersection between optimisable brushes from worldspawn and func_group entities.- this is not included in
allorbruas it is not always a bad thing.
- this is not included in
mbr microbrush <float>β test for brushes smaller than<float>unit^3. this is done without the csg step, unlike the bsp-microoption. default1unit^3.lvl levelflagsβ if no levelflags for a brush or entity are set, all of them are set.flv filllevelflagsβ ensure set levelflag bits are uninterrupted.ndr nodrawsβ assignsSURF_NODRAWto hidden faces.tex texturesβ warns when no texture or error texture is assigned.- ensures special textures and content/surface flags are consistent.
mfc mixedfacecontentsβ ensures the contentflags are the same on each face of each brush.zft zfightingβ intersecting brushes with a common face: prevent textures shimmering together.
and that's the whole page bestie, we ate and left no crumbs π
this was ufo2map, version-era July 2013, out here doing the absolute most for the tools manual. slay. πβ¨π¦
π¦ where this page comes from
- debian bookworm: ufoai-tools 2.5-7 Β· GPL-2.0-or-later
- debian trixie: ufoai-tools 2.5-8 Β· GPL-2.0-or-later
- ubuntu jammy: ufoai-tools 2.5-6 Β· GPL-2.0-or-later
- ubuntu noble: ufoai-tools 2.5-7build3 Β· GPL-2.0-or-later
- ubuntu questing: ufoai-tools 2.5-8build1
- ubuntu resolute: ufoai-tools 2.5-9ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: ufoai-tools 2.5-11 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms