Skip to content

[BUGFIX] Fix instances of song metadata not assigning variation correctly #5401

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

Merged
merged 1 commit into from
Jul 21, 2025

Conversation

NotHyper-474
Copy link
Contributor

@NotHyper-474 NotHyper-474 commented Jul 18, 2025

Linked Issues

Fixes #5400

Description

A PR made a change to SongMetadata's constructor to fix the charter not being saved but forgot to change many instances where it was being used, causing the variation to be null (which falls back to default) and the charter to have the variation's name. In the linked issue, when adding a new variation this caused the default variation to be replaced by the new one (hence the difficulties wiped)

This PR changes it so all instances of new SongMetadata assign the arguments correctly which should fix some other unnoticed issues as well.

P.S: I've also noticed the New Song wizard window is missing a charter field, I would fix that but that's gonna require an assets PR, maybe for another PR.

Screenshots/Videos

TBA (maybe)

@NotHyper-474 NotHyper-474 changed the base branch from main to develop July 18, 2025 23:21
@github-actions github-actions bot added pr: haxe PR modifies game code. size: medium A medium pull request with 100 or fewer changes. status: pending triage Awaiting review. labels Jul 18, 2025
@Hundrec Hundrec added type: minor bug Involves a minor bug or issue. topic: chart editor Related to the operation of the Chart Editor. labels Jul 19, 2025
@Hundrec Hundrec self-requested a review July 19, 2025 04:38
@NotHyper-474 NotHyper-474 changed the title [BUGFIX] Fix 'New Variation' submit assigning charter to variation [BUGFIX] Fix 'Add Variation' submit assigning charter to variation Jul 19, 2025
@NotHyper-474 NotHyper-474 changed the title [BUGFIX] Fix 'Add Variation' submit assigning charter to variation [BUGFIX] Fix instances of song metadata not assigning variation correctly Jul 19, 2025
@Lasercar
Copy link
Contributor

eric...................

@NotHyper-474
Copy link
Contributor Author

NotHyper-474 commented Jul 20, 2025

eric...................

image

what do you mean by eric...

…....................................................................................................................................
@NotHyper-474 NotHyper-474 force-pushed the bugfix/torso-of-the-week branch from 65ccad9 to 19b5531 Compare July 21, 2025 19:38
@Hundrec Hundrec added status: reviewing internally Under consideration and testing. status: accepted PR was approved for contribution. If it's not already merged, it may be merged on a private branch. and removed status: pending triage Awaiting review. status: reviewing internally Under consideration and testing. labels Jul 21, 2025
@Hundrec Hundrec added this to the 0.7.3 milestone Jul 21, 2025
@Hundrec Hundrec merged commit f1c3e99 into FunkinCrew:develop Jul 21, 2025
6 checks passed
@Hundrec Hundrec removed their request for review July 21, 2025 23:56
@NotHyper-474 NotHyper-474 deleted the bugfix/torso-of-the-week branch July 21, 2025 23:58
@Lasercar
Copy link
Contributor

eric...................

what do you mean by eric...

Ah, I was more on about how it took adding and saving a variation to notice that I completely forgot about the all the new uses of the song metadata.

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: medium A medium pull request with 100 or fewer changes. status: accepted PR was approved for contribution. If it's not already merged, it may be merged on a private branch. topic: chart editor Related to the operation of the Chart Editor. type: minor bug Involves a minor bug or issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug Report: Adding a variation fails and wipes the default one's difficulties
3 participants