First off, full credit for this fix to Reddonquixote @ SC4D in this post:
http://sc4devotion.com/forums/index.php?topic=17967.0

In newer versions of 3DS Max, the BAT4MAX Scripts will fail due to errors. It seems that this is caused by referencing a function that no longer exists in later versions of 3DS Max.

Rather than having to modify scripts manually (quite easy in practise), the included file:

	SF_LtbL_functions.ms

has been modifed to remove the code that causes this problem. So to get BAT4MAX working, do the following:

	1) Download/Install BAT4MAX
	2) Find the install location for the scripts for BAT4MAX
	   Default = 3DS MAX INSTALL DIR...  \gamepacks\BAT\scripts
	3) Copy the included SF_LtbL_functions.ms file, overwriting the original
	   Don't be a chump, backup the original file by moving it elsewhere first.
	4) Don't forget to install the 3DS Max Gamma Fix too:
	   https://community.simtropolis.com/files/file/28998-bat4maxv5-3ds-max-2014-gamma-fix/

That should fix things right up and keep you batting with 3DS Max. :)

So far as I know, this should fix both the 2016/2017 versions of 3DS Max. But I use an earlier version not affected by this problem and just wanted to upload a fix for the sake of others to use. This isn't my find and I can't take credit for it.