• Version 1.3.1
  • 120 Downloads

This is an updated version of the FSHWrite tool included in BAT4Max version 4.5 and 5. Changes from FSHWrite version 1.2.0 (included with BAT4Max 4.5 and 5) to version 1.3.1: Added support for writing files with 1-bit alpha as DXT1. Added a /hd command line switch to save images in an uncompressed format. Added a /zoom5hd command line switch to save only the zoom 5 images in an uncompressed format. Fixed a bug when writing the 32-bit image alpha channel. Fixed the HD image file name detection. Reduced memory usage when saving images with an opaque alpha channel. Removed the 32-bit PNG alpha support, Bat4Max uses a separate image for the alpha channel. Save uncompressed images with an opaque alpha channel as 24-bit. Set the color of transparent pixels to black, this improves compression efficiency within the SC4Model file. Various other bug fixes and improvements. The DXT1 compression change can reduce the file size of exported BATs by 40-60%. The /hd and /zoom5hd options are intended for use in small props and automata, where the DXT compression can distort fine details in the exported textures. Installation Place fshwrite.exe, squish_Win32.dll and squish_x64.dll into <3dsMax_Root>\gamepacks\BAT, overwriting the existing files. Updating BAT4Max to use the HD options I recommend that you make a backup copy of the original script and the edited script. That way you can swap out the script in use depending on whether you are exporting a building or props/automata. Buildings should generally not need to use uncompressed textures. To use the /hd and /zoom5hd commands you will need to edit BuildingMill.ms. You should use search and replace to update every fshwrite call in theĀ  BuildingMill.ms script. The fshwrite commands start with fshwrite /b:. Changing that command to fshwrite /zoom5hd /b: will make BAT4Max write the zoom 5 files as uncompressed, alternatively replacing /zoom5hd with /hd will make BAT4Max write all images as uncompressed. Source code The fshwrite source code is available on GitHub: https://github.com/0xC0000054/fshwrite