Modhold
Skyrim SE
Freev2026.03.15

Papyrus Compiler (open source)

An open-source compiler for Bethesda's Papyrus scripting language (Skyrim SE/AE), implemented in V. Focused on faster compilation, clearer error messages, and PEX file analysis.

russo-20253 @russo-2025Credited author
Sign in to download One-click install with the free Modhold app. Get the app
Share
X Facebook Reddit

Sign in to get 25 XP when someone opens your link.

2Unique downloads
11kDownloads, all sites
22Views
0Vouches
–no scores yetScore
v2026.03.15
20 Nov 2026

V 0.0.4

New Features

  • Added version command — run papyrus version to display the current compiler version.
  • String literals are now accepted as default values for typed properties and function parameters and are automatically converted to the declared type.
    int Property MyProp = "123" Auto  ; now valid — "123" is converted to 123
    
    Int Function MyFunc(int n1, int n2 = "12")  ; "12" is converted to 12
    EndFunction
    

Improvements

  • The compiler now reports an error when a script referenced in extends or a variable type cannot be found, instead of failing silently.
  • The compiler now reports an error when two scripts with the same name are found in different source folders.
  • Added a check that the script name declared in Scriptname matches the source file name.
  • Default parameter values are now validated to be type-compatible with the declared parameter type.
  • Improved error messages to be clearer and more consistent (e.g., "undefined identifier" instead of "variable declaration not found").
  • Internal compiler errors now display a structured diagnostic message with version info, a stack trace, and instructions for reporting the issue, instead of crashing with an unhelpful message.

Fixes

  • Fixed incorrect handling of None as a default value in properties and function parameters.
  • Fixed a compiler crash when None was used in arithmetic or logical expressions (e.g., None + 1). A proper erro
v2026.03.15
20 Nov 2026

First release.