Aboogie1 Posted August 2, 2013 Share Posted August 2, 2013 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 More sharing options...
Shadeybladey Posted August 2, 2013 Share Posted August 2, 2013 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? Link to comment Share on other sites More sharing options...
Shadeybladey Posted August 2, 2013 Share Posted August 2, 2013 Try this: http://skyrim.nexusmods.com/mods/35307/ Link to comment Share on other sites More sharing options...
myztikrice Posted August 2, 2013 Share Posted August 2, 2013 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. Link to comment Share on other sites More sharing options...
Shadeybladey Posted August 2, 2013 Share Posted August 2, 2013 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 More sharing options...
CraftySentinel Posted August 2, 2013 Share Posted August 2, 2013 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 More sharing options...
Haugerud15328 Posted August 2, 2013 Share Posted August 2, 2013 I prefer notepad++, http://www.creationkit.com/Notepad%2B%2B_Setup Link to comment Share on other sites More sharing options...
Aboogie1 Posted August 2, 2013 Author Share Posted August 2, 2013 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 More sharing options...
Shadeybladey Posted August 2, 2013 Share Posted August 2, 2013 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 More sharing options...
CraftySentinel Posted August 3, 2013 Share Posted August 3, 2013 (edited) 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 August 3, 2013 by CraftySentinel Link to comment Share on other sites More sharing options...
Recommended Posts