-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSkyrimScripts.ppj
More file actions
46 lines (46 loc) · 3.01 KB
/
SkyrimScripts.ppj
File metadata and controls
46 lines (46 loc) · 3.01 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version='1.0'?>
<PapyrusProject xmlns="PapyrusProject.xsd" Flags="TESV_Papyrus_Flags.flg" Game="sse" Output="build/Papyrus">
<!--
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="SkyUnit" />
<Variable Name="ExamplesModName" Value="SkyUnit.Examples" />
<Variable Name="Mods" Value="C:\Modding\Mods" />
<Variable Name="Imports" Value="C:\Modding\PapyrusImports" />
</Variables>
<Imports>
<Import>./Examples</Import>
<Import>.</Import>
<Import>@Imports\SKSE\Scripts\Source</Import>
<Import>C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Scripts\Source</Import>
</Imports>
<Folders>
<Folder>./Examples</Folder>
<Folder>.</Folder>
</Folders>
<PostBuildEvent Description="Deploy scripts to Mods folder" UseInBuild="true">
<!-- Push SkyUnit scripts to mod folder (including .psc for packaging) -->
<Command>(if exist "@Mods\@ModName\Scripts" rmdir /s /q "@Mods\@ModName\Scripts")</Command>
<Command>(if exist "@Mods\@ModName\Source" rmdir /s /q "@Mods\@ModName\Source")</Command>
<Command>mkdir "@Mods\@ModName\Scripts\Source"</Command>
<Command>mkdir "@Mods\@ModName\Source\Scripts"</Command>
<Command>xcopy SkyUnit.psc "@Mods\@ModName\Scripts\Source\"</Command>
<Command>xcopy SkyUnit.psc "@Mods\@ModName\Source\Scripts\"</Command>
<!-- Push the example papyrus unit test .pex scripts (actually just all scripts) to an example mod -->
<Command>(if exist "@Mods\@ExamplesModName\Scripts" rmdir /s /q "@Mods\@ExamplesModName\Scripts")</Command>
<Command>mkdir "@Mods\@ExamplesModName\Scripts"</Command>
<Command>xcopy /e .\Build\Papyrus "@Mods\@ExamplesModName\Scripts"</Command>
</PostBuildEvent>
</PapyrusProject>