It is said that the global unpack has being changed to table.unpack at lua5.2 and 5.3. Have you fixed your code to enabled backward compatibility?