From ed89dc487a00523d3e6e89be0d377629d5709070 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sun, 26 Mar 2017 17:07:52 -0600 Subject: [PATCH] qbsp: add docs for -convert option --- man/qbsp.1 | 4 ++++ qbsp/qbsp.cc | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/man/qbsp.1 b/man/qbsp.1 index 03897bcd..fcbae020 100644 --- a/man/qbsp.1 +++ b/man/qbsp.1 @@ -82,6 +82,10 @@ Generate a hexen2 bsp. Write only placeholder textures, to depend upon replacements. .IP "\fB\-omitdetail\fP" Detail brushes are omitted from the compile. +.IP "\fB\-convert \fP" +Convert a .MAP to a different .MAP format. fmt can be: quake, quake2, valve, bp (brush primitives). +Conversions to "quake" or "quake2" format may not be able to match the texture alignment in the source map, other conversions are lossless. +The converted map is saved to -.map. .SH "SPECIAL TEXTURE NAMES" .PP diff --git a/qbsp/qbsp.cc b/qbsp/qbsp.cc index 871d5565..2bfc98ff 100644 --- a/qbsp/qbsp.cc +++ b/qbsp/qbsp.cc @@ -634,6 +634,7 @@ PrintOptions(void) " -epsilon [n] Customize ON_EPSILON (default 0.0001)\n" " -objexport Export the map file as an .OBJ model after the CSG phase\n" " -omitdetail Detail brushes are omitted from the compile\n" + " -convert Convert a .MAP to a different .MAP format. fmt can be: quake, quake2, valve, bp (brush primitives).\n" " sourcefile .MAP file to process\n" " destfile .BSP file to output\n"); @@ -827,7 +828,7 @@ ParseOptions(char *szOptions) } else if (!Q_strcasecmp(szTok2, "bp")) { options.convertMapFormat = conversion_t::bp; } else { - Error("Invalid argument to option %s", szTok); + Error("'-convert' requires one of: quake,quake2,valve,bp"); } options.fConvertMapFormat = true;