Hi David,
> I thought unpack was a builtin and has been in Lua for, basically, forever.
Lua 5.2 changed unpack to table.unpack. If you need to have the same script run under Lua 5.1, 5.2, and 5.3, you may want to use
local unpack = table.unpack or unpack
Paul.