Mod
Runtime Strictness
Disallows questionable usage of the Lua API and Lua itself to help catch errors
Runtime Strictness for Luanti Mods
Strictest consists of two components:
- Lua strictness: Will disallow string indexing and string–number coercion.
- Luanti strictness: Disallows usage of deprecated APIs and using entity-only or player-only methods on the wrong type of object.
Particularly useful when writing new mods that don't target older Luanti versions.
Configuration
strictest.action can be set to either error or log:
error: Immediately throw an error on strictness violations.log: Merely log the error (including a stacktrace).
Potentially partially redundant with the deprecated_lua_api_handling setting.
Usage
Install and enable strictest, then make sure to optionally depend on it in mod.conf.
Links
- Source: https://github.com/appgurueu/strictest/
- Forum: https://forum.luanti.org/viewtopic.php?t=28327
- Issues: https://github.com/appgurueu/strictest/issues
- Original ContentDB page: content.luanti.org/packages/LMD/strictest/
License
MIT
Development state
AS_IS
| Version | Date | Min engine | Size | Download |
|---|---|---|---|---|
| 2024-02-25 | 2024-02-25 19:18:56 | 6 KB | Download |