wurstscript / WurstScript

Programming language and toolkit to create Warcraft III Maps
https://wurstlang.org
Apache License 2.0
226 stars 28 forks source link

[Lua] Parser Local Limit #1068

Closed KingHing closed 1 year ago

KingHing commented 1 year ago

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.

Frotty commented 1 year ago

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.