Knight docs
EN ID
GitHub

Testing a Gamemode

Catch mistakes before your players do.

Validate every file

The compiler checks syntax, types, callbacks and native names without starting the server.

bash
knight -check Gamemodes/*.sa

A clean file prints a summary:

text
ok: 16 events, 1 config blocks

Inspect the syntax tree

If an expression behaves unexpectedly, dump how the parser read it:

bash
knight -ast Gamemodes/bare.sa

Test on a local server

Before going live

Tip
Add knight -check to your CI or a pre-commit hook so a broken .sa file never reaches the server.