Difference between revisions of "Notepad++"

4,511 bytes added ,  00:25, 18 January 2018
no edit summary
imported>Qazaaq
imported>Cobalt027
Line 85: Line 85:


If you are creating your own script from scratch, you'll need to select the language manually. "Papyrus" should be available near the bottom of the Language menu in Notepad++.
If you are creating your own script from scratch, you'll need to select the language manually. "Papyrus" should be available near the bottom of the Language menu in Notepad++.
==Compiling Debug from Notepad++==
#Open Notepad++
#Create a New File
#Paste the following:
<div style="overflow-x: scroll;">
<source lang="dos">
echo off
:: ---------------------------------------------
:: NotePad++ Run:
::  "C:\Program Files (x86)\Steam\steamapps\common\Fallout 4\Papyrus Compiler\NppScriptCompile_debug.bat" "$(FULL_CURRENT_PATH)"
:: ---------------------------------------------
set "F4HOME=C:\Program Files (x86)\Steam\SteamApps\common\Fallout 4"
set "F4Compile=%F4HOME%\Papyrus Compiler\PapyrusCompiler.exe"
set "F4SRC=%F4HOME%\Data\Scripts\Source"
:: ---------------------------------------------
:: INCLUDES
:: ---------------------------------------------
set "F4INCLUDE=%F4SRC%\Base"
if exist "%F4SRC%\DLC01" set "F4INCLUDE=%F4SRC%\DLC01;%F4INCLUDE%"
if exist "%F4SRC%\DLC02" set "F4INCLUDE=%F4SRC%\DLC02;%F4INCLUDE%"
if exist "%F4SRC%\DLC03" set "F4INCLUDE=%F4SRC%\DLC03;%F4INCLUDE%"
if exist "%F4SRC%\DLC04" set "F4INCLUDE=%F4SRC%\DLC04;%F4INCLUDE%"
if exist "%F4SRC%\DLC05" set "F4INCLUDE=%F4SRC%\DLC05;%F4INCLUDE%"
set "F4INCLUDE=%F4SRC%\User;%F4INCLUDE%"
if exist "%F4SRC%\User\Fragments" set "F4INCLUDE=%F4SRC%\User\Fragments;%F4INCLUDE%"
if exist "%F4SRC%\User\Fragments\Quests" set "F4INCLUDE=%F4SRC%\User\Fragments\Quests;%F4INCLUDE%"
if exist "%F4SRC%\User\Fragments\Terminals" set "F4INCLUDE=%F4SRC%\User\Fragments\Terminals;%F4INCLUDE%"
:: ---------------------------------------------
:: DEBUG
:: ---------------------------------------------
echo "====> DEBUG BUILD"
"%F4Compile%" %1 -f="Institute_Papyrus_Flags.flg" -i="%F4INCLUDE%" -o="%F4HOME%\Data\Scripts"
pause
</source>
</div>
#Save the file as:
<div style="overflow-x: scroll;">
<source lang="dos">
C:\Program Files (x86)\Steam\SteamApps\common\Fallout 4\Papyrus Compiler\NppScriptCompile_debug.bat
</source>
</div>
# Hit F5 (Run)
# Paste the Following into the Run Box:
<div style="overflow-x: scroll;">
<source lang="dos">
"C:\Program Files (x86)\Steam\steamapps\common\Fallout 4\Papyrus Compiler\NppScriptCompile_debug.bat" "$(FULL_CURRENT_PATH)"
</source>
</div>
# Hit Save
# Name it "Compile Papyrus Debug"
# Hit the small [x] to close the window. A new "Compile Papyrus Debug" option should now appear under the RUN menu.
==Compiling Release from Notepad++==
#Open Notepad++
#Create a New File
#Paste the following:
<div style="overflow-x: scroll;">
<source lang="dos">
echo off
:: ---------------------------------------------
:: NotePad++ Run:
::  "C:\Program Files (x86)\Steam\steamapps\common\Fallout 4\Papyrus Compiler\NppScriptCompile_release.bat" "$(FULL_CURRENT_PATH)"
:: ---------------------------------------------
set "F4HOME=C:\Program Files (x86)\Steam\SteamApps\common\Fallout 4"
set "F4Compile=%F4HOME%\Papyrus Compiler\PapyrusCompiler.exe"
set "F4SRC=%F4HOME%\Data\Scripts\Source"
:: ---------------------------------------------
:: INCLUDES
:: ---------------------------------------------
set "F4INCLUDE=%F4SRC%\Base"
if exist "%F4SRC%\DLC01" set "F4INCLUDE=%F4SRC%\DLC01;%F4INCLUDE%"
if exist "%F4SRC%\DLC02" set "F4INCLUDE=%F4SRC%\DLC02;%F4INCLUDE%"
if exist "%F4SRC%\DLC03" set "F4INCLUDE=%F4SRC%\DLC03;%F4INCLUDE%"
if exist "%F4SRC%\DLC04" set "F4INCLUDE=%F4SRC%\DLC04;%F4INCLUDE%"
if exist "%F4SRC%\DLC05" set "F4INCLUDE=%F4SRC%\DLC05;%F4INCLUDE%"
set "F4INCLUDE=%F4SRC%\User;%F4INCLUDE%"
if exist "%F4SRC%\User\Fragments" set "F4INCLUDE=%F4SRC%\User\Fragments;%F4INCLUDE%"
if exist "%F4SRC%\User\Fragments\Quests" set "F4INCLUDE=%F4SRC%\User\Fragments\Quests;%F4INCLUDE%"
if exist "%F4SRC%\User\Fragments\Terminals" set "F4INCLUDE=%F4SRC%\User\Fragments\Terminals;%F4INCLUDE%"
:: ---------------------------------------------
:: RELEASE
:: ---------------------------------------------
echo "====> RELEASE BUILD"
"%F4Compile%" %1 -f="Institute_Papyrus_Flags.flg" -i="%F4INCLUDE%" -o="%F4HOME%\Data\Scripts" -op -r -final
pause
</source>
</div>
#Save the file as:
<div style="overflow-x: scroll;">
<source lang="dos">
C:\Program Files (x86)\Steam\SteamApps\common\Fallout 4\Papyrus Compiler\NppScriptCompile_release.bat
</source>
</div>
# Hit F5 (Run)
# Paste the Following into the Run Box:
<div style="overflow-x: scroll;">
<source lang="dos">
"C:\Program Files (x86)\Steam\steamapps\common\Fallout 4\Papyrus Compiler\NppScriptCompile_release.bat" "$(FULL_CURRENT_PATH)"
</source>
</div>
# Hit Save
# Name it "Compile Papyrus Release"
# Hit the small [x] to close the window. A new "Compile Papyrus Release" option should now appear under the RUN menu.


==See Also==
==See Also==
*[[:Category:Text Editors|Other Text Editors]]
*[[:Category:Text Editors|Other Text Editors]]
Anonymous user