Help! Notepad++ script compiler setup

Post » Fri May 23, 2014 2:20 am

Can someone please help or explain why I can't seem to compile scripts in Notepad++? I have followed the instructions on the wiki page but I cannot get it to work properly. After creating a script, and saving to my source file when I try to compile it I receive the following message in the cmd.exe window:

C:\Program Files (x86)Notepad++>"C:\Projects\TESV\Build\PC\Papyrus Compiler\PapyrusCompiler.exe"

"MyFirstScript.psc" -f="TESV_Papyrus_flg" -i="C:\Projects\TESV\Build\Source\DLC01\Scripts" -o="C:\Projects\TESV\Build\PC\Data\Scripts"

The system cannot find the path specified.

C:\Program Files (x86)\Notepad++>pause

Press any key to continue...

I created a shortcut in Notepad++ and checked the shortcuts .xml file and it is correct. I have a retail installation of TESV and all is in the default locations.

What I don't understand is the input and output directories on my installation are as follows:

C:\Program Files (x86)\Steam\SteamApps\common\Skyrim\Data\Scripts\Source

C:\Program Files\(x86)\Steam\SteamApps\common\Skyrim\Data\Scripts

(also tried specifying the above in the .xml file, but no results)

I have even tried moving the Papyrus compiler and my scripts folder to another directory, but still receive the same exact error message.

I'm at a loss!! Sorry this is so long but I don't know how to create a spoiler button or how to insert this info in a code box (not the most computer literate).

User avatar
Harinder Ghag
 
Posts: 3405
Joined: Wed Jan 17, 2007 11:26 am

Post » Fri May 23, 2014 11:59 am

You need to modify the file called ScriptCompile.bat (found in \Skyrim\Papyrus Compiler\) so that it points at the correct folders. Your ScriptCompile.bat file should contain the following (based on what you posted):

"C:\Program Files (x86)\Steam\SteamApps\common\Skyrim\Papyrus Compiler\PapyrusCompiler.exe" %1 -f="TESV_Papyrus_Flags.flg" -i="C:\Program Files (x86)\Steam\SteamApps\common\Skyrim\Data\Scripts\Source" -o="C:\Program Files (x86)\Steam\SteamApps\common\Skyrim\Data\Scripts"pause
User avatar
Shelby Huffman
 
Posts: 3454
Joined: Wed Aug 08, 2007 11:06 am

Post » Fri May 23, 2014 11:04 am

Thank you very much, That did it. I had changed the -i= and -o= prior but didn't change the first line. Rookie mistake I guess!!

I really appreciate the quick response. Been banging my head for 3 evenings trying to get it to work. Could probably just do it in the CK but it seems much easier in an external editor .

User avatar
Prohibited
 
Posts: 3293
Joined: Tue Jun 12, 2007 6:13 am


Return to V - Skyrim