Papyrus API - Compile and Decompile Papyrus Files

⭐ — (27 endorsements) 📥 308 downloads 📌 v1.2.1 📅 11/30/2023
⚪ Last updated 2023

By FrostWyrm98 · Modders Resources

⬇ Download Mod Source: Nexus Mods ↗ 📅 Updated: 12/4/2023 📅 Created: 11/30/2023
⚠️ Install Order · 2 steps
1🛠️ SFSE — Starfield Script Extender Download ↗
2🔧 Community Patch — Starfield Community Patch Download ↗

Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.

🔍 Analysis

  • 🏆 #27 of 29 Modders Resources mods in this game by downloads

📋 About This Mod

Compile and deploy your papyrus scripts in two short words!Basic command line application for compiling (.psc) / decompiling Papyrus (.pex) files

Papyrus API

Basic command line application for compiling (.psc) / decompiling Papyrus (.pex) files

Source Available Here (C#): https://gist.github.com/fromanan/7a05da7b153d0b99dd8307f623cd0375

This is a simplified wrapper for the Caprica and Champollion projects by @Orvid on GitHub

- Caprica: https://github.com/Orvid/Caprica

- Champollion: https://github.com/Orvid/Champollion

All credit for the Compiler/Decompiler to Orvid and the Caprica / Champollion teams, this is distributed as is and without modification. If you feel more comfortable downloading their binaries directly, click the GitHub links above and go to releases. Before running any free software online, I recommend running it through VirusTotal.com, a free website that cross-checks any uploaded files against several independent virus definitions.

This is the first tool being developed as part of my Birch Platform for Papyrus Development in C#, the full source code will be available when this releases later this year or early next year under MIT license (free, open-source, use/modify how you want with attribution)

Happy Modding! :)

Setup ///

Compiling

In order to compile, you must first decompile from source at least once. This requires that you use the Bethesda Archive Extractor (B. A. E) tool and extract the .ba2 files found in your "${GAMEROOT}\Data" folder.

Extract these to a folder you will remember: you will pass the scripts SUBFOLDER as the "--source" flag when you run the Decompiler.

After decompiling the .pex files produced from the B. A. E. using the step below, you should be able to compile your scripts as normal.

Decompiling

Extract the .pex files using B. A. E. as described above.

For decompiling, all you will need to do is pass the folder from step one as the "source" argument to the PapyrusAPI.exe. If you have not previously run PapyrusAPI (version >= 1. 2), you will need to put the --game argument as well.

By default, this will extract to the path specified at the ${BASE} variable. You may override this by passing in the "--destination" argument

Usage ///

Parameters

Parameters are specified using the style of -{char}:{value} for a single character or --{word}:{value} for a full word

For compiling, you may either specify a script name either with -n / --name or just passing a flagless argument OR specify the scripts root folder (-r / --root) and the script name with extension (-s / --script)

The simplest setup would be to have all exe's in the same folder and for example, call

.\PapyrusAPI ShipUtils

📊 Mod Details

Game
Starfield Mods
Author
FrostWyrm98
Version
1.2.1
Downloads
308
Endorsements
27
Category
Modders Resources
Created
11/30/2023
Updated
12/4/2023

🔧 How to Install Starfield Mods

Download from Nexus.

📖 Full step-by-step install guide for Starfield →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Starfield commands, item IDs, and more.

Keep browsing — more Starfield mods await

📋 All Starfield Mods 🏆 Top 25 📂 More Modders Resources 👤 More by FrostWyrm98 🔎 Similar Mods 🌐 Best Modders Resources (All Games) ⚠️ Fix Crashes & Errors 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods