Description
In this video, I'll be showing how to make use of the Starfield Papyrus plugin to edit and compile scripts using Visual Basic Code. This will require the installation of some plugins and a custom setup for a workspace and config files.
I also have a written version of this guide available as it can be tricky to follow.
Links
VS Code Download: https://code.visualstudio.com/
Written Guide: https://darkfox127.notion.site/Starfi...
Redawt Guide: https://forums.nexusmods.com/topic/13...
Workspace Code
{
"folders": [
{
"path": "G:/Steam/steamapps/common/Starfield/Data/Scripts/Source"
},
{
"path": "."
}
],
"settings": {
"papyrus.version": "starfield"
}
}
Tasks JSON Code
{
// See https://go.microsoft.com/fwlink/?Link...
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Papyrus Compile",
"type": "process",
"command": "G:\\Steam\\steamapps\\common\\Starfield\\Tools\\Papyrus Compiler\\PapyrusCompiler.exe",
"args": ["${file}", "i=G:\\Steam\\steamapps\\common\\Starfield\\Data\\Scripts", "f=G:\\Steam\\steamapps\\common\\Starfield\\Data\\Scripts\\Source\\Starfield_Papyrus_Flags.flg", "o=${command:extension.commandvariable.file.fileDirname1Up}"],
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
Credits
A huge thanks to Redawt and simsim899 for the information and resources for piecing this together.
Time Stamps
0:00 Intro
1:15 Script Extraction
3:31 VS Code Installation
4:14 Papyrus Extension Installation
4:43 Workspace Creation
5:05 Workspace Configuration
6:10 Papyrus Extension Configuration
6:38 Command Variable Extension
6:59 JSON Tasks File Creation
8:10 New Script Creation
9:00 Vanilla Script Edits
9:29 Editing in External Editor
10:51 Outro
Community & Support
/ darkfox127
https://www.darkfox127.co.uk/contact
/ discord