Script editor will not run

Post » Sun Jun 17, 2012 11:27 pm

When I double click on a script in the script manager I get "WINDOWS cant open this file" error that says I need to find a program to open the psc file.
User avatar
Jeffrey Lawson
 
Posts: 3485
Joined: Tue Oct 16, 2007 5:36 pm

Post » Sun Jun 17, 2012 5:53 pm

Open it with Notepad. Script files are just plain text.
User avatar
WTW
 
Posts: 3313
Joined: Wed May 30, 2007 7:48 pm

Post » Sun Jun 17, 2012 3:03 pm

Associate PSCs with Notepad, Notepad++, or Sublime Text? Whichever is the default will open if using "Open in external Editor". You can set what double clocking does with File > Preferences > Scripts > On Double Click.
User avatar
Mélida Brunet
 
Posts: 3440
Joined: Thu Mar 29, 2007 2:45 am

Post » Sun Jun 17, 2012 4:54 pm

I do not want to use an external editor, I want to use the one in the CK as it says in the Wiki.
At least for now as I am learning. I am not interested in struggling with an external editor and trying to compile outside the CK at this time.
I want to us the one IN the CK.

Please?

Open it with Notepad. Script files are just plain text.
User avatar
[Bounty][Ben]
 
Posts: 3352
Joined: Mon Jul 30, 2007 2:11 pm

Post » Mon Jun 18, 2012 1:32 am

I haven't seen a way to open a script in the editor directly from the script manager, but if you go to the object that the script is attached to, right click on the script, and select "edit source", it should do what you're wanting to do.

*Edit - Once you've got that down though, using Notepad++ is recommended. It's basically just a text editor if you leave it as is, but if you follow the instructions http://www.creationkit.com/Notepad%2B%2B_Setup, you can get it to do some handy stuff like syntax highlighting and autocomplete.
User avatar
Helen Quill
 
Posts: 3334
Joined: Fri Oct 13, 2006 1:12 pm

Post » Sun Jun 17, 2012 7:08 pm

I was getting ready to say exactly that, Imp. I was just looking at a script that way.
User avatar
Trent Theriot
 
Posts: 3395
Joined: Sat Oct 13, 2007 3:37 am

Post » Mon Jun 18, 2012 3:31 am

So you have to leave the script, save it from notepad back to the CK and THEN click on it again to compile?
There is no way to compile the script while still in the script like in Oblivion?
Seem like the Tutorial indicates all this is done while still in the CK.

(Must we really set up the external editor?)


I was hoping not to have to deal with this right away as the the set up for that (to use the external editor)

This:

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


YIKES!!!! :sad:

in the Wiki even says the instructions are not correct yet:

"TAKE NOTICE!This article has been flagged as incomplete or inaccurate. Take any information here with a grain of salt.Help out! If you have the knowledge needed, please edit this article so we can remove the Incomplete flag."
User avatar
Darren Chandler
 
Posts: 3361
Joined: Mon Jun 25, 2007 9:03 am

Post » Sun Jun 17, 2012 5:47 pm

Once you have the script open in the CK's editor, go to build->compile in the titlebar.
User avatar
stephanie eastwood
 
Posts: 3526
Joined: Thu Jun 08, 2006 1:25 pm

Post » Sun Jun 17, 2012 2:10 pm

OH, sorry I see, you are saying that my problem is I am trying to open it from the Script Manager. (seems like that would be the logical way ) but ok I will try to open it from the object it is attached to instead as you say.

Thanks!

I haven't seen a way to open a script in the editor directly from the script manager, but if you go to the object that the script is attached to, right click on the script, and select "edit source", it should do what you're wanting to do.

Once you have the script open in the CK's editor, go to build->compile in the titlebar.
User avatar
natalie mccormick
 
Posts: 3415
Joined: Fri Aug 18, 2006 8:36 am

Post » Sun Jun 17, 2012 8:59 pm

Not Notepad. If you have http://www.creationkit.com/index.php?title=Special%3ASearch&search=Notepad%2B%2B&go=Go or http://www.creationkit.com/Sublime_Text_Setup set up and associated in Windows with PSCs, you can double click a script in the script manager and compile it without jumping through hoops. You can verify this by going to the same script in an form's script list and choosing "Edit Source". Currently, are the PSC files associated with any program? If not, that's probably the issue.

You can find forms referencing a script in the Script Manager with "Use Info", double click form listed and easily get to ""Edit Source".
User avatar
Flash
 
Posts: 3541
Joined: Fri Oct 13, 2006 3:24 pm

Post » Mon Jun 18, 2012 12:36 am

The incompleteness of that page is nothing to worry about. As far as I know, it mainly refers to the fact that the language definition files are still being updated.

I'm using Notepad++ with syntax highlighting, autocompletion, and easy compilation, and it is good :D

Cipscis
User avatar
kennedy
 
Posts: 3299
Joined: Mon Oct 16, 2006 1:53 am

Post » Sun Jun 17, 2012 6:56 pm

When I first tried to open a script from the script manager, there was a dialog box presented asking if I wanted to use an external editor. I had used
TextPad previously with Oblivion Construction Set, so that's what I chose. Now I find that Notepad++ is so much better and would like to change.

However, I can not find anywhere in Preferences or in the ini files where I can change the external editor. I know that the CK has recorded this somewhere, and there must be a way to change it. Does anyone know?
User avatar
bonita mathews
 
Posts: 3405
Joined: Sun Aug 06, 2006 5:04 am

Post » Mon Jun 18, 2012 4:18 am

When I first tried to open a script from the script manager, there was a dialog box presented asking if I wanted to use an external editor. I had used
TextPad previously with Oblivion Construction Set, so that's what I chose. Now I find that Notepad++ is so much better and would like to change.

However, I can not find anywhere in Preferences or in the ini files where I can change the external editor. I know that the CK has recorded this somewhere, and there must be a way to change it. Does anyone know?

It's saved in Windows registry afaik, as the default program to open .psc files with.

You can change it via your configuration screen -> standard programs -> the option that links file extensions to programs. (I don't have an English Windows version at hand here, so I can't give exact directions to where it is.)
Or you can change it by altering the registry entry for what to open .psc files with.
User avatar
Carlitos Avila
 
Posts: 3438
Joined: Fri Sep 21, 2007 3:05 pm

Post » Mon Jun 18, 2012 12:29 am

You can change it via your configuration screen -> standard programs -> the option that links file extensions to programs.)

That did it. Thanks Houseparty.
User avatar
Verity Hurding
 
Posts: 3455
Joined: Sat Jul 22, 2006 1:29 pm


Return to V - Skyrim