[Solved] How to compress lua to numbers

You can use string.dump, which “returns a string containing a binary representation (a binary chunk) of the given function, so that a later load on this string returns a copy of the function (but with new upvalues).” solved How to compress lua to numbers

[Solved] “Rotating” tables in Lua?

function transpose(m) local rotated = {} for c, m_1_c in ipairs(m[1]) do local col = {m_1_c} for r = 2, #m do col[r] = m[r][c] end table.insert(rotated, col) end return rotated end function rotate_CCW_90(m) local rotated = {} for c, m_1_c in ipairs(m[1]) do local col = {m_1_c} for r = 2, #m do col[r] … Read more

[Solved] Lua timer script producing all-numeric value instead of proper time

It looks like you are saving the Unix Timestamp to your file, you can try and make it human readable using an online time converter (https://time.is/Unix_time_converter) Besides this, take some time to read the os.time() implementation details on this lua page: https://www.lua.org/pil/22.1.html The time function, when called without arguments, returns the current date and time, … Read more