Difference between revisions of "Sublime Text Setup"

1,374 bytes removed ,  13:23, 14 August 2012
Latest version of sublime integration doesn't need the batch file anymore.
imported>JustinOther
m (→‎Quick Compile: F7 or Ctrl+B.)
imported>SLiesegang
(Latest version of sublime integration doesn't need the batch file anymore.)
Line 8: Line 8:


==Quick Compile==
==Quick Compile==
Assuming that your copy of the Papyrus Compiler and its associated batch files are in their default locations and "Tools" > "Build System" > "Papyrus" has been selected, you should be able to hit F7 or Ctrl+B while looking at a Papyrus file to run it through the compiler. (The output will appear in the bottom panel, so be sure to check for any errors!) If you have any problems, look at <code>%AppData%\Roaming\Sublime Text 2\Packages\Papyrus\Papyrus.sublime-build</code> and make sure the path to your compile batch file is correct.
Assuming that your copy of the Papyrus Compiler and its associated batch files are in their default locations and "Tools" > "Build System" > "Papyrus" has been selected, you should be able to hit F7 or Ctrl+B while looking at a Papyrus file to run it through the compiler. (The output will appear in the bottom panel, so be sure to check for any errors!)


*NOTE: By default and after any Creation Kit updates, you'll find the batch file will not work initially as it's pointed to Bethesda's developer directory. To set it up for your Skyrim installation, Right-Click > Edit "Skyrim\Papyrus Compiler\ScriptCompile.bat" and make sure its filepaths are pointed to your Skyrim. One of the below, in its entirety, should work for a default Skyrim installation (Steam folder) on x86 or x64 Windows Vista/7:
For 64-Bit (If you have a "C:\Program Files(x86)" folder)
<div style="overflow-x: scroll;"><source lang="xml">"%ProgramFiles(x86)%\Steam\SteamApps\Common\Skyrim\Papyrus Compiler\PapyrusCompiler.exe" %1 -f="TESV_Papyrus_Flags.flg" -i="%ProgramFiles(x86)%\Steam\SteamApps\Common\Skyrim\Data\Scripts\Source" -o="%ProgramFiles(x86)%\Steam\SteamApps\Common\Skyrim\Data\Scripts"
Pause</source></div>
For 32-Bit Win XP, use the below:<div style="overflow-x: scroll;"><source lang="xml">"%ProgramFiles%\Steam\SteamApps\Common\Skyrim\Papyrus Compiler\PapyrusCompiler.exe" %1 -f="TESV_Papyrus_Flags.flg" -i="%ProgramFiles%\Steam\SteamApps\Common\Skyrim\Data\Scripts\Source" -o="%ProgramFiles%\Steam\SteamApps\Common\Skyrim\Data\Scripts"
Pause</source></div>
*See [[Papyrus_Compiler_Reference|Papyrus Compiler Reference]] for more information.
*See [[Papyrus_Compiler_Reference|Papyrus Compiler Reference]] for more information.


Anonymous user