WurstScript icon indicating copy to clipboard operation
WurstScript copied to clipboard

[Lua] Parser Local Limit

Open KingHing opened this issue 3 years ago • 1 comments

When the map script is translated to Lua, I am hitting some sort local variable limit, which causes the map not to run in Warcraft.

In one particular package, I do have quite a number of local variables declared at Init.

KingHing avatar Sep 18 '22 01:09 KingHing

Lua has a hard limit of 200 locals per scope. You will have to use less locals or turn on optimizations which might reduce them.

Frotty avatar Sep 18 '22 07:09 Frotty