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

Display rank information on ranked CSS #8

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

walz0
Copy link

@walz0 walz0 commented Jul 27, 2023

Paired with Ishiiruka project-slippi/Ishiiruka#391

Overview:

The game sends an EXI command to dolphin to get the rank info through a curl request. This could be changed to something more efficient that doesnt require a new request each time the user goes to the CSS. Fizzi suggested that the matchmaking service return an expected ELO change which would significantly reduce the number of requests to the server: https://discord.com/channels/328261477372919811/733158076827303997/1060705864878657606
If this is the optimal route it may also be worth returning the opponents rank when a match is found so that it can be displayed in the GamePrep scene (suggested by altf4) https://discord.com/channels/328261477372919811/733158076827303997/1060387305501769809

Currently the only rank information that is displayed is the icon and the rating ordinal. If a user hasnt completed their placement matches for the season (ratingUpdateCount < 5) the question mark icon will be shown with a message telling them how many matches they need to play to get a rank.

User without a rank:

image

User with a rank:

image

Additional Notes

There have been instances where the game has crashed when executing the curl request on the CSS (maybe something to do with running LoadMatchState at the same time?). This hasn't been happening to me recently and I've had a few people testing the build and it doesn't seem to be crashing at all for them. Hopefully someone more knowledgeable can provide some insight and this can be debugged.

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.

1 participant