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

General: Errors accessing resources because the texture/audio group is disabled should be made clearer #235

Closed
iampremo opened this issue Jul 28, 2023 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation are required by this issue import An issue imported from the old database runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Milestone

Comments

@iampremo
Copy link
Member

GM-1577

If you attempt to draw a sprite which is on a disabled texture page you will simply get "Error attempting to draw sprite sprite0", which doesn't help identify the cause of this error or what the user needs to do to resolve.

Doing this with a sound, you get a more informative but inconsistent: "sndMusic2: Audio Group 1 is not loaded"

Expected: For Sprites you get "Unable to draw [resource name] because its texture group is disabled on this platform" and for Sounds you get "Unable to play [resource name] because its audio group is disabled on this platform"

Steps:

Start GMS2 and open the attached project

Run it for Windows

Observe the output log

@toby-yoyo
Copy link

toby-yoyo commented Nov 11, 2024

The runtime cannot infer why the audio/texture group is not present - only that it is not.

A sprite drawn from an unloaded texture group will now print:

Error: Texture page for <sprite_name> is not loaded

A sound played from an unloaded audio group will now print:

Error: Audio group for <sound_name> (<audio_group_index>) is not loaded

@github-project-automation github-project-automation bot moved this from In Progress to Done in Team Workload Nov 11, 2024
@gurpreetsinghmatharoo gurpreetsinghmatharoo added the documentation Improvements or additions to documentation are required by this issue label Nov 19, 2024
@YYBartT YYBartT self-assigned this Nov 25, 2024
YYBartT added a commit to YoYoGames/GameMaker-Manual that referenced this issue Dec 4, 2024
YoYoGames/GameMaker-Bugs#235

Added a note to the Audio Groups page that mentions an error will be shown in the console when an audio group isn't loaded
@YYBartT
Copy link

YYBartT commented Dec 4, 2024

Added note to the Audio Groups manual page. A similar line of text for texture groups is already on the Dynamic Textures page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation are required by this issue import An issue imported from the old database runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Projects
Status: Ready for QA
Development

No branches or pull requests

4 participants