Logo

Question on adding a "grouping songs by rating" sort in SM 5.1?

Register Log In Back To Forums

Post #1 · Posted at 2020-02-01 10:20:57pm 4.2 years ago

Offline PenTA_
PenTA_ Avatar Member
243 Posts
United States
Reg. 2016-12-23

Nintendo Network ID: Quan_comicz00
I'm curious to see if you can add another sort in SM, specifically one that mimics the AC. For example, rather than sorting every Heavy 17, it instead sorts all 17s from every folder (On SP and DP). If possible, how would I go about doing this?
https://cdn.discordapp.com/attachments/360586311939391492/673291094561390602/unknown.png

Post #2 · Posted at 2020-02-01 11:24:19pm 4.2 years ago

Offline ZTS
ZTS Avatar Member
139 Posts
Not Set
Reg. 2015-01-13

"But enough talk! Have at you!"

Last updated: 2020-02-02 12:37am
If you want to create your own lua music wheel or use someone else's, yes. A custom lua wheel wouldn't have any limitations, and Jousway has written a couple. (I also made a half broken A20 proof of concept wheel, but someone else should finish it.)

Otherwise read the long technical explanation about why it can't be done with the built in wheel:
Impossible without editing the source code because the music wheel works by creating an array of all the songs and then creating the folders after sorting them. So it's only possible to have one instance of the song in the pool.

And before someone suggests preferred sort, no, you can't do that either. I'm just going to quote myself for the explanation:
Quote
It is not possible in preferred sort currently. The preferred sort works by creating an dictionary with songs then assembling the folders by looking up which song belongs in which folder.

Therefore songs will get duplicated in the folder where they first occur.

You can change this in the source code by creating the array of folders and songs for the music wheel on the fly using the already made dict. But then when you return from gameplay it will return you to the first folder where the song occurs, since the folder is not saved in memory, it looks up what folder the song belongs to

What if you make a preferred sort file for every single folder? Then yes you could do that... It's slow and you'd have to make as many files for as many folders you have + you'd have to be using a custom groupwheel at some point to open those folders or relying on metrics/lua abuse to display custom musicwheel objects in the built in wheel (don't think it's actually possible to adjust how many custom musicwheel objects show up without reloading the wheel)

My StepMania fork "SM-RIO" has an all levels all difficulties sort built into the source code if you want to use it. It automatically sets the correct difficulty when scrolling through songs. It works by creating a vector map of groups and shoving the songs in the correct group.


At 1:11:

Get Rave It Out! https://sites.google.com/view/riodevs/home
Want your theme made? I take commissions, PM for details.
Register Log In Back To Forums

0 User(s) Viewing This Thread (Past 15 Minutes)

©2006-2024 Zenius -I- vanisher.com -5th style- IIPrivacy Policy
Web Server: 4% · Database: 12% · Server Time: 2024-04-24 11:06:07
This page took 0.002 seconds to execute.
Theme: starlight · Language: englishuk
Reset Theme & Language