-
Couldn't load subscription status.
- Fork 16
Dev recommended item/loc sorting but player can override it #139
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
base: main
Are you sure you want to change the base?
Conversation
…Manual into dev_recommended_sorting
|
I feel like this PR is missing the point of what was discussed in #115. To be completely honest, a sort preference that the world dev sets is the lowest importance thing that was discussed in that PR. #115 didn't progress further because it left the default sort order up to the world dev, which fails to give Manual players a consistent, world-independent default sort order, which is what the current alphabetical sorting provides. It doesn't matter what the default sort order is, but it has to be consistent across all worlds as a default. When players ask "how are these sorted by default", our answer should be clear. So, if players are unhappy with the default sort order in the unstable, then we have to change the default sort order. Then we can add on as many sort modifiers as we want after. But first step is "change alphabetical to something else". Axx suggested doing it by id instead in https://discord.com/channels/1097532591650910289/1097891385190928504/1315877764083220500, and I think that's a viable idea. 😃 To add a bit of context, this prior feedback on #115 is important:
|
|
I've only glanced at the code briefly, but my impression is that the author defined sort order only applies if the user configures it to "recommended". The moment they preference always sorting by name/id, the apworld preference goes out the window. (If I'm wrong and that's not the behaviour, it probably should be) |
|
@FuzzyGamesOn 2 things,
|
|
also if we want preference to go back to id then I literaly just need to change 8 SortingOrder.alphabetical -> SortingOrder.id in different spots |
|
I think in absence or user or author preferences, we should do Alphabetical by default. It's usually a better experience, and is what the current Unstable is doing. |
Changed default back to alphabetical, custom is opt-in
|
oooh, I like those |
|
Removed the client update paused label from this one. I like the natural sorting addition! Almost feels like it should be the default now that it's an option, since it's just alpha + good number sorting. Will circle back to code review soon. |
|
I intend to work on this again soonish (potentially this week if im not too busy) |
…into dev_recommended_sorting
…alid settings values
Alternate continuation of #115
old description
it didnt feel polite to continue on their branch/pr so I made mine and merged from theirs if silasary wants to continue their own version of this then I can close this PRThe important bit:
This PR let Devs set a recommended sorting order for both items and locations
BUT it let the users override that ordering via command (for now) so that from then on the user will use that selected sorting
I made it so that override get saved to Hosts.yaml currently to the "manual_settings" key
The default sorting is
alphabeticalID based on comments but it can be changed easilyThe part im less sure:
Host.yaml key
the one thing im not sure about that is the setting key, or in the host.yaml should every manual's setting use a single "manual_settings" key of have one for each manual
(currently going for singular but im leaving the code commented out for multiple)
Maybe add buttons?
Also I dont know how to make buttons so commands is what you'll get for now
AP ClientSide is something I barely know, I can work with what's already there or get inspired from other apworlds if required (minecraft fabric client was a big source of info on how to use and save settings)
If anyone wants to participate in the PR to add those or find a better way to refresh the locations on change of sorting then feel free to do so