ACS Not Compiling

Discuss all aspects related to modding Zandronum here.
BloodyAcid
Forum Regular
Posts: 294
Joined: Sat Jun 16, 2012 7:42 pm

ACS Not Compiling

#1

Post by BloodyAcid » Thu Jun 28, 2012 1:58 am

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.
Last edited by BloodyAcid on Thu Jun 28, 2012 1:58 am, edited 1 time in total.

Synert
Forum Regular
Posts: 228
Joined: Mon Jun 04, 2012 12:54 pm
Contact:

RE: ACS Not Compiling

#2

Post by Synert » Thu Jun 28, 2012 2:07 am

..wow.
What does Zandronum say when it gives the error?

BloodyAcid
Forum Regular
Posts: 294
Joined: Sat Jun 16, 2012 7:42 pm

RE: ACS Not Compiling

#3

Post by BloodyAcid » Thu Jun 28, 2012 3:24 am

Unknown Script #

Reaku
Forum Regular
Posts: 199
Joined: Mon Jun 11, 2012 4:03 am
Location: Crate City USA.
Contact:

RE: ACS Not Compiling

#4

Post by Reaku » Thu Jun 28, 2012 3:30 am

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
|Project releases|
http://zandronum.com/forum/showthread.php?tid=217 : Reckoning of Armageddon: Deathmatch map pack :

______________________________________________________
Early to rise, early to bed, makes a man healthy, but socially dead.

BloodyAcid
Forum Regular
Posts: 294
Joined: Sat Jun 16, 2012 7:42 pm

RE: ACS Not Compiling

#5

Post by BloodyAcid » Thu Jun 28, 2012 3:55 am

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

Reaku
Forum Regular
Posts: 199
Joined: Mon Jun 11, 2012 4:03 am
Location: Crate City USA.
Contact:

RE: ACS Not Compiling

#6

Post by Reaku » Thu Jun 28, 2012 4:00 am

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.
|Project releases|
http://zandronum.com/forum/showthread.php?tid=217 : Reckoning of Armageddon: Deathmatch map pack :

______________________________________________________
Early to rise, early to bed, makes a man healthy, but socially dead.

BloodyAcid
Forum Regular
Posts: 294
Joined: Sat Jun 16, 2012 7:42 pm

RE: ACS Not Compiling

#7

Post by BloodyAcid » Fri Jun 29, 2012 3:31 am

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.

Reaku
Forum Regular
Posts: 199
Joined: Mon Jun 11, 2012 4:03 am
Location: Crate City USA.
Contact:

RE: ACS Not Compiling

#8

Post by Reaku » Fri Jun 29, 2012 3:42 am

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.
|Project releases|
http://zandronum.com/forum/showthread.php?tid=217 : Reckoning of Armageddon: Deathmatch map pack :

______________________________________________________
Early to rise, early to bed, makes a man healthy, but socially dead.

Watermelon
Zandrone
Posts: 1244
Joined: Thu Jun 28, 2012 9:07 pm
Location: Rwanda

RE: ACS Not Compiling

#9

Post by Watermelon » Fri Jun 29, 2012 4:55 pm

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
Last edited by Watermelon on Fri Jun 29, 2012 4:57 pm, edited 1 time in total.

Ijon Tichy
Frequent Poster Miles card holder
Posts: 901
Joined: Mon Jun 04, 2012 5:07 am

RE: ACS Not Compiling

#10

Post by Ijon Tichy » Fri Jun 29, 2012 5:03 pm

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
Last edited by Ijon Tichy on Fri Jun 29, 2012 5:04 pm, edited 1 time in total.

Watermelon
Zandrone
Posts: 1244
Joined: Thu Jun 28, 2012 9:07 pm
Location: Rwanda

RE: ACS Not Compiling

#11

Post by Watermelon » Fri Jun 29, 2012 5:09 pm

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

BloodyAcid
Forum Regular
Posts: 294
Joined: Sat Jun 16, 2012 7:42 pm

RE: ACS Not Compiling

#12

Post by BloodyAcid » Fri Jun 29, 2012 9:47 pm

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.

Qent
Retired Staff / Community Team Member
Posts: 1424
Joined: Tue May 29, 2012 7:56 pm
Contact:

RE: ACS Not Compiling

#13

Post by Qent » Fri Jun 29, 2012 9:52 pm

Is it possible to share the WAD?

BloodyAcid
Forum Regular
Posts: 294
Joined: Sat Jun 16, 2012 7:42 pm

RE: ACS Not Compiling

#14

Post by BloodyAcid » Fri Jun 29, 2012 9:58 pm

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
Last edited by BloodyAcid on Fri Jun 29, 2012 10:00 pm, edited 1 time in total.

Watermelon
Zandrone
Posts: 1244
Joined: Thu Jun 28, 2012 9:07 pm
Location: Rwanda

RE: ACS Not Compiling

#15

Post by Watermelon » Sat Jun 30, 2012 4:16 am

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.

Qent
Retired Staff / Community Team Member
Posts: 1424
Joined: Tue May 29, 2012 7:56 pm
Contact:

RE: ACS Not Compiling

#16

Post by Qent » Sat Jun 30, 2012 2:09 pm

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?

User avatar
StrikerMan780
Forum Regular
Posts: 279
Joined: Tue May 29, 2012 9:16 pm
Clan: Shadow Mavericks
Clan Tag: [SM]

RE: ACS Not Compiling

#17

Post by StrikerMan780 » Sat Jun 30, 2012 4:15 pm

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");
}
Last edited by StrikerMan780 on Sat Jun 30, 2012 4:16 pm, edited 1 time in total.

BloodyAcid
Forum Regular
Posts: 294
Joined: Sat Jun 16, 2012 7:42 pm

RE: ACS Not Compiling

#18

Post by BloodyAcid » Sat Jun 30, 2012 5:30 pm

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
Last edited by BloodyAcid on Sat Jun 30, 2012 5:46 pm, edited 1 time in total.

User avatar
StrikerMan780
Forum Regular
Posts: 279
Joined: Tue May 29, 2012 9:16 pm
Clan: Shadow Mavericks
Clan Tag: [SM]

RE: ACS Not Compiling

#19

Post by StrikerMan780 » Sat Jun 30, 2012 7:36 pm

Are you running Windows Vista or 7? Run DB2 as administrator.

BloodyAcid
Forum Regular
Posts: 294
Joined: Sat Jun 16, 2012 7:42 pm

RE: ACS Not Compiling

#20

Post by BloodyAcid » Sat Jun 30, 2012 9:58 pm

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.

Post Reply