Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Hail panel does not preserve animation attributes #9766

Closed
1 task done
tibetiroka opened this issue Feb 4, 2024 · 9 comments · Fixed by #9767
Closed
1 task done

bug: Hail panel does not preserve animation attributes #9766

tibetiroka opened this issue Feb 4, 2024 · 9 comments · Fixed by #9767
Labels
bug Something in the game is not behaving as intended
Milestone

Comments

@tibetiroka
Copy link
Member

tibetiroka commented Feb 4, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Animated sprites lose their animation attributes in the hail panel, leading to unpredictable behaviour.

Steps to Reproduce

I recommend using Omnis to see planets with animated sprites, since there aren't any in vanilla afaik.

  1. Go to the arena planets
  2. Hail the planet and look at the icon

Expected Behavior

The panel should preserve the animation.

Operating System

EndeavourOS (kernel: Linux 6.7.3-zen1-1-zen)

Game Source

Built from source

Game Version

d123014

Additional Information

No response

@tibetiroka tibetiroka added bug Something in the game is not behaving as intended unconfirmed More information is needed to be sure this report is true labels Feb 4, 2024
@Amazinite
Copy link
Collaborator

The planet itself doesn't do the full animation cycle; frames seem to follow each other much slower than in regular sprites, and then jerk back to the starting position without finishing the animation

Are you using the same animation attributes? The jerking sounds like you're not using "rewind", and the slow behavior sounds like the frame rate is just low.

@warp-core
Copy link
Contributor

		"frame rate" 14.3
		"random start frame"
		rewind

Add these as children of the sprite in the object definition.

In the planet dialog thingy, the animation is really fast. Like, really, really fast.

Is "planet dialog thingy" the hail panel?

@Saugia
Copy link
Collaborator

Saugia commented Feb 4, 2024

If not given a frame rate, animated sprites default to 2/60 (in the code). None of the Omnis planets have a defined framerate which is why they look strange in their animations.

@alexrovw
Copy link
Contributor

alexrovw commented Feb 4, 2024

It is indeed pretty weird in the planetary hail window. I don't see any issues on the normal space view, though.

Screen.Recording.2024-02-04.at.1.02.42.PM.mov

@tibetiroka
Copy link
Member Author

Oh. It is using the wrong framerate/rewind, but that still does not explain why it looks different in the popup panel from the planet itself.

@Amazinite
Copy link
Collaborator

The hail panel is losing the animation properties of the stellar object.

@Amazinite Amazinite added this to the 0.10.6 milestone Feb 4, 2024
@Amazinite Amazinite removed the unconfirmed More information is needed to be sure this report is true label Feb 4, 2024
@tibetiroka
Copy link
Member Author

Does that mean it affects animated ship sprites as well as planet sprites?

@tibetiroka tibetiroka changed the title bug: Animated planet sprites are broken bug: Hail panel does not preserve animation attributes Feb 4, 2024
@Saugia
Copy link
Collaborator

Saugia commented Feb 4, 2024

Considering the Void Sprites as an example don't bug out when targeting them, or Archons, that's different, no?

Actually, animated ships in their hail panels don't even animate.

@tibetiroka
Copy link
Member Author

What a clever workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something in the game is not behaving as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants