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

[BUGFIX] Made the chart editor use correct song IDs when using templates #3018

Closed
wants to merge 22 commits into from

Conversation

AppleHair
Copy link
Contributor

@AppleHair AppleHair commented Jul 13, 2024

Instead of always using the song name from the metadata to infer the song ID, the chart editor will now try to use the correct song ID when loading a song template, and will only use the song name to infer the song ID as a fallback (usually when you create a new song or open a .fnfc file).

This fix helps song scripts load on all variations when playtesting, and not only on variations where the song name matches the song ID (usually default). You can see the effect very clearly when playtesting eggnog on the erect variations with song scripts enabled because the cutscene that's supposed to play when the song ends won't play without this fix.

Note

Previously, I tried to apply this functionality to .fnfc files as well, by using the song ID from the manifest file, but then I realized that this prevents the user from editing the song ID of an opened .fnfc file, so I ended up reverting that functionality.

@AppleHair AppleHair marked this pull request as draft July 13, 2024 17:58
@AppleHair AppleHair marked this pull request as ready for review July 13, 2024 18:42
@AppleHair AppleHair changed the title [BUGFIX] Made the chart editor use correct song IDs when using templates [BUGFIX] Made the chart editor use correct song IDs when using templates and FNFC files Jul 13, 2024
@EliteMasterEric EliteMasterEric added the status: pending triage The bug or PR has not been reviewed yet. label Jul 14, 2024
I realized that the way I set the song ID when opening a `.fnfc` file doesn't let the user edit the song ID using the editor, so I reverted this functionality for FNFC.
@AppleHair AppleHair changed the title [BUGFIX] Made the chart editor use correct song IDs when using templates and FNFC files [BUGFIX] Made the chart editor use correct song IDs when using templates Jul 14, 2024
@ninjamuffin99 ninjamuffin99 force-pushed the develop branch 2 times, most recently from e0b1b01 to 410cfe9 Compare October 4, 2024 01:25
@AppleHair AppleHair closed this Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: pending triage The bug or PR has not been reviewed yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants