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

Update drs.json #287

Merged
merged 4 commits into from
Jan 7, 2024
Merged

Update drs.json #287

merged 4 commits into from
Jan 7, 2024

Conversation

triadspacefight
Copy link
Contributor

Update for DRS song list as of 1/4/2024 in prep for TBD4 Ver. B, as well as generally adding 300+ songs and charts that have been added to the game since 2020.

Also fixed flags to add filtering based on the following qualifiers, and added flags value to every song outside of default songlist:

        "unlock": "Stars Unlock",
        "extraExclusive": "Extra Stage/Standard Mode",
        "tempUnlock": "Event Unlock (Spark Festival, GYM, Dance Camp, KAC, etc)",
       NEW "removed": "Removed Songs (Spinnin' Records, FARM, Licenses)",
       NEW "stream": "Songs Causing Copyright Strikes (for streamers)",
       NEW "jaex": "Japanese Exclusives",
       NEW "krex": "Korea Exclusives",

Let me know if I can help or modify anything else. Version 3 will eventually add jackets and proper BPM info, but that's going to take some time.

Update with song list as of 1/4/2024 in prep for TBD4 Ver. B, as well as generally adding 300+ songs and charts that have been added to the game since 2020.
Copy link

vercel bot commented Jan 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
ddr-tools ✅ Ready (Inspect) Visit Preview Jan 5, 2024 10:23pm

@triadspacefight
Copy link
Contributor Author

triadspacefight commented Jan 5, 2024

@noahm - apologies for the hiccup on the first request, but it seems to be fixed now with the latest file. Let me know if I need to change anything else, Vercel preview looks great to me. -Dusk

@noahm
Copy link
Owner

noahm commented Jan 5, 2024

@triadspacefight Thanks for putting in the work to update all this! A few small things worth changing here:

  • update the timestamp at meta.lastUpdated to mark the newly updated date for the file (should just be the output of Date.now() from your favorite JS engine)
  • Omit any name_translation or artist_translation fields that are identical to the name and artist fields. (was already an issue in the current, outdated drs data file) This not only saves wasted bytes in filesize, but the DRS songs currently just display the title twice in the app due to the name_translation being present for every song. (also true of the current, outdated drs data file)
  • Also omit the flags property when no flags apply to a song. You're currently adding an array with an empty string? (e.g. "flags": [""]) This might have some unintended interactions with the card draw logic.
  • Finally, I added a CI-enforced formatting style with prettier just earlier tonight. You'll need to run yarn format in the project to rewrite this drs JSON file with the new standard style.

@triadspacefight
Copy link
Contributor Author

@triadspacefight Thanks for putting in the work to update all this! A few small things worth changing here:

* update the timestamp at `meta.lastUpdated` to mark the newly updated date for the file (should just be the output of `Date.now()` from your favorite JS engine)

* Omit any `name_translation` or `artist_translation` fields that are identical to the `name` and `artist` fields. (was already an issue in the current, outdated drs data file) This not only saves wasted bytes in filesize, but the DRS songs currently just display the title twice in the app due to the `name_translation` being present for every song. (also true of the current, outdated drs data file)

* Also omit the `flags` property when no flags apply to a song. You're currently adding an array with an empty string? (e.g. `"flags": [""]`) This might have some unintended interactions with the card draw logic.

* Finally, I added a CI-enforced formatting style with prettier just earlier tonight. You'll need to run `yarn format` in the project to rewrite this drs JSON file with the new standard style.

Understood! I'll make these changes and resubmit the PR later today.

Copy link
Contributor Author

@triadspacefight triadspacefight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be final @noahm and meet the needs outlined in your previous comment, let me know if I need to change anything else. Thanks! -Dusk

@noahm
Copy link
Owner

noahm commented Jan 5, 2024

@triadspacefight thanks! Everything looks great now except that your most recent changes seem to have emptied out all the bpm fields for every song. I assume that wasn't intentional?

@triadspacefight
Copy link
Contributor Author

@triadspacefight thanks! Everything looks great now except that your most recent changes seem to have emptied out all the bpm fields for every song. I assume that wasn't intentional?

It actually was. Most of them were wrong, and BPM isn't important to gameplay as DRS speed mod is consistent across all songs. If it's an unneeded field I can just remove it altogether and resubmit.

@noahm
Copy link
Owner

noahm commented Jan 7, 2024

Alright, sounds ok to me. I'll follow up later and make that field optional and hide the BPM text on the cards when the data is missing

@noahm noahm merged commit b6a451f into noahm:main Jan 7, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants