Skyrim

File information

Last updated

Original upload

Created by

OnelessName

Uploaded by

OnelessName

Virus scan

Safe to use

About this mod

Compiler for scripts in DPEX format.

Permissions and credits
This utility compiles DPEX scripts created by using PEX Decompiler, or written from scratch using the same syntax, to PEX scripts usable by the game.

Windows version uploaded only. Tested only on Windows 7 x64 so far. Untested Linux and OSX versions are available and will upload if there are requests.

Installation
Windows: Unpack the MSI file from the RAR archive and then install it.

Known issues
Technology I used to make this utility (Titanium Desktop) worked perfectly for the decompiler but proved to be less than perfectly suitable for the compiler. I was forced to include the PHP module in the application which, aside from a larger download, will also cause problems when trying to run the compiler on machines which have normal PHP installed. To work around this issue, you can rename the PHP directory while using the compiler. This will not affect your local server as PHP is loaded into memory and the directory is no longer needed until the server is restarted. Just remember to restore the name of your PHP directory when done with the compiler or before restarting your server.
Another negative side-effect of this that the compiler will probably fail when trying to compile a lot of files at once or a single large file. I will try to port as much code which is currently written in PHP to JavaScript for the future versions. This should, hopefully, take some memory stress of the horrible PHP implementation.

Usage
Just write a script or pick one decompiled in PEX Decompiler and compile it. The compiler will create a .pex file in the same directory as the source .dpex script. When compiling a script decompiled from an original .pex with full string tables and debug info, the resulting script should be the same as the original .pex except for the two dates that appear in the compiled script and a couple of strings in the header (the name of the source file and several strings with unknown purpose).

Due to lack of time I've done only limited testing, hence the version number 0.5. I've tested recompilation of original .pex files with the first 16 scripts and file compare yielded positive results. I've only done in-game testing of altered dialoguefollowerscript.pex and it worked as expected. If you run into any bugs, oversights or other kinds of errors, please report them and I will fix them as soon as possible.

Todo
  • Labels
  • Math expressions in place of operands
  • Port as much of output code as possible to JS
  • More strict validation, maybe