NexthostingLogs

Logs / Error guide / Rust

Rust: plugin won't compile (“Error while compiling”)

What the message means

Oxide and Carbon compile plugins from source code (.cs) when loading. If the code doesn't match the current Rust or framework version, this fails and the plugin stays off. The parentheses show line and column, followed by the compiler error.

What it looks like in the log

RustDedicated 2026.11.06 (2614) Server startup complete
[Oxide] 18:04 [Info] Loaded plugin Kits v4.4.2 by k1lly0u
[Oxide] 18:04 [Error] Error while compiling: BetterChat.cs(212,34): error CS1061: Type `BasePlayer' does not contain a definition for `IPlayerName'
[Oxide] 18:04 [Info] Loaded plugin Vanish v1.8.6 by Whispers88

Excerpt from an example log, marked the way the analysis marks it.

Common causes

  • Rust update (usually on wipe Thursday): the plugin uses a game function that was changed or removed.
  • Oxide or Carbon is older than the Rust update.
  • The plugin needs another plugin or a library that is missing.
  • Your own changes to the plugin code with typos.

How to fix it

  1. First update Oxide or Carbon to the latest version.
  2. Download the latest version of the plugin from its page (uMod, Codefling, Lone.Design …). After big updates, fixes often come within a day.
  3. Errors like “does not contain a definition for” mean: the function it uses no longer exists in that form – only the author can adapt the plugin.
  4. Then reload the plugin with oxide.reload <name> (Carbon: c.reload <name>).