YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
26 stars 8 forks source link

Some spine functions unhelpfully spam warnings into the console. #5406

Open BscotchSeth opened 7 months ago

BscotchSeth commented 7 months ago

Description

When performing the function skeleton_animation_get_event_frames(), if the event isn't present in the animation, Game Maker outputs a debug message that looks like this:

image

As far as I can discern, there is no way to stop this debug output from happening. This function already returns an array with -1 in it if the event is not found, so there's no reason to have this function create a debug message with a warning. As such, this function should never output a warning into the console.

In addition, if you attempt to play a Spine animation that doesn't exist, you will get a debug message like this:

image

This should not appear in the console either. It is already apparent that the animation isn't working because you wouldn't see it playing, and there are other ways to query what spine animations are available to play.

Further, both of these warning messages convey no information about the object or sprite involved in the warning, so the user will have to go on an archaeological dig to figure out where the warnings are even coming from, making them unhelpful for debugging.

Expected Change

Spine functions should not send warnings into the console.

Steps To Reproduce

  1. Start GameMaker
  2. Perform skeleton_animation_get_event_frames() and query an event that doesn't exist in your spine animation.
  3. Observe the debug output.
  4. Perform skeleton_animation_set() and attempt to set a spine animation that doesn't exist in the current sprite.
  5. Observe the debug output.

How reliably can you recreate this issue using your steps above?

Always

Which version of GameMaker are you reporting this issue for?

2024.400 (Betas)

Which operating system(s) are you seeing the problem on?

No response

Are you running GameMaker from inside your Steam library?

No

Contact Us Package Attached?

Sample Project Added?

BscotchSeth commented 1 month ago

@yoyo-danielc Heyo! Can we bump this up the priority list? This console spam is causing quite a few problems and we unfortunately can't do anything to stop it.