In the last couple of months, we have reached over 100 stars on GitHub, updated our homepage, and as usual caught up with support for Warcraft 3 patches 1.30.2
and beyond.
class
es to contain tuple array members.DummyCaster
in addition to InstantDummyCaster
for channel based spells, and spells with delayed effects.HashList
, HashSet
and Knockback3D
.Did you know that WurstScript generates stack traces for calls of error(string msg)
from the ErrorHandling
package? You might have seen this from a wurst error before - it will show you which lines in your code were executed in what order before the error occured.
Take a look at this example:
package Test
import ErrorHandling
function foo()
new A().bar()
class A
function bar()
error("This is an error message")
init
foo()
It produces the following stacktrace ingame:
As you can see the most recent line comes at the top and the oldest at the bottom. Stack traces help tremendously with debugging errors, as it gives you a history of what happened before the error. Naturally they cause quite a performance hit. If you verified your map working well, you can disable them via the corresponding runarg -stacktraces
, which is enabled by default.