Files
netradiant-custom/tools/mbspc
Joel Baxter e8522ae2c9 make AAS_LoadAASFile work with zero-sized lumps
AAS_LoadAASLump will return 0/NULL in an error case. However it will also
return the input buffer pointer if length is 0, and the input buffer pointer
may be 0/NULL in the case where AAS_LoadAASLump is meant to allocate memory.

This means that it can return 0/NULL in a perfectly legal case where the lump
length is 0. Since AAS_LoadAASFile inteprets this as a fatal error, that's
bad.

I'm not sure how to best disambiguate this, but a low-touch fix is for the
caller of AAS_LoadAASLump to be OK with a returned NULL pointer if the lump
length is 0.

Also: added a missing break statement to avoid a spurious "don't know what to
do" message when using the aasinfo switch.
2019-02-10 16:24:16 +03:00
..
2019-02-10 16:17:16 +03:00
2019-02-10 01:36:18 +03:00
2019-02-10 01:36:18 +03:00
2019-02-10 01:36:18 +03:00

MBSPC - modified BSPC utility
*****************************

Copyright (C) 2012 Laszlo Menczel (laszlo.menczel@gmail.com)

Original version: Copyright (C) id Software

This is an enhanced version of the BSPC utility. It is based on version
2.1h of the source code.

Restored features:

1. Restored the capability of decompiling a BSP file to an editable MAP
file

3. Restored the capability of updating the entity list in a BSP file
using entity definitions from a text file.

New features:

1. When MBSPC is used for converting BSP files to MAP files, the correct
texture name is written for every brush side (but see Note 1.).
  
2. Added a new switch '-entlist'. This will produce a list of entity
definitions from a BSP file in an editable ASCII text file.

3. Added a new switch '-texinfo'. If you specify this switch, MBSPC writes
a simple ASCII text file (extension '.txi') containing the list of textures
and models (i.e. all shaders) used by in the BSP file specified.

Note 1.
-------
This new feature works only with Q3A BSP files (at present).

Texture alignment info (shift, scale, rotation) is not written to the
MAP file produced. It is not trivial to obtain this info from the BSP, and
I did not need it when I coded this modification, sorry. If you need this
functionality, add the necessary code.