Difference between revisions of "INI Settings (Papyrus)"

1,057 bytes added ,  01:41, 19 January 2020
m
→‎sAdditionalImports: Made information consistent with https://www.creationkit.com/fallout4/index.php?title=Template:INI:Papyrus:sAdditionalImports#sAdditionalImports
imported>Plplecuyer
 
imported>DavidJCobb
m (→‎sAdditionalImports: Made information consistent with https://www.creationkit.com/fallout4/index.php?title=Template:INI:Papyrus:sAdditionalImports#sAdditionalImports)
 
(One intermediate revision by one other user not shown)
Line 119: Line 119:
  sScriptSourceFolder="../Source/Scripts/"
  sScriptSourceFolder="../Source/Scripts/"
  sAdditionalImports=""
  sAdditionalImports=""
sScriptTempFolder=""
  sScriptCompiledFolder="Data/Scripts/"
  sScriptCompiledFolder="Data/Scripts/"
  sCompilerFolder="Papyrus Compiler/"
  sCompilerFolder="Papyrus Compiler/"
Line 131: Line 132:


===sAdditionalImports===
===sAdditionalImports===
This setting lists additional folders that the editor and compiler should use. The folders are separated by semicolons, and will be used in left-to-right order, with files in folders to the right overriding ones in folders to the left. You may also specify the special "$(source)" folder to indicate where the sScriptSourceFolder should be in the list, but if it does not exist it will be added to the end. You can verify the order by looking at the folder list in the script tab of the preferences dialog. Like the source folder, paths may be absolute or relative to the editor's folder.
* '''Default:''' <Code>"$(source);.\Data\Scripts\Source\Base"</Code>
 
This setting is a list of additional folders that the editor and compiler should use.
The folders are separated by semicolons, and will be used in left-to-right order.
Any listed import folders on the left will override import folders on the right.
The order of imports may be verified by looking at the import list within the script tab of the [[Preference Window]].
Like the source folder, paths may be absolute or relative to the editor's installation directory.
 
A special variable called <Code>$(source)</Code> may be specified to indicate where the value of <Code>sScriptSourceFolder</Code> should be used.
 
'''Examples'''
<source lang="ini">
; Include a "base" folder containing all original game scripts, let DLC01 override it, and then finally override both with the source folder:
sAdditionalImports="$(Source);Data\Scripts\Source\DLC01;Data\Scripts\Source\Base"
</Source>
<BR>
<source lang="ini">
; Include all DLC imports.
sAdditionalImports="$(Source);Data\Scripts\Source\DLC06;Data\Scripts\Source\DLC05;Data\Scripts\Source\DLC04;Data\Scripts\Source\DLC03;Data\Scripts\Source\DLC02;Data\Scripts\Source\DLC01;Data\Scripts\Source\Base"
</Source>
</onlyinclude>
 
 
[[Category:CreationKit.ini]]
[[Category:Papyrus Configurations]]
 
===sScriptTempFolder===
This tells the editor where to temporarily put script files that are being edited or compiled, as well as the compiler project files that it generates. If this entry is empty (which is the default), then the editor will use a temporary folder in the user's Windows temporary folder: "C:\Users\<username>\AppData\Local\Temp\PapyrusTemp". There is generally no need to change this setting unless the drive your user folder is on is severely low on disk space, or something else is preventing the CK from writing to the folder.


'''Default''': ""
'''Default''': ""
Examples:
; Include a "base" folder containing all original game scripts, let DLC1 override it, and then finally override both with the source folder:
sAdditionalImports="Data/Scripts/Source/Base;Data/Scripts/Source/DLC1;$(Source)"


===sScriptCompiledFolder===
===sScriptCompiledFolder===
Anonymous user