PapyrusNotepad++ difficulties.

Post » Mon Jun 18, 2012 9:17 am

I've been trying to setup Notepad++ to compile Papyrus but I keep getting an error when I try to compile. The command prompt pops up and gives this error message:


C:\Program Files (x86)\Notepad++>"C:\Projects\TESV\Build\PC\Papyrus compiler\PapyrusCompiler.exe" -f="TESV_Papyrus_Flags.flg" -i="C:\Projects\TESV\Build\Source\Scripts" -o="C:\Projects\TESV\Build\PC\Data\Scripts"
The search path cannot be find.

It's really weird as I don't even have a "C:\Projects\" directory to begin with.

(I followed this guide the guide on the creationkit wiki)
User avatar
Annika Marziniak
 
Posts: 3416
Joined: Wed Apr 18, 2007 6:22 am

Post » Mon Jun 18, 2012 7:20 pm

The guide assumes your PC is set up a specific way. You'll have to reconfigure the command line to mimic your PC's set up. Usually a -o parameter is the path you want it to store outputs in. Point it to something that does exit on your PC.
User avatar
leigh stewart
 
Posts: 3415
Joined: Mon Oct 23, 2006 8:59 am

Post » Mon Jun 18, 2012 8:04 am

But it never mentions anything related to those directories. The only thing it references is the directory of ScriptCompile.bat and that's in in the Steam folder.
User avatar
Alexxxxxx
 
Posts: 3417
Joined: Mon Jul 31, 2006 10:55 am

Post » Mon Jun 18, 2012 12:19 pm

Why is it people blindly copy/paste such stuff? The wiki article even clearly tells you to adjust the paths to your own system config. The article even has the appropriate replacements for the case you have installed Steam on Vista/Win7 under C:\Programs(x86).

Quote from the Article:
NOTE: Check Skyrim\Papyrus Compiler\ScriptCompile.bat and make sure its file paths match your installation's. The below in its entirety should work for a default Skyrim installation on x86 or x64 Windows.

Sorry for that. I'm tired a little.
Here's what you do:
  • Find ScriptCompile.bat
  • right click
  • select edit (Editor should open)
  • Change the Paths to those appropriate to your system: First path must be the full path of PapyrusCompiler.exe. Second Path must be to the "Data\Scripts\Source" folder of your Skyrim installation. Third path must be to the "Data\Scripts" Folder.
  • save
  • be happy and compile your scripts
User avatar
Donatus Uwasomba
 
Posts: 3361
Joined: Sun May 27, 2007 7:22 pm

Post » Mon Jun 18, 2012 9:22 am

Thanks Jason! It actually tried to compile now. I'm still getting an error though. The compiler is apparently unable to find this script: -f="TESV_Papyrus_Flags.flg" I've probably just typoed something.
User avatar
Charlotte Buckley
 
Posts: 3532
Joined: Fri Oct 27, 2006 11:29 am

Post » Mon Jun 18, 2012 4:28 am

Can anyone verify the replacement paths are working for 32-Bit Windows? I'm fairly certain %ProgramFiles(x86)% will point to "%SystemDrive%\Program Files\" if Win is 32-Bit, but wasn't sure/couldn't test.
User avatar
Kitana Lucas
 
Posts: 3421
Joined: Sat Aug 12, 2006 1:24 pm

Post » Mon Jun 18, 2012 4:14 pm

Thanks Jason! It actually tried to compile now. I'm still getting an error though. The compiler is apparently unable to find this script: -f="TESV_Papyrus_Flags.flg" I've probably just typoed something.

Ok, there seems to be something wrong. Any ideas? This is the full error message.

C:\Program Files (x86)\Notepad++>"C:\Program Files (x86)\Steam\steamapps\common\
skyrim\Papyrus Compiler\PapyrusCompiler.exe" -f="TESV_Papyrus_Flags.flg" -i="C:
\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source" -o="C:\P
rogram Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts"
Starting 1 compile threads for 1 files...
Compiling "-f=TESV_Papyrus_Flags.flg"...
(0,0): unable to locate script -f=TESV_Papyrus_Flags.flg
No output generated for -f=TESV_Papyrus_Flags.flg, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on -f=TESV_Papyrus_Flags.flg
User avatar
jessica robson
 
Posts: 3436
Joined: Mon Oct 09, 2006 11:54 am

Post » Mon Jun 18, 2012 10:39 am

Hmm that's strange. Lemme check my own compile.bat.

Ok checked it That's how it should be for you:




"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

Notice you've erased the %1 before -f and the pause at the end. The %1 is a placeholder marking the position at which the the programm calling the batch file inserts the name of the file to compile.
User avatar
Katey Meyer
 
Posts: 3464
Joined: Sat Dec 30, 2006 10:14 pm

Post » Mon Jun 18, 2012 7:58 pm

I haven't though, I don't know why it doesn't show there.

"%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

This is what's written in my compile.bat.
User avatar
Dorian Cozens
 
