registerCustomTypeLua

function registerCustomTypeLua(typename, bytecount, bytestovaluefunction, valuetobytesfunction)

Registers a custom variable type based on lua scripts

The bytes to value function should be defined as "function bytestovalue (b1,b2,b3,b4)" and return an integer as result

The value to bytes function should be defined as "function valuetobytes (integer)" and return the bytes it should write