Script decompiler

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
SFJake
Posts: 531
Joined: Sat Nov 03, 2007 11:28 am

Script decompiler

Post by SFJake »

Heh, okay. Simply, I wanted to edit Hexen's scripts. But the scripts in general are compiled, and not available through Doom Builder 2.

DB1 never had any trouble with it, but on a 64-bit windows 7, it tries to run deacc.exe and fails, saying its not compatible with this version of windows.

So, hum, how do I get to the scripts? Why doesn't Doom Builder 2 have that?
User avatar
Enjay
 
 
Posts: 26534
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Script decompiler

Post by Enjay »

I know that DeePsea can do it under Win7. If you want a particular map's scripts I can do it for you.

It's just a shame that there isn't a decompiler for the newer format of scripts too.
User avatar
Kappes Buur
 
 
Posts: 4120
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: Script decompiler

Post by Kappes Buur »

I've already done that for all 31 maps.
User avatar
SFJake
Posts: 531
Joined: Sat Nov 03, 2007 11:28 am

Re: Script decompiler

Post by SFJake »

Kappes Buur wrote:I've already done that for all 31 maps.
Thats perfect, thanks.
Enjay wrote:I know that DeePsea can do it under Win7. If you want a particular map's scripts I can do it for you.

It's just a shame that there isn't a decompiler for the newer format of scripts too.
There isn't? Shame. But Hexen doesn't need it, at least.

I'll use DeepSea for the expansion scripts.
disposable_username2
Posts: 168
Joined: Tue Mar 08, 2011 1:25 pm

Re: Script decompiler

Post by disposable_username2 »

Enjay wrote:It's just a shame that there isn't a decompiler for the newer format of scripts too.
What about jspenguin's listacs?
User avatar
Kappes Buur
 
 
Posts: 4120
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: Script decompiler

Post by Kappes Buur »

disposable_username2 wrote:What about jspenguin's listacs?
Listacs never worked for me, all it would do is generate the pcode:

Code: Select all

25: function 1 (2, 1, 0) -> 1
          25: PUSHSCRIPTVAR 1
          27: PUSHBYTE 1
          29: LT
          30: IFNOTGOTO 38
          35: PUSHBYTE 1
          37: RETURNVAL
          38: PUSHSCRIPTVAR 0
          40: ASSIGNSCRIPTVAR 2
          42: DECSCRIPTVAR 1
          44: PUSHSCRIPTVAR 1
          46: IFNOTGOTO 60
          51: PUSHSCRIPTVAR 0
          53: MULSCRIPTVAR 2
          55: GOTO 42
          60: PUSHSCRIPTVAR 2
          62: RETURNVAL
from an object file or BEHAVIOR lump.
disposable_username2
Posts: 168
Joined: Tue Mar 08, 2011 1:25 pm

Re: Script decompiler

Post by disposable_username2 »

Kappes Buur wrote:Listacs never worked for me, all it would do is generate the pcode
Even with the -d switch?
User avatar
Kappes Buur
 
 
Posts: 4120
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: Script decompiler

Post by Kappes Buur »

Ah, what d'yo know, that worked :)

Code: Select all

listacs -d file.o >> file.acs
Thank you disposable_username2
Locked

Return to “Editing (Archive)”