-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathPapyrusProject.ppj
34 lines (34 loc) · 2.11 KB
/
PapyrusProject.ppj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version='1.0'?>
<PapyrusProject xmlns="PapyrusProject.xsd" Flags="TESV_Papyrus_Flags.flg" Game="sse" Output="Scripts">
<!--
These variables contain hard-coded paths because the VS Code Papyrus extension does not support environment variables: https://github.com/joelday/papyrus-lang/issues/145
Please change the values of these variables to point to folders on your PC.
Notes:
- To create the contents of the "Imports" folder yourself, download the listed mods from Nexus or elsewhere and extract them to a folder.
- In a few cases (notably UIExtensions) the authors put .psc files into .bsa, so be sure to also extract .bsa for these mods.
- The "SKSE" mod contains the contents of the Data\ folder of SKSE as downloaded from https://skse.silverlock.org/
To provide better portability, I *always* use "C:\Modding\PapyrusImports" and "C:\Modding\SkyrimScripting" in my .ppj files
Tip:
- If you want, you can make these symlinks to other folders on your PC.
- This is what I do! These paths actually link to folders in my Dropbox directory.
- To create a symlink, open PowerShell as administrator and run something like the following:
New-Item -ItemType SymbolicLink -Path "C:\Modding\PapyrusImports" -Target "C:\Users\mrowr\Dropbox\Skyrim\PapyrusImports"
-->
<Variables>
<Variable Name="ModName" Value="BIND.Examples" />
<Variable Name="Mods" Value="C:/Users/mrowr/AppData/Local/ModOrganizer/GOG Skyrim AE/Mods" />
<Variable Name="Imports" Value="D:/Dropbox/Skyrim/Papyrus Imports" />
</Variables>
<Imports>
<Import>@Imports/SKSE</Import>
<Import>@Imports/GameScripts</Import>
</Imports>
<Folders>
<Folder>./Scripts/Source</Folder>
</Folders>
<PostBuildEvent Description="Deploy scripts to Mods folder" UseInBuild="true">
<Command>(if exist "@Mods\@ModName" rmdir /s /q "@Mods\@ModName")</Command>
<Command>mkdir "@Mods\@ModName\Scripts"</Command>
<Command>xcopy /e .\Scripts "@Mods\@ModName\Scripts"</Command>
</PostBuildEvent>
</PapyrusProject>