Setting up sublime

Post » Tue Jun 19, 2012 8:34 pm

C:\Users\David\Desktop\papyrus>"C:\Projects\TESV\Build\PC\Papyrus compiler\PapyrusCompiler.exe" C:\Users\David\Desktop\papyrus\Test -f="TESV_Papyrus_Flags.flg" -i="C:\Projects\TESV\Build\Source\Scripts" -o="C:\Projects\TESV\Build\PC\Data\Scripts"The system cannot find the path specified.C:\Users\David\Desktop\papyrus>pausePress any key to continue . . .[Finished]

This is what sublime prints out when I hit f7 to compile. I already changed the sublime build file in the Sublime Text 2\Packages\Papyrus folder to point to the proper folder. C:\Users\David\Desktop\papyrus is the location I've saved the scripts I'm messing with, so I know where that came from. But I have no idea what this C:\Projects folder is as that doesn't exist and wasn't mentioned on the wiki at all about setting up sublime. So if someone could point me in the right direction that'd be much appreciated.
User avatar
Bonnie Clyde
 
Posts: 3409
Joined: Thu Jun 22, 2006 10:02 pm

Post » Tue Jun 19, 2012 11:55 pm

Surely someone knows?
User avatar
^_^
 
Posts: 3394
Joined: Thu May 31, 2007 12:01 am

Post » Wed Jun 20, 2012 12:43 am

Edit your Skyrim\Papyrus Compiler\ScriptCompile.bat so it points to your Skyrim directory instead of Beth's?
"%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
User avatar
Chrissie Pillinger
 
Posts: 3464
Joined: Fri Jun 16, 2006 3:26 am

Post » Tue Jun 19, 2012 11:12 pm

Thanks, that was it. The wiki entry for installing Sublime didn't mention editing anything other than the sublime build file--so I didn't know know I had to edit anything else (and I'd think the installer for the ck would be smart enough to know what directory it's in, but whatev).

So another question, when I save a file in Sublime, I can save it as a papyrus file (with a .psc extension). But even if I select that from the list of 'save as' options, it doesn't save the extension so it won't compile. I have to manually save it as "scriptname.psc" (with quotes) for it to keep its extension. Is that something I just have to do with Sublime, or am I missing something when I save it?
User avatar
Big mike
 
Posts: 3423
Joined: Fri Sep 21, 2007 6:38 pm

Post » Wed Jun 20, 2012 4:46 am

Hrmmm... I'd put the same bit about editing the .BAT on the Sublime page as the Notepad++ page, but it was removed evidently... *re-inserts it*

Extension: Do you have "Folder Options" > "View" > "Hide Extensions for known filetypes" unchecked? I just saved a test script as .PSC and all the syntax highlighting showed up. If that box is checked, it might be saving it as Script.psc.txt?
User avatar
jason worrell
 
Posts: 3345
Joined: Sat May 19, 2007 12:26 am

Post » Tue Jun 19, 2012 10:32 pm

It was checked, isn't now. But I did check the first file I saved, specifically, and even though I did select the .psc file as the extension I wanted to save it as, it didn't have an extension (hidden or not). I realized this when I went to compile my first script and it wouldn't compile. When I specifically saved it as "Test.psc" it then compiled (and looking back in the folder, I can see the original "Test" (no extension) and "Test.psc" (with extension)). I don't know, maybe I thought I clicked that file type from the list, and clicked off of it instead. But I tried it multiple times so I don't know... But I did try it again with a different file name didn't explicitly add the ".psc" on the end and it saved it properly. We'll chalk this one up to user error. So unless it happens to me again some other time, we'll mark this as solved.
User avatar
ijohnnny
 
Posts: 3412
Joined: Sun Oct 22, 2006 12:15 am


Return to V - Skyrim