Jump to content

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


Aboogie1

Recommended 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?

Link to comment
Share on other sites

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?

 

~.~

Link to comment
Share on other sites

 

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

 

~.~

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...