Closed Username-N00b-is-not-available closed 9 months ago
It looks like it's because that script is wrong, the third line should be a:DirAtPath("sprites")
It really shouldn't crash though but I'm not sure I can do much about it as the crash was happening within sol (the c++ <-> lua binding library SLADE uses)
Thank you! So, in Lua, only the static methods are called using the dot?
Now txl1 = TextureXList.new(FORMAT_TEXTURES)
also gives a crash, while the same tried with 3
instead of the constant doesn't.
The FORMAT_TEXTURES
constant is part of the TextureXList
class, so you need to do TextureXList.new(TextureXList.FORMAT_TEXTURES)
(or just use the number 3
directly)
Also, these issues should no longer crash SLADE in 3.2.5 and instead just error out of the script, so I'm going to close this issue
SLADE Version: 3.2.4 Operating System: Windows
Issue Details: Execute the following code in the Script Manager with an open WAD or directory and get a crash: