Okay, here's an idea: add LUA_ to the name of your text lump, ex. "LUA_1234". This automatically converts your text lump into a Lua lump, and should fix your problem.
Quick note: you can have less than 4 signs in your Lua lump's name, but not any more than 4, ex. "LUA_1", "LUA_12", "LUA_123".
a lua script*
There are multiple reasons for that happening. SLADE must be able to recognize the lump first before showing its type.
It usually depends on the naming scheme or where it is located.
If you're using a WAD file, the Lua lump's name must start with LUA_. The other four characters can then be anything you want, even blank.
If you're using a PK3 file, the Lua lump must either have the .lua extension at the end, or be located within the Lua folder.
Note that sometimes you need to edit the lump first then save it, or even close then reopen the archive, before SLADE actually recognizes the script as a Lua script.
First off, this thread is three years old. It's generally considered poor form to bump old threads.
To actually answer your question though, yes. But this is not how it's normally done. Typically, you open your mod in SLADE, you press "New Entry" followed by "View as Text" and then write your Lua script. Make sure to give it the "LUA_" prefix.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.