catalog.func should be catalog:func (colon instead of dot)
i.e. all catalog functions are object methods not static functions.
PS - not sure the meaning of the cryptic error message but I think this is your problem.
Thanks Rob! That cleared the error.
1 person found this helpful
You're welcome Jonathon,
And, here's my wild guess as to the meaning of the error message:
When you use a dot, the function is still being called, its just that the first argument is nil (the expected 'self' argument), and
- There are no symbols for it - thus the question mark instead of a name.
- The value is zero - thus the zero (nil == 0).
Summary: Not sure what an "upvalue" is, but it makes sense to me in this context that its referring to the missing 'self' argument.
Just a guess.