Difference between revisions of "Notepad++ Setup"

Jump to navigation Jump to search
m
Line 51: Line 51:


The Papyrus Compiler may require the full path/filename instead of just the filename to deal with namespaces in code:
The Papyrus Compiler may require the full path/filename instead of just the filename to deal with namespaces in code:
<div style="overflow-x: scroll;">
<source lang="dos">
<source lang="dos">
npe_console -- m-
npe_console -- m-
Line 62: Line 61:
"$(papyrus)" "$(CURRENT_DIRECTORY)\$(FILE_NAME)" -f="Institute_Papyrus_Flags.flg" -i="$(include)" -o="$(scripts)"
"$(papyrus)" "$(CURRENT_DIRECTORY)\$(FILE_NAME)" -f="Institute_Papyrus_Flags.flg" -i="$(include)" -o="$(scripts)"
</source>
</source>
</div>
 
 
For Skyrim Special Edition use the following code instead:<syntaxhighlight lang="dos">
npe_console -- m-
npp_save
set local sse = C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\
set local scripts = $(sse)\Data\Scripts
set local source = $(sse)\Data\Source\Scripts
npp_console -
cd $(CURRENT_DIRECTORY)
npp_console +
"$(sse)Papyrus Compiler\PapyrusCompiler.exe" "$(FILE_NAME)" -f="TESV_Papyrus_Flags.flg" -i="$(source);" -o="$(scripts)"
</syntaxhighlight>
 
 


The select Plugins->NppExec->Console Output Filters... and set them up with these values as a place to start, then customize to your liking:
The select Plugins->NppExec->Console Output Filters... and set them up with these values as a place to start, then customize to your liking:
<div style="overflow-x: scroll;">
<source lang="text">
<source lang="text">
%FILE%(%LINE%,%CHAR%)* 0xC0 0x00 0x00
%FILE%(%LINE%,%CHAR%)* 0xC0 0x00 0x00
Line 71: Line 83:
No output generated for* 0xA0 0x00 0x00
No output generated for* 0xA0 0x00 0x00
Compilation succeeded. 0x00 0xA0 0x00
Compilation succeeded. 0x00 0xA0 0x00
</source>
</source>And finally, setup the menu item and keyboard shortcut: Plugins->NppExec->Advanced Options... and find the Menu Item section (bottom left of the dialog), give the Menu Item a name "Papyrus Compiler (Debug)" and select the script "Papyrus Compiler (Debug)". Click Add/Modify and it will tell you to restart Notepad++ for the change to take effect, so do that. Now you will have a new menu item Plugins->NppExec->Papyrus Compiler (Debug). To bind a shortcut key to that, go to Settings->Shortcut Mapper...->Plugin Commands->Papyrus Compiler (Debug) and select a shortcut. I use Ctrl-F9 since I've been doing a lot of xEdit Scripting in Object Pascal using Delphi, and that's Delphi's default compile key. But use whatever key you'd like, Notepad++ will tell you if there is a conflict.
</div>
 
And finally, setup the menu item and keyboard shortcut: Plugins->NppExec->Advanced Options... and find the Menu Item section (bottom left of the dialog), give the Menu Item a name "Papyrus Compiler (Debug)" and select the script "Papyrus Compiler (Debug)". Click Add/Modify and it will tell you to restart Notepad++ for the change to take effect, so do that. Now you will have a new menu item Plugins->NppExec->Papyrus Compiler (Debug). To bind a shortcut key to that, go to Settings->Shortcut Mapper...->Plugin Commands->Papyrus Compiler (Debug) and select a shortcut. I use Ctrl-F9 since I've been doing a lot of xEdit Scripting in Object Pascal using Delphi, and that's Delphi's default compile key. But use whatever key you'd like, Notepad++ will tell you if there is a conflict.


In the end, it should look like this:
In the end, it should look like this:
8

edits

Navigation menu