Page 1 of 1

Sector_SetPlaneReflection(255, 100, 0); won't compile

Posted: Tue Jul 11, 2006 13:13
by Ixnatifual
I've downloaded the files below,

http://forum.drdteam.org/download.php?id=791
http://grafzahl.drdteam.org/gzdoom/gzdoom-db.zip

but still can't get Doom Builder to compile my script when I use Sector_SetPlaneReflection.


Line 12 in file "script.acs" ...
script.acs:12: Function sector_setplanereflection is used but not defined.

The ACS compiler did not compile your script.


How do I get this working?

Posted: Tue Jul 11, 2006 13:16
by Enjay
I'm not sure if it's in any of those zips, but GZdoom comes with its own zspecial.acs in the main gzdoom distribution. You should drop that into whichever directory your other ACS related files are. For info, the line that you need in zspecials.acs is:

Code: Select all

159:Sector_SetPlaneReflection(3);

Posted: Tue Jul 11, 2006 13:29
by Ixnatifual
Overwriting with the zspecial.acs worked, thanks :)

Posted: Tue Jul 11, 2006 16:16
by Cutmanmike
Hmm WA was doing this to me but i'm sure I replaced that file already...

Posted: Thu Jun 14, 2007 16:55
by Logan MTM
Still don't working to me!
I did everything mentioned above and nothing! Including the 159:Sector_SetPlaneReflection(3); and 159:Sector_SetPlaneReflection(3),.
The zspecials.acs got a "," and not a ";" as Enjay wrote!

???

Posted: Thu Jun 14, 2007 20:55
by Enjay
Logan MTM wrote:The zspecials.acs got a "," and not a ";" as Enjay wrote!
My apologies

159:Sector_SetPlaneReflection(3),

is what my zspecials says. I have no problem compiling scripts using this special. In fact, I just did it.

script 100 OPEN
{
Sector_SetPlaneReflection(6, 32, 0);
Sector_SetPlaneReflection(8, 32, 0);
Sector_SetPlaneReflection(9, 32, 0);
Spawnspot ("TeleGlitterGenerator2", 2, 0, 0);
delay (35);
setfont ("BIGFONT");
Ambientsound ("menu/prompt", 127);
hudmessagebold (s:"Choose a skill setting.";
HUDMSG_FADEOUT, 1, CR_BLUE, 0.5, 0.9, 4.0, 4.0);
}

Posted: Fri Jun 15, 2007 9:17
by Logan MTM
Well, i'm using the last version of ACC.exe and DBcfg and this is what i've got:

Image

Image

The only way i found out to work with Reflexive Floor is settin as a special LineAction on some line what the player must to cross!

Posted: Fri Jun 15, 2007 9:19
by Graf Zahl
You are *not* using the latest version of zspecial.acs as it looks. Make sure that the file is up to date and in the correct directory.

Posted: Fri Jun 15, 2007 9:41
by Logan MTM
The GZDoom 1.0.24 come with the zspecials.acs inside of the zip file.
I downloaded the last version of the ACC.exe on ZDoom.org.
The correct directory isn't the DoomBuilder folder?