Undocumented? Local variable limit

I ran into a limit I wasn't expecting today, apparently you're only able to have 220 local variables in the main.lua file. Thankfully the debugger told me about the limit, but as far as I can tell it's not shared in the documentation.

I'm glad to have run into the limit, its forcing me to write more efficient code, but I didn't see it mentioned and thought I'd bring that up.

1 Like

The default in Lua is 200 but I bumped it up a bit for Shaun. :laughing:

I'll file an issue to note that in the docs. Thanks!