Skip to content

Conversation

VioletSnowLeopard
Copy link
Contributor

Linked Issues

#5910

Description

If a song's metadata explicitly defines the voices, the game will use them without checking if they actually exist which will cause a crash later. This PR fixes this issue by only using the voices defined in the metadata if their files exist. If they don't exist, it will fallback to the default method of resolving voices.

Test

I tested this PR using this mod. All this mod does is replace the metadata file for Roses with the metadata file sent by the author of the linked issue:

metadataTest.zip

If you use this mod on the release version, the game will crash when loading Roses. If you use it on a version compiled from this PR, the game will not crash.

@github-actions github-actions bot added size: large A large pull request with more than 100 changes. status: pending triage Awaiting review. pr: haxe PR modifies game code. and removed status: pending triage Awaiting review. size: large A large pull request with more than 100 changes. labels Sep 8, 2025
@AbnormalPoof AbnormalPoof added type: major bug Involves a major bug, including crashes, softlocks, or issues blocking progression status: pending triage Awaiting review. size: large A large pull request with more than 100 changes. labels Sep 8, 2025
@Hundrec Hundrec self-requested a review September 8, 2025 20:04
@Hundrec Hundrec added status: reviewing internally Under consideration and testing. and removed status: pending triage Awaiting review. labels Sep 14, 2025
@Hundrec Hundrec removed their request for review September 14, 2025 10:15
@Hundrec Hundrec changed the base branch from develop to dummy/develop-v0.7.4 September 14, 2025 17:50
@Hundrec Hundrec added status: accepted PR was approved for contribution. If it's not already merged, it may be merged on a private branch. and removed status: reviewing internally Under consideration and testing. labels Sep 14, 2025
@Hundrec Hundrec added this to the 0.7.5 milestone Sep 14, 2025
@Hundrec Hundrec merged commit f6ab2e7 into FunkinCrew:dummy/develop-v0.7.4 Sep 14, 2025
6 checks passed
@VioletSnowLeopard VioletSnowLeopard deleted the voices-fallback branch September 14, 2025 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: haxe PR modifies game code. size: large A large pull request with more than 100 changes. status: accepted PR was approved for contribution. If it's not already merged, it may be merged on a private branch. type: major bug Involves a major bug, including crashes, softlocks, or issues blocking progression
Development

Successfully merging this pull request may close these issues.

Crash Report: Missing audio files defined by metadata crashes instead of falling back to defaults
3 participants