ANIMDEF bad syntax problem

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Silentdarkness12
Posts: 1555
Joined: Thu Aug 15, 2013 5:34 pm
Location: Plains of Pride

ANIMDEF bad syntax problem

Post by Silentdarkness12 »

According to the wiki, setting up a warping texture is supposed to be as simple as WARP texture|flat followed by the name, and then pic+tic definitions. However, that is not happening to me. No matter where I put the WARP keyword in the setup, I am handed a Bad Syntax error.

Code: Select all

Texture EYESITEC //Centered Eyesight
WARP pic EYESITA0 tics 10 oscillate
pic EYESITA0 tics 500 oscillate

Code: Select all

WARP Texture EYESITEC //Centered Eyesight
pic EYESITA0 tics 10 
pic EYESITA0 tics 500

Code: Select all

Texture WARP EYESITEC //Centered Eyesight
pic EYESITA0 tics 10 
pic EYESITA0 tics 500

Code: Select all

Texture EYESITEC WARP
pic EYESITA0 tics 10 
pic EYESITA0 tics 500
All of these return the same error. What's going on here exactly? I cannot make sense of this.
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

Re: ANIMDEF bad syntax problem

Post by _mental_ »

Textures and frames require a separate warp definitions.

As long as you didn't post complete sample with textures, I guess you wanted something like this.

Code: Select all

texture EYESITEC
    pic EYESITA0 tics 10
    pic EYESITA0 tics 500

warp texture EYESITEC
User avatar
Silentdarkness12
Posts: 1555
Joined: Thu Aug 15, 2013 5:34 pm
Location: Plains of Pride

Re: ANIMDEF bad syntax problem

Post by Silentdarkness12 »

Alright, that fixed it, but now I am running into a problem where the game is failing to recognize ANIMDEFS definitions.

Code: Select all

ANIMDEFS: Can't find FGEMA0
ANIMDEFS: Can't find EYESITEC
ANIMDEFS: Can't find EYESITED
ANIMDEFS: Can't find EYESITEU
ANIMDEFS: Can't find EYESITEL
ANIMDEFS: Can't find EYESITER
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: ANIMDEF bad syntax problem

Post by Graf Zahl »

The base texture of an animation must be an existing texture, ANIMDEFS will not define a new one.
Post Reply

Return to “Scripting”