Jump to content

Photo

Notepad++, where'd it go?


  • Please log in to reply
10 replies to this topic

#1
digitaltrucker

digitaltrucker

    Old hand

  • Supporter
  • PipPipPip
  • 579 posts
I followed the instructions on the Creation Kit Wiki to setup Notepad++ to compile Papyrus scripts, along with autocomplete and syntax highlighting. I can open psc files and run>compile them (at least Notepad++ tells me it's successful). Problem is, I can't find the resulting pex file, and I assume there should be one. Am I doing something wrong, or if not, where is the pex file? I have everything in the default locations on a Win7 machine. Thanks, guys.

#2
Sjogga

Sjogga

    Old hand

  • Members
  • PipPipPip
  • 594 posts
They should end up in the Skyrim/Data/Scripts folder

#3
digitaltrucker

digitaltrucker

    Old hand

  • Supporter
  • PipPipPip
  • 579 posts
That's what I thought, but they aren't. I haven't had much luck searching for the compiled pex files either. Where within the Notepad++ files or settings can I find the specified output location?

#4
digitaltrucker

digitaltrucker

    Old hand

  • Supporter
  • PipPipPip
  • 579 posts
Pardon the bump, but this is something I'd really like to resolve and I'm having no luck so far.

#5
scrivener07

scrivener07

    Faithful poster

  • Premium Member
  • 1,201 posts
"D:\Games\Steam\SteamApps\common\skyrim\Papyrus compiler\PapyrusCompiler.exe" %1 -f="TESV_Papyrus_Flags.flg" 
-i="D:\Games\Steam\SteamApps\common\skyrim\Data\Scripts\Source" 
-o="D:\Games\Steam\SteamApps\common\skyrim\Data\Scripts"
pause

Here is a sample of my ScriptCompile.bat. Normally the file paths are on one line and then a pause on the second line but I spread it out for readability. The first path should be your compiler, the next '-i' is the input path, and the last path '-o' is the output. Triple check these and then check again.

#6
digitaltrucker

digitaltrucker

    Old hand

  • Supporter
  • PipPipPip
  • 579 posts

cd %2
if defined ProgramFiles(x86) (
"%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"
) else (
"%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


Here is my ScriptCompile.bat. Outside of the (wildcards?) it appears to be identical. Perhaps I should edit it to the actual file paths?

#7
digitaltrucker

digitaltrucker

    Old hand

  • Supporter
  • PipPipPip
  • 579 posts
*smacks head* Never mind....I figured it out (and yes, I am a doofus).

In the source code, I forgot that the very first line: Scriptname SomeScript extends ObjectReference

..that "SomeScript" needs to be identical to the actual filename of the psc (in this case SomeScript.psc).


Never mind the lunatic, carry on (and thanks for the assist, it very much helped me to figure this out....paying closer attention to what was going on in the compiler's command window helped also).


*sigh* It's been wayyyy to long since I fooled around with scripting/programming.

Edited by digitaltrucker, 16 August 2012 - 03:32 AM.


#8
digitaltrucker

digitaltrucker

    Old hand

  • Supporter
  • PipPipPip
  • 579 posts
Something else strange is happening; I can build the script through Notepad++ and it reports success, and the resulting files appear where they're supposed to be. However, no changes ever occur in the CK or in-game unless I build the script through the CK itself. This isn't a huge issue, as the creation of the source in Notepad++ is all I really was looking for....but still, is this normal?

#9
iceburg

iceburg

    Old hand

  • Supporter
  • PipPipPip
  • 903 posts

I'm having a similiar problem. While my Notepad ++ files are being compiled and work in game, even when I introduce intentional errors, my notepad ++ does not report any error and just compiles the script like normal...

 



#10
Sjogga

Sjogga

    Old hand

  • Members
  • PipPipPip
  • 594 posts

Did you save before compiling?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Page loaded in: 1.118 seconds