Difference between revisions of "Papyrus Compiler Reference"
Added dissassembly instructions
imported>SLiesegang |
imported>Mardoxx (Added dissassembly instructions) |
||
Line 53: | Line 53: | ||
== Common Errors == | == Common Errors == | ||
Common errors emitted by the compiler are listed on [[Papyrus Compiler Errors|another page]] | Common errors emitted by the compiler are listed on [[Papyrus Compiler Errors|another page]] | ||
== Disassembling scripts with PapyrusAssembler.exe == | |||
PapyrusAssembler must be in the same directory as your pas/pex files. This does NOT convert pex files to psc files, it converts them to a semi readable assembly-like syntax. | |||
<pre>PapyrusAssembler.exe scriptWithoutExtenstion -D</pre> | |||
===Decompile all pex files in a directory=== | |||
From cmd: | |||
<pre>for /F "tokens=*" %F in ('dir /b *.pex') do PapyrusAssembler.exe %~nF -D -Q</pre> | |||
From a batch file: | |||
<pre>for /F "tokens=*" %%F in ('dir /b *.pex') do PapyrusAssembler.exe %%~nF -D -Q</pre> | |||
[[Category: Scripting]] | [[Category: Scripting]] | ||
[[Category: Papyrus]] | [[Category: Papyrus]] |