Posts: 3398
Joined: Sat May 26, 2007 9:47 am

Post » Mon Jun 18, 2012 7:27 pm

Hmm ok if that isn't the problem did you actually also include $(FILE_NAME) when you set up the "run" thingy in notepad++? That bit is important otherwise notepad++ does not pass the filename of the script on to ScriptCompile.bat. Also keep in mind that in order to be compiled your script must be saved in the Data\Scripts\Source Folder.
User avatar
Samantha Jane Adams
 
Posts: 3433
Joined: Mon Dec 04, 2006 4:00 pm

Post » Mon Jun 18, 2012 7:58 am

Can anyone verify the replacement paths are working for 32-Bit Windows? I'm fairly certain %ProgramFiles(x86)% will point to "%SystemDrive%\Program Files\" if Win is 32-Bit, but wasn't sure/couldn't test.

I'm not sure either since running on x64. For the 32bit versions of Vista and Win 7 it should work. But I've read somewhere here that for WinXP that pointer won't do and you had to actually use the full path or %SystemDrive%\Program Files\
User avatar
Cat
 
Posts: 3451
Joined: Mon Dec 18, 2006 5:10 am

Post » Mon Jun 18, 2012 2:03 pm

Hmm ok if that isn't the problem did you actually also include "$(FILE_NAME)"

Seriously? I asked a guy about this earlier and he said that that was just faulty wiki formatting showing itself. What an [censored].

Also keep in mind that in order to be compiled your script must be saved in the Data\Scripts\Source Folder.

Yea, I did that. Should it be saved in any particular format btw? Because I couldn't find the .psc format the other scripts were saved in.
User avatar
Laura Shipley
 
Posts: 3564
Joined: Thu Oct 26, 2006 4:47 am

Post » Mon Jun 18, 2012 6:00 pm

Yes the file must have the .psc ending. There is no native psc support in Notepad++ thus that wiki article is necessary and you need to give the file ending yourself when saving the script the first time.
User avatar
JLG
 
Posts: 3364
Joined: Fri Oct 19, 2007 7:42 pm

Post » Mon Jun 18, 2012 7:08 pm

It worked! Finally. Thanks so [censored] much for your patience Jason.
User avatar
how solid
 
Posts: 3434
Joined: Mon Apr 23, 2007 5:27 am

Post » Mon Jun 18, 2012 7:45 am

I'm not sure either since running on x64. For the 32bit versions of Vista and Win 7 it should work. But I've read somewhere here that for WinXP that pointer won't do and you had to actually use the full path or %SystemDrive%\Program Files\
Well, if XP (x86) chokes on %ProgramFiles(x86)%, I could put another codebox in there for people to copypasta. I guess I could test with a virtual machine, but somebody has to have 32-Bit XP?
User avatar
Charlotte X
 
Posts: 3318
Joined: Thu Dec 07, 2006 2:53 am

Post » Mon Jun 18, 2012 10:50 am

Well, if XP (x86) chokes on %ProgramFiles(x86)%, I could put another codebox in there for people to copypasta. I guess I could test with a virtual machine, but somebody has to have 32-Bit XP?

I do :P

I use %ProgramFiles% instead of %ProgramFiles(x86)%

My ScriptCompile.bat is

"%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
User avatar
dean Cutler
 
Posts: 3411
Joined: Wed Jul 18, 2007 7:29 am

Post » Mon Jun 18, 2012 3:34 pm

Thanks, Shana, but did you have to change the environmental variable to get it to work? See, if a one-size-fits-all .bat works for XP 32-Bit, there's no need to put up a variant on the Wiki...

Can you try with it with %ProgramFiles(x86)%?

[for science?]
User avatar
Alexis Acevedo
 
Posts: 3330
Joined: Sat Oct 27, 2007 8:58 pm

Post » Mon Jun 18, 2012 5:59 am

Hmm I did change it to make it work. I will check in a few hours when I arrive home just in case, but I think %ProgramFiles(x86) should only exist in 64bits versions of Windows as it says here :
http://en.wikipedia.org/wiki/Environment_variable#Examples_from_Microsoft_Windows
User avatar
lolly13
 
Posts: 3349
Joined: Tue Jul 25, 2006 11:36 am

Post » Mon Jun 18, 2012 4:51 pm

Thanks, Shana, but did you have to change the environmental variable to get it to work? See, if a one-size-fits-all .bat works for XP 32-Bit, there's no need to put up a variant on the Wiki...

Can you try with it with %ProgramFiles(x86)%?

[for science?]
Confirmed %ProgramFiles(x86)% does not exist on XP 32-Bit.
User avatar
Taylor Bakos
 
Posts: 3408
Joined: Mon Jan 15, 2007 12:05 am

Post » Mon Jun 18, 2012 6:33 am

Thanks! :)

*updates WIki*
User avatar
Cagla Cali
 
Posts: 3431
Joined: Tue Apr 10, 2007 8:36 am


Return to V - Skyrim