Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Eric the Sandvich

Again, but this time some serious help for DECORATE

Recommended Posts

So I'm getting around to creating rotation for my actor, it's a computer monitor that flashes. Here are the files for this monitor for easier explaining

 

http://www.mediafire.com/file/5ly679w9k0firng/Computer+Monitor.zip

 

Here is the DECORATE of this actor

 

actor computermonitor 18004
{
 health 10
 radius 12
 height 20
 painchance 256
  +SHOOTABLE
  +NOBLOOD
  +DONTGIB
 deathsound "computer/death"
 painsound "computer/hit"
 States
 {
 Spawn:
  COMP ACACACBDBDBD 5    //A and C are frames neutral vs. bright versions, B and D are the same but with an insertion cursor.
  Loop
 Pain:
  COMP A 4
  goto Spawn
 Death:
  CMDT A 5 A_Scream
  CMDT BCD 5
  Wait
 XDeath:
  CMXP A 8 A_Playsound ("computer/explode")
  CMXP BCD 8
  Wait
  }
}

 

My problem is that when I launch zDoom I get this message and it dosen't launch. "R_InstallSprite: Sprite COMP frame B is missing rotations"

COMPB1 clearly has a rotation.

 

I'm assuming that because of the way 'COMP ACACACBDBDBD 5' is coded it gets jumbled. If not, then I messed up on wording the filenames.

 

If someone be kind enough to help me?

Share this post


Link to post

The problem might be that your angle sprite names are wrong.

I'll give you a quick list of the correct angle names.

 

1c1 = facing you 0/360 degrees

2c8 = turned 45 degrees

3c7 = turned 90 degrees

4c6 = turned 135 degrees

5c5 = back turned to you, 180 degrees

6c4 = turned 225 degrees

7c3 = turned 270 degrees

8c2 = turned 315 degrees

At this point, it is looped back to 1c1, the front sprite of the thing.

Share this post


Link to post

1c1? 2c8?

 

I don't exactly know where to put these, I might have an idea but there is no base alongside them to demonstrate where. Put them in examples such as: XXXXA1, XXXXA2, XXXXA3A7, etc...

Share this post


Link to post

I tried that and in alterations and it didn't work, still got that same message

 

I get the feeling you didn't download the file. Not judging, but seems you can make those messages without it.

Share this post


Link to post

The problem is exactly what the error message says: Sprite COMPB is missing some rotations. Namely, you provide rotations 1, 2 and 8, but not rotations 3, 4, 5, 6 and 7. As soon as the parser finds a sprite named COMPB1 in the wad, it will look for COMPB sprites with all numbers from 1 to 8, in order to cover full 360 degrees of angles that the sprite might be viewed from. If some rotations can't be found, it throws an error.

Share this post


Link to post

The problem is actually not related to DECORATE at all - that is, even if your DECORATE lump didn't exist, the problem would take effect. It's a matter of how (G)ZDoom initializes sprites upon engine startup, purely based on their lump names. See https://zdoom.org/wiki/Sprite.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×