Jump to content

Photo

What text editor should I use to open and edit papyrus scripts?


  • Please log in to reply
12 replies to this topic

#1
Aboogie1

Aboogie1

    Enthusiast

  • Members
  • PipPip
  • 100 posts

I was messing around with a mod I like in the ck. I added an object, added a menu option...then realized I would need to edit the script attached to that menu for anything to happen when it's clicked on in-game. I found the script in question and tried to open it, but the ck said the file could not be found. It was looking in the Data -> Scripts -> Source folder for a .psc file. No such file exists, but there is one .pex file by the same name in the Data -> Scripts folder. I tried to open that .pex file and found that wordpad and notepad give me an unreadable mess. I searched online and read that I need notepad++ for editing papyrus scripts. I got notepad++ and opened the .pex file but the layout is very hard to decipher. Can anyone tell me what's going on and what I need to do to edit this script?



#2
Shadeybladey

Shadeybladey

    Faithful poster

  • Premium Member
  • 1,740 posts

I'd like to know as well. It's a pain when people don't include their source code in the download.

 

I suspect it would need to be decompiled?



#3
Shadeybladey

Shadeybladey

    Faithful poster

  • Premium Member
  • 1,740 posts

Try this:

 

http://skyrim.nexusm...com/mods/35307/



#4
myztikrice

myztikrice

    Resident poster

  • Members
  • PipPipPipPipPip
  • 3,460 posts

You need the source file. Pex files are the compiled, final versions of the script. That decompiler linked can do some of the work but it doesn't get everything.



#5
Shadeybladey

Shadeybladey

    Faithful poster

  • Premium Member
  • 1,740 posts

You need the source file. Pex files are the compiled, final versions of the script. That decompiler linked can do some of the work but it doesn't get everything.

 

Ah, thanks. I only just found that link and not used it yet.

 

Is there no way of getting psc files from pex?

 

~.~



#6
CraftySentinel

CraftySentinel

    Regular

  • Members
  • PipPip
  • 69 posts

 

You need the source file. Pex files are the compiled, final versions of the script. That decompiler linked can do some of the work but it doesn't get everything.

 

Ah, thanks. I only just found that link and not used it yet.

 

Is there no way of getting psc files from pex?

 

~.~

 

Exactly what they were originally? Not unless you ask for the source from the original author :laugh:. The decompiler you mentioned above though does a good job and as long as your understanding of papyrus is decent I am sure even with the gaps, you can figure out how a script is designed.



#7
Haugerud15328

Haugerud15328

    Regular

  • Members
  • PipPip
  • 61 posts

I prefer notepad++, http://www.creationk...Notepad++_Setup



#8
Aboogie1

Aboogie1

    Enthusiast

  • Members
  • PipPip
  • 100 posts

I did a little research after my initial post and now understand what's going on. Is the (Champollion a PEX to Papyrus decompiler by li1nx) mentioned by Shadeybladey any better at decompiling than the decompile option in the CK? I got notepad++ because I thought it was necessary to open and edit .psc files in the first place. Does it also have a decompile option?



#9
Shadeybladey

Shadeybladey

    Faithful poster

  • Premium Member
  • 1,740 posts

I've not seen it, but I am exceptionally unskilled at using Notepad++.

 

But where is the decompiler in the CK? I have used the compiler for scripts I have written, but I don't recall a decompile button.

 

~.~



#10
CraftySentinel

CraftySentinel

    Regular

  • Members
  • PipPip
  • 69 posts

I did a little research after my initial post and now understand what's going on. Is the (Champollion a PEX to Papyrus decompiler by li1nx) mentioned by Shadeybladey any better at decompiling than the decompile option in the CK? I got notepad++ because I thought it was necessary to open and edit .psc files in the first place. Does it also have a decompile option?

 

AFAIK CK doesn't have an inbuilt decompiler it associates .pexs with .pscs which are of the same name, it is only able to compile (When you use edit source and save it will compile as well replacing the original pex with a new updated version) and NotePad++ doesn't have a decompile option (Unless you set up run options to an actual decompiler.)


Edited by CraftySentinel, 03 August 2013 - 04:45 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Page loaded in: 0.836 seconds