Page 1 of 2

ACS Not Compiling

Posted: Thu Jun 28, 2012 1:58 am
by BloodyAcid
I was working on some scripts, and had to change the order, so I renumbered the scripts and changed all the actions. However, upon starting Zandronum, I got a script error.

I went back to edit the script

Code: Select all

script 1 OPEN
{
    delay(35);
    Print(s:\cfMAP01);
    Delay(35);
    Print(S:\cfThe only easy map);
}
Recompiled without errors and then went to test. Still, nothing worked.

Then, I tried

Code: Select all

Script 1 OPEN
adfnkmpaslmdpaskmd[sad
daosndokaskasnd
h
...and I STILL compiled without errors.

Any help? I've reinstalled DB2 and tried updating it, but nothing worked.

RE: ACS Not Compiling

Posted: Thu Jun 28, 2012 2:07 am
by Synert
..wow.
What does Zandronum say when it gives the error?

RE: ACS Not Compiling

Posted: Thu Jun 28, 2012 3:24 am
by BloodyAcid
Unknown Script #

RE: ACS Not Compiling

Posted: Thu Jun 28, 2012 3:30 am
by Reaku
It's probably because your message script is wrong. From what I see, you're using "Print(s: \cfMap01);" And that is probably causing the issue.
You want to be using Hudmessage for something like this, heres an example taken from the ZDoom wiki.
[spoiler]script 02 (void)
{
SetFont("PICTURE");
HudMessage(s:"A"; HUDMSG_PLAIN, 0, 0, 0.1, 0.8, 3.7);
}[/spoiler]

Heres the link if you want to reference more. http://zdoom.org/wiki/HudMessage

RE: ACS Not Compiling

Posted: Thu Jun 28, 2012 3:55 am
by BloodyAcid
I've tried it for several other different types of scripts too. Using HUDMessage yields the same result too. Also, no I am NOT missing #include "zcommon.acs"

It's the same problem as: http://www.doomworld.com/vb/doom-editin ... n-zdoomwa/

Except I don't have a WARUN.exe

RE: ACS Not Compiling

Posted: Thu Jun 28, 2012 4:00 am
by Reaku
I never encountered something like this before... if you can, write the script in SLumpEd, see that makes any difference, it usually tells if a script is correct or not.

RE: ACS Not Compiling

Posted: Fri Jun 29, 2012 3:31 am
by BloodyAcid
I've never touched SlumpED before, as I use XWE and Slade... I tried completely scrapping DB and reinstalling while grabbing the latest ACC from ZDoom (151), but it still doesn't work.

RE: ACS Not Compiling

Posted: Fri Jun 29, 2012 3:42 am
by Reaku
I would try SlumpEd if you could, because it tells you script errors when you compile it and it's really helpful for writing out scripts you aren't sure with.

RE: ACS Not Compiling

Posted: Fri Jun 29, 2012 4:55 pm
by Watermelon
Aren't you missing quotation marks?
This should work:

Code: Select all

script 1 OPEN
{
    delay(35);
    Print(s: "\cfMAP01");
    Delay(35);
    Print(s: "\cfThe only easy map");
}
Get the latest ACC and try it out --> DRD team

RE: ACS Not Compiling

Posted: Fri Jun 29, 2012 5:03 pm
by Ijon Tichy
http://svn.drdteam.org/ACC/ACC-r3428.zip

this is the only build of ACC on the DRD site, so why not just link to it directly

RE: ACS Not Compiling

Posted: Fri Jun 29, 2012 5:09 pm
by Watermelon
Ijon Tichy wrote: http://svn.drdteam.org/ACC/ACC-r3428.zip

this is the only build of ACC on the DRD site, so why not just link to it directly
Because you did it for me

RE: ACS Not Compiling

Posted: Fri Jun 29, 2012 9:47 pm
by BloodyAcid
Ijon Tichy wrote: http://svn.drdteam.org/ACC/ACC-r3428.zip

this is the only build of ACC on the DRD site, so why not just link to it directly
Makes no difference to my problem. I'm still typing in gibberish, and DB recognizes it as a completely legitimate code.

RE: ACS Not Compiling

Posted: Fri Jun 29, 2012 9:52 pm
by Qent
Is it possible to share the WAD?

RE: ACS Not Compiling

Posted: Fri Jun 29, 2012 9:58 pm
by BloodyAcid
I made a new map (Skulltag, Doom in Hexen). Square + Player.

http://www.mediafire.com/?a6a7u9ol68fw00d

From this video: http://www.youtube.com/watch?v=sS4g_Powors

I have to make a new -> Skulltag ACS script first

RE: ACS Not Compiling

Posted: Sat Jun 30, 2012 4:16 am
by Watermelon
BloodyAcid wrote:
Ijon Tichy wrote: http://svn.drdteam.org/ACC/ACC-r3428.zip

this is the only build of ACC on the DRD site, so why not just link to it directly
Makes no difference to my problem. I'm still typing in gibberish, and DB recognizes it as a completely legitimate code.
Do it from the command line with the acc.exe from the link provided to you and tell us what happens.

RE: ACS Not Compiling

Posted: Sat Jun 30, 2012 2:09 pm
by Qent
I opened the map in Doom Builder 2 and just tried to compile the ACS. It gave me an error on the missing semicolon. Once I fixed that and tested the map, the script worked correctly.

Could it be that something happened to the acc.exe that DB2 uses?

RE: ACS Not Compiling

Posted: Sat Jun 30, 2012 4:15 pm
by StrikerMan780
Try this:

Code: Select all

#include "zcommon.acs"
// ^ This line is important!
script 1 OPEN
{
    delay(35);
    Print(s:"\cfMAP01");
    Delay(35);
    Print(S:"\cfThe only easy map");
}
And if that doesn't work, try this:

Code: Select all

#include "zcommon.acs"
// ^ This line is important!
script 1 ENTER
{
    delay(35);
    Print(s:"\cfMAP01");
    Delay(35);
    Print(S:"\cfThe only easy map");
}

RE: ACS Not Compiling

Posted: Sat Jun 30, 2012 5:30 pm
by BloodyAcid
Qent wrote: I opened the map in Doom Builder 2 and just tried to compile the ACS. It gave me an error on the missing semicolon. Once I fixed that and tested the map, the script worked correctly.

Could it be that something happened to the acc.exe that DB2 uses?
I've already tried the updated ACC that Ijon Tichy provided.
StrikerMan780 wrote: <Code>
Maybe I should just edit the first post. It has absolutely nothing to do with my script. I merely forgot to paste that section. My problem lies with DoomBuilder recognizing shit as code.
------------------------------------------------------

Ok, I've got something working. I made my scripts, dragged and dropped it into acc.exe, and it spat out a .o file. I imported it into Slade and renamed it as BEHAVIOR. Then it worked. Now that my problem is partially solved, I know that my problem lies with DB2, and its inability to use acc.exe

RE: ACS Not Compiling

Posted: Sat Jun 30, 2012 7:36 pm
by StrikerMan780
Are you running Windows Vista or 7? Run DB2 as administrator.

RE: ACS Not Compiling

Posted: Sat Jun 30, 2012 9:58 pm
by BloodyAcid
Hmm, I get this error now: Compiler "skulltag_acc" is defined more than once. The first definition in acc.cfg will be used.

Also, running DB2 (on Vista) as Admin made no difference to my problem.