Doom 2 Wad

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
User avatar
Enjay
 
 
Posts: 26517
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Post by Enjay »

Nope, text messages like those at the end of episodes, or after groups of levels (eg after map06 in Doom2) can be defined using MAPINFO. Scripting is for in-level stuff. Those texts are visible outwith a level.

This may help:

http://zdoom.doomworld.com/reference/mapinfo.html

As may this:

http://zdoom.org/files/examples/mapinfo-doom.txt

and this:

http://zdoom.org/files/examples/mapinfo-doom2.txt
User avatar
JangoFett
Posts: 79
Joined: Sat Oct 04, 2003 5:55 pm

Post by JangoFett »

Thanks, Enjay. But I am still wondering about the errors I keep getting while compiling a script in WadAuthor using the

#include "zcommon.acs"

Command.
User avatar
Biff
Posts: 1061
Joined: Wed Jul 16, 2003 5:29 pm
Location: Monrovia, CA, USA

Post by Biff »

Do you have a recent version of that file? You need to get it with acc.exe from the downloads page. Don't use the acc.exe and the common.acs file with come with WadAuthor.

Also, edit the zcommon.acs file and note the directions about WadAuthor:


// If you intend to use ACC 1.19 (or higher), with WadAuthor, you should
// uncomment the following line so that WadAuthor's error checker can
// properly detect bad scripts attached to lines:
#wadauthor

#include "zspecial.acs"
#include "zdefs.acs"
#include "zwvars.acs"
User avatar
JangoFett
Posts: 79
Joined: Sat Oct 04, 2003 5:55 pm

Post by JangoFett »

No I don't have the ACC from the Downloads page, I just use the one from WadAuthor and got the other ACS Files from some other Website, that I cannot remember the URL or the Title, Just some website that was not the ZDoom Homepage.
User avatar
Enjay
 
 
Posts: 26517
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Post by Enjay »

error #34: Missing ')'
Is there some additional information in your error message that specifically tells you there is a problem with zcommon.acs or zspecial.acs?

The reason I ask is that the error means that the compiler expects a close bracket ")" somewhere in your script but isn't finding it. It is unlikely the error is in any of the files that come with ACC otherwise someone else would have picked up the problem by now. The current files certainly work for me anyway.

So, unless you have edited any of the files the mistake is probably with one of your scripts. What may be happening is that the compiler is now getting to a point in your script that it couldn't before. Without the #include "zcommon.acs" line, the compiling of your script probably halted in a different place. Now that zcommon.acs is being loaded, chances are the compiler can now get to a point in your script where it recognises an error with what you have typed.

FYI, the #include "zcommon.acs" line tells ACC to read and include the zcommon.acs file. This file is a simple one that only tells ACC to read 3 more files: zspecial.acs, zdefs.acs and zwvars.acs. These 3 files provide definitions and information that allows you to write scripts using more friendly language. Zspecial provides all the names for specials. So instead of using numbers for the specials, you can use names that mean more to a human. eg you can use "ACS_Execute" instead of "80". It also tells ACC how many parameters to expect for each special. Zdefs defines a bunch of things that are useful in scripts. So, you can use the words "TRUE" or "ON" instead of "1" or "T_DEMON" instead of "8" because of zdefs. Zwvars is actually blank, but provides a place for you to put any world variables you want to use so that they automatically get included in every script you compile.

Edit: Whilst I was typing, Biff asked an important question. The latest ACC is here:

http://zdoom.org/files/utils/acc131.zip

There is a windows exe but from memory WA doesn't like it (I don't use WA):

http://zdoom.org/files/utils/acc131win.zip
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

JangoFett wrote:...I just use the one from WadAuthor...
Biff wrote:Don't use the acc.exe and the common.acs file with come with WadAuthor.
...
User avatar
Lexus Alyus
Posts: 4220
Joined: Tue Jul 15, 2003 5:07 pm
Location: Nottingham, UK
Contact:

Post by Lexus Alyus »

I noticed that too :-D. Download the latest one from the download page. It should work, if it doesnt, then there is an error in your script like Enjay said.

:twisted:
User avatar
JangoFett
Posts: 79
Joined: Sat Oct 04, 2003 5:55 pm

Post by JangoFett »

It does work now.
Post Reply

Return to “General”