Decompiling Dawnguar scripts ?

Post » Sun Nov 18, 2012 1:17 am

Hey guys,

some of you might have noticed that the Dawnguard.bsa doesn't contain any script sourcres, meaning no .psc files. I know there is a a PSX decompiler (http://skyrim.nexusmods.com/mods/2909#content), which I used and I can now take a look at the script, but the tool does create a .dpsx file and no .psc. How are we supposed to edit scripts?

Renaming those .dpsx to .psc gives me an error on trying to edit the source via CK.
Recomplining the .dpsx to .psx with the compiler tool doesnt work. The CKs treats the new .psx as uncompiled.
User avatar
Taylrea Teodor
 
Posts: 3378
Joined: Sat Nov 18, 2006 12:20 am

Post » Sun Nov 18, 2012 5:52 am

You need to use pex compiler (by the same author) to compile a dpex file again. That and edit it with a HEX editor (take a look at the thread posts to learn how). You could also use the papyrus assembler that comes with the CK, which will spare you a lot of problems.
User avatar
Christine
 
Posts: 3442
Joined: Thu Dec 14, 2006 12:52 am

Post » Sat Nov 17, 2012 8:57 pm

How are we supposed to edit scripts?

Renaming those .dpsx to .psc gives me an error on trying to edit the source via CK.
Recomplining the .dpsx to .psx with the compiler tool doesnt work. The CKs treats the new .psx as uncompiled.
You're not. Not until Bethesda offer a Dawnguard CK update with sources.

Well of cause you're having problems. Did you even read the description of that utility? "A utility that decompiles PEX files into human-readable format similar to assembly languages with a touch of C syntax."

You're going to have to read this assembler-like language and write the scripts in papyrus your self. Each one of them.
User avatar
Calum Campbell
 
Posts: 3574
Joined: Tue Jul 10, 2007 7:55 am

Post » Sat Nov 17, 2012 7:20 pm

You need to use pex compiler (by the same author) to compile a dpex file again. That and edit it with a HEX editor (take a look at the thread posts to learn how). You could also use the papyrus assembler that comes with the CK, which will spare you a lot of problems.

I was trying to use it. But running the application (same with Papayrus Compiler), the window closes immediatly after opening. No error or anything it just is closed immediatly agan...
User avatar
Mark Hepworth
 
Posts: 3490
Joined: Wed Jul 11, 2007 1:51 pm

Post » Sat Nov 17, 2012 5:22 pm

Pex compiler's use is similar to the one of Pex decompiler, maybe you hadn't installed a needed resource (maybe .net framework is needed, maybe it's another thing. Not sure). PapyrusAssembler though will always work that way. it will generate files from other files. You can dissassemble pex files and assemble pas files between other options. You need to provide flags as in Linux/Msdos commands. The basic use is like this:


PapirusAssembler filename(without extension) -flag

-d disassemble
-s stripping
-q ?
-a anolisys
-v assembly
The pas file will be like filename.disassemble.pas. convert to filename.pas to filename.pas to reassemble

EDIT: Anyway, this will be immenselly difficult comparing with regular scripting. If beth provides the source codes (something I suppose they'll do) you will have a way easier time waiting for the release.
User avatar
Dean Ashcroft
 
Posts: 3566
Joined: Wed Jul 25, 2007 1:20 am

Post » Sat Nov 17, 2012 5:59 pm

Thank you all for the info. I was afraid that might be the result, but thatnks for the clarity!
User avatar
Miragel Ginza
 
Posts: 3502
Joined: Thu Dec 21, 2006 6:19 am


Return to V - Skyrim