Runtime Strictness

Image placeholder

Description

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.

Reviews

Review

Do you recommend this mod?

  • English

    Debug your mods!!!

    Extremely useful mod for modders which can point out usage of deprecated functions and other bad code usage better than Luanti itself. Everyone should have this mod enabled when writing a mod or game, similar to how everyone should run luacheck on their mods for static analysis.

    0 comments

Releases

2024-02-25

Download

2024-02-25 19:18 UTC

2024-02-25 🔗

No release notes

2023-09-06

Download

2023-09-06 02:13 UTC

2023-09-06 🔗

No release notes

2023-05-22

Download

2023-05-22 02:12 UTC

2023-05-22 🔗

No release notes

2023-01-15

Download

2023-01-15 02:15 UTC

2023-01-15 🔗

No release notes

2022-11-18

Download

2022-11-18 17:30 UTC

2022-11-18 🔗

No release notes

All releases