Hello everyone
I need help. I’ve created a module for my levels, something like that:
local M = {} local levels = { --1 { }, --2 { }, --etc up to 150 (about 20.000 lines of code) } function M.getTotLv() return #levels end function M.getLv( num ) return levels[num] end return M
Everything is fine, but when I ask about the module loaded about 3MB …
This seems to me a bit too much, also because I have other modes in mind with other levels.
I need a way to get the number of levels and to keep it from memory after it is used
What is the best way to do this?

