View ACS code in Slade 3?

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.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: View ACS code in Slade 3?

Re: View ACS code in Slade 3?

by Jack in the Nox » Tue Apr 04, 2023 12:55 pm

Hello everyone!
I am trying to open this ACS file (the extension TXT is just so I could upload it)
When I open it using the instruction you gave I get a text file reading this:

Could not open -d

Can anyone help me please? :D
Attachments
test.o.txt
(4.14 KiB) Downloaded 14 times

Re: View ACS code in Slade 3?

by Cherno » Wed Sep 11, 2019 4:52 pm

Try running it in a command window (Start-execute-"cmd") so you can see the parameters.

Re: View ACS code in Slade 3?

by ::Bloodfury:: » Wed Sep 11, 2019 2:35 pm

Thanks Kappes.

But it is not quite clear to me how to achieve this.
I downloaded all the necessary tools and latest python.

Do I need to make a batch file from a wad or a lump?

As I cannot add those lines to listacss targetline to wads or lumps as they are not executables.

And when I try to run listacs etc. It just briefly blinks the commanline window and shuts the program.

So please, If you could assist me further that would be greatly appreciated. :)

Re: View ACS code in Slade 3?

by Kappes Buur » Tue Sep 10, 2019 12:33 am

::Bloodfury:: wrote:Hi, currently makin an own addition of sorts for an existing mod.

But I kinda would have to see the ACS codes within ACS subfolder.
For the life of me I just don't know how to view them.
Using view as text just displays blank sheet with a text ACS.
I would need to have access to the code and add my own modifications
into it.

How can this be done?
It's easy enough with LISTACS, for example using a batch file such as

Code: Select all

listacs -d %1 >> %1.txt
and dragging the acs lump onto it will result in a decompiled txt file, as with GunRecoil.
Result: GunRecoil.txt

Code: Select all

#include "zcommon.acs"

script 65535 (void) // addr = 8, flags=0000
{
    SetResultValue(GetCVar("retoggle"));
    Terminate;
}

Re: View ACS code in Slade 3?

by Gez » Mon Sep 09, 2019 3:22 pm

Use the "view as text" button on those without the extension.

Re: View ACS code in Slade 3?

by ::Bloodfury:: » Mon Sep 09, 2019 2:52 pm

Tartlman wrote:
::Bloodfury:: wrote:well. I guess my only chance is to contact the author of SmoothDoom. :D
Try doing some more searching - usually, files that end with .o are the compiled files, and those that don't might be the uncompiled form.
There are few files with the .o and rest do not have it. and all seem to be compiled ones. none can be viewed.

Re: View ACS code in Slade 3?

by Cherno » Mon Sep 09, 2019 10:09 am

Void Weaver wrote:@Cherno:
Do you know other ACS decompilers aside from ListACS and Descript?
No.

Re: View ACS code in Slade 3?

by Tartlman » Mon Sep 09, 2019 9:49 am

::Bloodfury:: wrote:well. I guess my only chance is to contact the author of SmoothDoom. :D
Try doing some more searching - usually, files that end with .o are the compiled files, and those that don't might be the uncompiled form.

Re: View ACS code in Slade 3?

by Void Weaver » Sat Sep 07, 2019 8:39 pm

@Cherno:
Do you know other ACS decompilers aside from ListACS and Descript?

Re: View ACS code in Slade 3?

by ::Bloodfury:: » Sat Sep 07, 2019 2:24 pm

well. I guess my only chance is to contact the author of SmoothDoom. :D

Re: View ACS code in Slade 3?

by Cherno » Sat Sep 07, 2019 2:18 pm

You need the uncompiled ACS file. If the mod doesn't include it (which is shameful! :wink: ) then I think you are out of luck. I have never found an ACS decompiler that produces decent results.

View ACS code in Slade 3?

by ::Bloodfury:: » Sat Sep 07, 2019 1:31 pm

Hi, currently makin an own addition of sorts for an existing mod.

But I kinda would have to see the ACS codes within ACS subfolder.
For the life of me I just don't know how to view them.
Using view as text just displays blank sheet with a text ACS.
I would need to have access to the code and add my own modifications
into it.

How can this be done?

Top