ACC Error: ZSpecial.acs -Invalid Identifier

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.
User avatar
Silentdarkness12
Posts: 1555
Joined: Thu Aug 15, 2013 5:34 pm
Location: Plains of Pride

ACC Error: ZSpecial.acs -Invalid Identifier

Post by Silentdarkness12 »

I've been trying to compile a modified version of the ACS for Hideous Destructor. However, no matter what I do, it throws the following error at me:

Code: Select all

Line 9 in file "C:\Users\Silent_Darkness\Downloads\ACC-r3889\zspecial.acs" ...
C:\Users\Silent_Darkness\Downloads\ACC-r3889\zspecial.acs:9: Invalid identifier.
>    2:Polyobj_RotateLeft(
>                       ^
I've tried using different versions of ACC, and it throws the same error every time. I'll leave the ACS files in a zip if the problem is actually the scripts itself.

http://www.mediafire.com/file/zaeu20xtkoe9c43/HDACS.zip
Positron
Posts: 6
Joined: Wed Oct 12, 2016 4:04 am

Re: ACC Error: ZSpecial.acs -Invalid Identifier

Post by Positron »

You've #included the zcommon.acs file both in the hdacs.acs file, on line 2, and in the hdencumb.acs file, on line 1. Remove the one in hdencumb.acs and it'll work.
User avatar
Silentdarkness12
Posts: 1555
Joined: Thu Aug 15, 2013 5:34 pm
Location: Plains of Pride

Re: ACC Error: ZSpecial.acs -Invalid Identifier

Post by Silentdarkness12 »

Thanks. But while i'm here, a new error seems to have cropped up.

Code: Select all

Line 61 in file "C:\Users\SILENT~1\AppData\Local\Temp\SLADE3\hdmvt.acs" ...
C:\Users\SILENT~1\AppData\Local\Temp\SLADE3\hdmvt.acs:61: aprop_height : Identifier has not been declared.
>  if ((GetActorProperty(0,APROP_Height)<
>                                      ^
Positron
Posts: 6
Joined: Wed Oct 12, 2016 4:04 am

Re: ACC Error: ZSpecial.acs -Invalid Identifier

Post by Positron »

Since you are working on a library, you should only be compiling the hdacs.acs file. All the other files will be #included when compiling the hdacs.acs file. Your error is probably that you are compiling another file of the library, and this file lacks the #include "zcommon.acs" line, which causes the compiler to complain that it cannot find APROP_Height.
User avatar
Silentdarkness12
Posts: 1555
Joined: Thu Aug 15, 2013 5:34 pm
Location: Plains of Pride

Re: ACC Error: ZSpecial.acs -Invalid Identifier

Post by Silentdarkness12 »

Positron wrote:Since you are working on a library, you should only be compiling the hdacs.acs file. All the other files will be #included when compiling the hdacs.acs file. Your error is probably that you are compiling another file of the library, and this file lacks the #include "zcommon.acs" line, which causes the compiler to complain that it cannot find APROP_Height.
No. This error is when I try to compile HDACS.acs.
Positron
Posts: 6
Joined: Wed Oct 12, 2016 4:04 am

Re: ACC Error: ZSpecial.acs -Invalid Identifier

Post by Positron »

When I compile your library from the command prompt, after having removed the #include "zcommon.acs" line from hdencumb.acs, it works fine for me. Make sure you are using the correct zcommon.acs files.
User avatar
Silentdarkness12
Posts: 1555
Joined: Thu Aug 15, 2013 5:34 pm
Location: Plains of Pride

Re: ACC Error: ZSpecial.acs -Invalid Identifier

Post by Silentdarkness12 »

I'm compiling it in SLADE. The problem is in HDmvt.acs.

The ACC version I am using is r3889.

ZSpecial.acs:
Spoiler:
ZDefs.acs:
Spoiler:
ZWVars.acs
Spoiler:
ZCommon.acs
Spoiler:
User avatar
MaxED
Posts: 2246
Joined: Tue Feb 28, 2012 12:55 pm

Re: ACC Error: ZSpecial.acs -Invalid Identifier

Post by MaxED »

You are using ACC build from 2012. zdefs.acs, which ships with it, doesn't contain a definition for APROP_Height. Try using something newer (PROTIP: GZDB includes the current version of ACC).
User avatar
Silentdarkness12
Posts: 1555
Joined: Thu Aug 15, 2013 5:34 pm
Location: Plains of Pride

Re: ACC Error: ZSpecial.acs -Invalid Identifier

Post by Silentdarkness12 »

Seems like getting a genuinely recent build of ACC is nigh impossible, on it's own. They really need to make it easier. Apparently it's been 4 years since a standalone ACC got released.

How do I acquire the latest version? And no, i've already looked in GZDoom Builder's scripting folder. I don't see what i'm looking for, really.

And please don't direct me to Github. I have no idea whatsoever how to compile that.
User avatar
MaxED
Posts: 2246
Joined: Tue Feb 28, 2012 12:55 pm

Re: ACC Error: ZSpecial.acs -Invalid Identifier

Post by MaxED »

Look into [GZDB]\Compilers\ZDoom\...
User avatar
Silentdarkness12
Posts: 1555
Joined: Thu Aug 15, 2013 5:34 pm
Location: Plains of Pride

Re: ACC Error: ZSpecial.acs -Invalid Identifier

Post by Silentdarkness12 »

Alright. Thank you. It compiled, finally.

But uh, yeah, why IS it so hard to get a recent version of ACC?
User avatar
MaxED
Posts: 2246
Joined: Tue Feb 28, 2012 12:55 pm

Re: ACC Error: ZSpecial.acs -Invalid Identifier

Post by MaxED »

Because nobody bothered?
Also, PROTIP#2: you can compile acs libraries using GZDB.
Also, this thread may have never been created if you did :)
MAP01 (Script Editor) at 2016.10.17 21-58-49.194 [R2725].jpg
User avatar
Silentdarkness12
Posts: 1555
Joined: Thu Aug 15, 2013 5:34 pm
Location: Plains of Pride

Re: ACC Error: ZSpecial.acs -Invalid Identifier

Post by Silentdarkness12 »

Yeah, through SLADE, I guess.

A standalone version of this would be awesome, though.
User avatar
juizzysquirt
Posts: 126
Joined: Sun Jan 04, 2009 3:29 pm
Location: Knee-Deep in L.A. Meltdown

Re: ACC Error: ZSpecial.acs -Invalid Identifier

Post by juizzysquirt »

The reason you won't find any newer releases of ACC is that it's build in such way that you don't need to compile new version whenever new functions/definitions are applied, you just need updated acs-files that are bundled with it from Github. Atleast that's what I discovered when my standalone ACC didn't recognize SetMusicVolume.
User avatar
MaxED
Posts: 2246
Joined: Tue Feb 28, 2012 12:55 pm

Re: ACC Error: ZSpecial.acs -Invalid Identifier

Post by MaxED »

Except those times when you do need to compile it, that is.
Locked

Return to “Editing (Archive)”