Script decompiler

Discuss all aspects of editing for ZDoom.
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Script decompiler

Postby SFJake » Mon Sep 12, 2011 1:42 pm

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
SFJake
 
Joined: 03 Nov 2007

Re: Script decompiler

Postby Enjay » Mon Sep 12, 2011 1:56 pm

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
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: Script decompiler

Postby Kappes Buur » Mon Sep 12, 2011 2:12 pm

I've already done that for all 31 maps.
User avatar
Kappes Buur
 
 
 
Joined: 17 Jul 2003
Location: British Columbia, Canada

Re: Script decompiler

Postby SFJake » Mon Sep 12, 2011 2:23 pm

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.
User avatar
SFJake
 
Joined: 03 Nov 2007

Re: Script decompiler

Postby disposable_username2 » Tue Sep 13, 2011 9:15 am

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?
disposable_username2
 
Joined: 08 Mar 2011

Re: Script decompiler

Postby Kappes Buur » Tue Sep 13, 2011 10:31 am

disposable_username2 wrote:What about jspenguin's listacs?


Listacs never worked for me, all it would do is generate the pcode:

Code: Select allExpand view
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.
User avatar
Kappes Buur
 
 
 
Joined: 17 Jul 2003
Location: British Columbia, Canada

Re: Script decompiler

Postby disposable_username2 » Tue Sep 13, 2011 12:14 pm

Kappes Buur wrote:Listacs never worked for me, all it would do is generate the pcode
Even with the -d switch?
disposable_username2
 
Joined: 08 Mar 2011

Re: Script decompiler

Postby Kappes Buur » Tue Sep 13, 2011 1:22 pm

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

Code: Select allExpand view
listacs -d file.o >> file.acs


Thank you disposable_username2
User avatar
Kappes Buur
 
 
 
Joined: 17 Jul 2003
Location: British Columbia, Canada


Return to Editing (Archive)

Who is online

Users browsing this forum: No registered users and 3 guests