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

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
Ixnatifual
Posts: 36
Joined: Tue Sep 06, 2005 14:25

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

Post 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?
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post 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);
Ixnatifual
Posts: 36
Joined: Tue Sep 06, 2005 14:25

Post by Ixnatifual »

Overwriting with the zspecial.acs worked, thanks :)
User avatar
Cutmanmike
Posts: 482
Joined: Sat Sep 03, 2005 23:34

Post by Cutmanmike »

Hmm WA was doing this to me but i'm sure I replaced that file already...
User avatar
Logan MTM
Posts: 179
Joined: Wed Jan 04, 2006 2:52
Location: Rio de Janeiro - BRAZIL
Contact:

Post 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!

???
So as you read this know my friends I'd love to stay with you all.
Please smile when you think of me. My body's gone that's all...
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post 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);
}
User avatar
Logan MTM
Posts: 179
Joined: Wed Jan 04, 2006 2:52
Location: Rio de Janeiro - BRAZIL
Contact:

Post 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!
Last edited by Logan MTM on Fri Jun 15, 2007 9:35, edited 1 time in total.
So as you read this know my friends I'd love to stay with you all.
Please smile when you think of me. My body's gone that's all...
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post 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.
User avatar
Logan MTM
Posts: 179
Joined: Wed Jan 04, 2006 2:52
Location: Rio de Janeiro - BRAZIL
Contact:

Post 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?
So as you read this know my friends I'd love to stay with you all.
Please smile when you think of me. My body's gone that's all...
Locked

Return to “GZDoom”