A hand with scripting through Notepad++ please?

Post » Sun Jun 17, 2012 8:35 pm

So. For the mod I'm ham fistedly crafting, I need to create a new script in order to apply a specific affect to a new race. To do this, I need to create a new script. So, I grab Notepad++. So far so good.

However, the problem lies in turning my first attempts that I've written in Notepad++ into something that the CK actually recognizes. I've followed the wiki directions, http://www.creationkit.com/Notepad%2B%2B_Setup, and the result is a dos box upchucking a long and odd path string and a "The system cannot find the path specified". I've checked the path to be sure its correct. According to everything I can see, its the right path.

So, what incredibly simple thing did I miss out of sheer ignorance? How do I make it go from code to pcs to pex(If the wiki is accurate in describing the progression)?
User avatar
Laura Simmonds
 
Posts: 3435
Joined: Wed Aug 16, 2006 10:27 pm

Post » Sun Jun 17, 2012 8:24 pm

So far I've just been compiling everything in the CK. Source code (.pcs files) are stored in skyrim/data/scripts/source, you can open those up and edit them with Notepad++. Save changes, then in the CK, open up the object your script is attached to, right click on the attached script, select "edit source", then build->compile. Or go to Gameplay -> Papyrus Script Manager, filter for your script, right click it and select "compile".
User avatar
Stephanie Nieves
 
Posts: 3407
Joined: Mon Apr 02, 2007 10:52 pm

Post » Mon Jun 18, 2012 5:14 am

Thanks, mon! Thats extremely helpful!

Between that and discovering the 'new' function in the Script Manager, I now A) have a way to go forward and B ) Feel like a complete idiot.
User avatar
Cesar Gomez
 
Posts: 3344
Joined: Thu Aug 02, 2007 11:06 am

Post » Mon Jun 18, 2012 5:57 am

Hi,

So anyone knows how to correctly setup notepad++ to be able to compile and verify scripts ?
It's possible to do it via the CK but it's very annoying when I want to edit 2 or 3 scripts at the same time...
I've read the http://www.creationkit.com/Notepad%2B%2B_Setup, and the 1st time I had the error message via a dos window.

So I reedited the path of PapyrusCompiler.exe (maybe I did something wrong the 1st time) :
-> "(...)Steam\steamapps\common\skyrim\Papyrus compiler\ScriptCompile.bat" $(FILE_NAME)
Now I dont have this dos error message anymore, but when I try to compile a script via notepad++ nothing happens, and I don't receive any error message if my script is badly written.

Any solution to be able to compile and receive error messages like in the CK scripting editor but with notepad++ ?
Thanks in advance.
User avatar
Claire Lynham
 
Posts: 3432
Joined: Mon Feb 12, 2007 9:42 am

Post » Sun Jun 17, 2012 9:16 pm

Hi,

So anyone knows how to correctly setup notepad++ to be able to compile and verify scripts ?
It's possible to do it via the CK but it's very annoying when I want to edit 2 or 3 scripts at the same time...
I've read the http://www.creationkit.com/Notepad%2B%2B_Setup, and the 1st time I had the error message via a dos window.

So I reedited the path of PapyrusCompiler.exe (maybe I did something wrong the 1st time) :
-> "(...)Steam\steamapps\common\skyrim\Papyrus compiler\ScriptCompile.bat" $(FILE_NAME)
Now I dont have this dos error message anymore, but when I try to compile a script via notepad++ nothing happens, and I don't receive any error message if my script is badly written.

Any solution to be able to compile and receive error messages like in the CK scripting editor but with notepad++ ?
Thanks in advance.

Dunno but when you press F5 in notepad and you get the run prompt you then copy in the full file path of the scriptcompile.bat file you are using and that bit at the end.

"F:\STEAM\steamapps\common\skyrim\Papyrus Compiler\ScriptCompile2.bat" $(FILE_NAME)

Also I created a copy of the "scriptCompile.bat" file and change all the file paths in there cos they weren't relevant to my system. In the .bat file you need to change the source of the papyruscompile.exe file, the input folder for scripts (source folder) and the output folder (where it chucks the compiled scripts). They are marked -i (input) and -o (output).
User avatar
Jessica Lloyd
 
Posts: 3481
Joined: Fri Aug 25, 2006 2:11 pm

Post » Mon Jun 18, 2012 5:50 am

Are you on XP or a higher OS? If you are on XP, you need to remove all the references to "(x86)".
User avatar
Rex Help
 
Posts: 3380
Joined: Mon Jun 18, 2007 6:52 pm

Post » Sun Jun 17, 2012 9:50 pm

Hmm well for me it works and all I did was following the wiki description step by step and word by word. The two things you have to pay attention to are: When setting up the run prompt don't just copy and paste what's written in the wiki instead actually give your notepad++ the correct path on your system where script_compile.bat is located. And when correcting the script_compile.bat itself do the same: Don't just copy and paste from the wiki but give it actually the correct path's as you read them on your system.

Maybe also consider following this rule: If you do not comprehend what an instruction actually has you doing. Do not follow it blindly. Instead seek to understand it's meaning and then see if that instruction should be followed.
User avatar
Syaza Ramali
 
Posts: 3466
Joined: Wed Jan 24, 2007 10:46 am


Return to V - Skyrim