Discord Rich Presence: New Super Mario Bros U Deluxe #130

Merged
Ghost merged 21 commits from RecursiveMemory/Ryujinx:NSMBUDRPC into master 2026-06-25 20:59:57 +00:00
Member

Add RPC support for NSMBUD play reports that generate on main menu and after finishing a course.

Tracked things:

Main menu
Last played course

Examples:

Main menu
image

After finishing a course (By dying or by beating it)
image

In the future should I be doing batch PRs for RPC related things? Yes.

Add RPC support for NSMBUD play reports that generate on main menu and after finishing a course. Tracked things: Main menu Last played course Examples: Main menu ![image](/attachments/9f1506bd-fc8c-4eca-930d-64f15a7c650d) After finishing a course (By dying or by beating it) ![image](/attachments/a4af3f4f-230d-47ac-977a-20281a103cb6) In the future should I be doing batch PRs for RPC related things? Yes.
The only commit I needed to add nsmbud discord RPC
All checks were successful
Pull Request Triage / triage (pull_request_target) Successful in 12s
Build PR / linux-arm64 (Release) (pull_request) Successful in 3m55s
Build PR / win-x64 (Release) (pull_request) Successful in 8m1s
Build PR / win-arm64 (Release) (pull_request) Successful in 8m11s
Build PR / linux-x64 (Release) (pull_request) Successful in 6m17s
Build PR / macOS Universal (Release) (pull_request) Successful in 9m28s
990e5f3e4f
The second commit I thought I did not need for NSMBUD RPC
Some checks failed
Build PR / linux-arm64 (Release) (pull_request) Has been cancelled
Build PR / linux-x64 (Release) (pull_request) Has been cancelled
Build PR / win-arm64 (Release) (pull_request) Has been cancelled
Build PR / win-x64 (Release) (pull_request) Has been cancelled
Build PR / macOS Universal (Release) (pull_request) Has been cancelled
d661c627a0
Author
Member

Should be revised now. Also why is my icon thingy wrong :dog_kek:

Should be revised now. Also why is my icon thingy wrong :dog_kek:
Author
Member

I could do the level title, but then I would need to make a list of every Course in the game and pull from that.

I could do the level title, but then I would need to make a list of every Course in the game and pull from that.
Author
Member

:waaa:

:waaa:
Author
Member

Well actually if you want me to I can add the level names.

Well actually if you want me to I can add the level names.
Author
Member

Eh we doing it anyways. Got a nasty case off too much time, getting kinda pissed if I do not do it "well enough", and enough 100% save files to make it a breeze.

Eh we doing it anyways. Got a nasty case off too much time, getting kinda pissed if I do not do it "well enough", and enough 100% save files to make it a breeze.
Author
Member

Side note: This also means I might update SMB Wonder with the same tech

Side note: This also means I might update SMB Wonder with the same tech
RecursiveMemory changed title from Discord Rich Presence: New Super Mario Bros U Deluxe to WIP: Discord Rich Presence: New Super Mario Bros U Deluxe 2026-06-14 12:37:52 +00:00
Overly ambitious RPC support for mario phase 1
Some checks failed
Build PR / linux-arm64 (Release) (pull_request) Has been cancelled
Build PR / linux-x64 (Release) (pull_request) Has been cancelled
Build PR / win-arm64 (Release) (pull_request) Has been cancelled
Build PR / win-x64 (Release) (pull_request) Has been cancelled
Build PR / macOS Universal (Release) (pull_request) Has been cancelled
ad59e0570a
Remove the thing rider added because it was "helping"
Some checks failed
Build PR / linux-arm64 (Release) (pull_request) Has been cancelled
Build PR / linux-x64 (Release) (pull_request) Has been cancelled
Build PR / win-arm64 (Release) (pull_request) Has been cancelled
Build PR / win-x64 (Release) (pull_request) Has been cancelled
Build PR / macOS Universal (Release) (pull_request) Has been cancelled
5338d2be47
What have I gotten myself into...
Some checks failed
Build PR / linux-arm64 (Release) (pull_request) Has been cancelled
Build PR / linux-x64 (Release) (pull_request) Has been cancelled
Build PR / win-arm64 (Release) (pull_request) Has been cancelled
Build PR / win-x64 (Release) (pull_request) Has been cancelled
Build PR / macOS Universal (Release) (pull_request) Has been cancelled
3751defccf
Notes mario mode
Some checks failed
Build PR / linux-arm64 (Release) (pull_request) Has been cancelled
Build PR / linux-x64 (Release) (pull_request) Has been cancelled
Build PR / win-arm64 (Release) (pull_request) Has been cancelled
Build PR / win-x64 (Release) (pull_request) Has been cancelled
Build PR / macOS Universal (Release) (pull_request) Has been cancelled
70d568b16f
Base game level names to JSON
Some checks failed
Build PR / linux-arm64 (Release) (pull_request) Has been cancelled
Build PR / linux-x64 (Release) (pull_request) Has been cancelled
Build PR / win-arm64 (Release) (pull_request) Has been cancelled
Build PR / win-x64 (Release) (pull_request) Has been cancelled
Build PR / macOS Universal (Release) (pull_request) Has been cancelled
54a2c28fd7
Luigi course names
Some checks failed
Build PR / linux-arm64 (Release) (pull_request) Has been cancelled
Build PR / linux-x64 (Release) (pull_request) Has been cancelled
Build PR / win-arm64 (Release) (pull_request) Has been cancelled
Build PR / win-x64 (Release) (pull_request) Has been cancelled
Build PR / macOS Universal (Release) (pull_request) Has been cancelled
5c0b80b7e0
Finish rest of stuff.
Some checks failed
Build PR / linux-arm64 (Release) (pull_request) Has been cancelled
Build PR / linux-x64 (Release) (pull_request) Has been cancelled
Build PR / win-arm64 (Release) (pull_request) Has been cancelled
Build PR / win-x64 (Release) (pull_request) Has been cancelled
Build PR / macOS Universal (Release) (pull_request) Has been cancelled
17a914db7e
This is very incomplete let me COOK
Some checks failed
Build PR / linux-arm64 (Release) (pull_request) Has been cancelled
Build PR / linux-x64 (Release) (pull_request) Has been cancelled
Build PR / win-arm64 (Release) (pull_request) Has been cancelled
Build PR / win-x64 (Release) (pull_request) Has been cancelled
Build PR / macOS Universal (Release) (pull_request) Has been cancelled
b863868dfd
Me when it AINT WORKING
Some checks failed
Build PR / linux-arm64 (Release) (pull_request) Has been cancelled
Build PR / linux-x64 (Release) (pull_request) Has been cancelled
Build PR / win-arm64 (Release) (pull_request) Has been cancelled
Build PR / win-x64 (Release) (pull_request) Has been cancelled
Build PR / macOS Universal (Release) (pull_request) Has been cancelled
7176f47ee9
HAHAHHAHAHA YES IT WORKS
Some checks failed
Build PR / linux-arm64 (Release) (pull_request) Has been cancelled
Build PR / linux-x64 (Release) (pull_request) Has been cancelled
Build PR / win-arm64 (Release) (pull_request) Has been cancelled
Build PR / win-x64 (Release) (pull_request) Has been cancelled
Build PR / macOS Universal (Release) (pull_request) Has been cancelled
6a165c4c31
It just works (tm)
Some checks failed
Build PR / linux-arm64 (Release) (pull_request) Has been cancelled
Build PR / linux-x64 (Release) (pull_request) Has been cancelled
Build PR / win-arm64 (Release) (pull_request) Has been cancelled
Build PR / win-x64 (Release) (pull_request) Has been cancelled
Build PR / macOS Universal (Release) (pull_request) Has been cancelled
305af600e9
RecursiveMemory changed title from WIP: Discord Rich Presence: New Super Mario Bros U Deluxe to Discord Rich Presence: New Super Mario Bros U Deluxe 2026-06-15 00:43:05 +00:00
RecursiveMemory changed title from Discord Rich Presence: New Super Mario Bros U Deluxe to WIP: Discord Rich Presence: New Super Mario Bros U Deluxe 2026-06-15 00:43:11 +00:00
Remove insane ramblings
Some checks failed
Build PR / linux-arm64 (Release) (pull_request) Has been cancelled
Build PR / linux-x64 (Release) (pull_request) Has been cancelled
Build PR / win-arm64 (Release) (pull_request) Has been cancelled
Build PR / win-x64 (Release) (pull_request) Has been cancelled
Build PR / macOS Universal (Release) (pull_request) Has been cancelled
c791b682ac
RecursiveMemory changed title from WIP: Discord Rich Presence: New Super Mario Bros U Deluxe to Discord Rich Presence: New Super Mario Bros U Deluxe 2026-06-15 00:50:24 +00:00
Author
Member

@Awesomeangotti wrote in #130 (comment):

Eh we doing it anyways. Got a nasty case off too much time, getting kinda pissed if I do not do it "well enough", and enough 100% save files to make it a breeze.

It was in fact not a breeze

@Awesomeangotti wrote in https://git.ryujinx.app/projects/Ryubing/pulls/130#issuecomment-4645: > Eh we doing it anyways. Got a nasty case off too much time, getting kinda pissed if I do not do it "well enough", and enough 100% save files to make it a breeze. It was in fact not a breeze
Probably more in line with guidelines?
Some checks failed
Build PR / linux-arm64 (Release) (pull_request) Has been cancelled
Build PR / linux-x64 (Release) (pull_request) Has been cancelled
Build PR / win-arm64 (Release) (pull_request) Has been cancelled
Build PR / win-x64 (Release) (pull_request) Has been cancelled
Build PR / macOS Universal (Release) (pull_request) Has been cancelled
5c73a71bf1
# Conflicts:
#	src/Ryujinx/Systems/PlayReport/PlayReports.Formatters.cs
#	src/Ryujinx/Systems/PlayReport/PlayReports.cs
Fixed a bug with hazard stages and removed testing things I forgot to remove
Some checks failed
Build PR / linux-arm64 (Release) (pull_request) Has been cancelled
Build PR / linux-x64 (Release) (pull_request) Has been cancelled
Build PR / win-arm64 (Release) (pull_request) Has been cancelled
Build PR / win-x64 (Release) (pull_request) Has been cancelled
Build PR / macOS Universal (Release) (pull_request) Has been cancelled
0d59922329
Forgot to put title ID in comment by playreports.cs thing
Some checks failed
Build PR / linux-arm64 (Release) (pull_request) Has been cancelled
Build PR / linux-x64 (Release) (pull_request) Has been cancelled
Build PR / win-arm64 (Release) (pull_request) Has been cancelled
Build PR / win-x64 (Release) (pull_request) Has been cancelled
Build PR / macOS Universal (Release) (pull_request) Has been cancelled
969be813d6
Ghost left a comment

Looks good, way more effort than I would have put in for adding level names :dog_kek: Maybe I should go back and do this for Wonder (that requires finishing the game on my end, first, I didn't wanna spoil myself too much writing the playreport data)... Requested some changes.

Looks good, way more effort than I would have put in for adding level names :dog_kek: Maybe I should go back and do this for Wonder (that requires finishing the game on my end, first, I didn't wanna spoil myself *too* much writing the playreport data)... Requested some changes.
@ -1119,0 +1156,4 @@
"0" => "mario",
"1" => "luigi",
"4" => "mario",
"5" => "mario",

What is MorL and what do these strings reference? If they're names, shouldn't they be capitalized? We might consider changing the method name here for clarity.

What is `MorL` and what do these strings reference? If they're names, shouldn't they be capitalized? We might consider changing the method name here for clarity.
Author
Member

Renamed name for clarity. They are arbitrary strings used to select specific keys in the json file so the proper course name is applied. They are not capitalized to match with the json file structure thing

Renamed name for clarity. They are arbitrary strings used to select specific keys in the json file so the proper course name is applied. They are not capitalized to match with the json file structure thing
RecursiveMemory marked this conversation as resolved
@ -1119,0 +1142,4 @@
}
catch
{
return $"Last Played: Something unaccounted for";

You should return FormattedValue.ForceReset or its equivalent here instead. This resets the RPC to its default.

You should return `FormattedValue.ForceReset` or its equivalent here instead. This resets the RPC to its default.
RecursiveMemory marked this conversation as resolved
@ -1119,0 +1179,4 @@
"6" => course,
"7" => course,
"8" => course,
"9" => course,

You can set this to:

>= 1 and <= 9 => course,

and so on and so forth to avoid repetitive declarations.

You can set this to: ```cs >= 1 and <= 9 => course, ``` and so on and so forth to avoid repetitive declarations.
Author
Member

Ok so Imma have to do some SLIGHT tomfoolery to upgrade this due to my usage of strings

Ok so Imma have to do some SLIGHT tomfoolery to upgrade this due to my usage of strings
RecursiveMemory marked this conversation as resolved
@ -141,0 +142,4 @@
"0100ea80032ea000", // New Super Mario Bros U Deluxe 0100ea80032ea000
spec => spec
.WithDescription("based on world map return info.")
.AddSparseMultiValueFormatter(["WorldNo", "CourseNo", "RlId", "TotalPlayTime", "GameModeType"], NSMBUDRPC)
  • You don't need the title ID in the comment.
  • We should rename the method to NsmbudRpc for clarity.
- You don't need the title ID in the comment. - We should rename the method to `NsmbudRpc` for clarity.
RecursiveMemory marked this conversation as resolved
Author
Member

I have begun work on fixes. I can do the mario wonder stuff based off this after its merged instead of you doing it btw

I have begun work on fixes. I can do the mario wonder stuff based off this after its merged instead of you doing it btw
All but weird string thing fixes
Some checks failed
Build PR / linux-arm64 (Release) (pull_request) Has been cancelled
Build PR / linux-x64 (Release) (pull_request) Has been cancelled
Build PR / win-arm64 (Release) (pull_request) Has been cancelled
Build PR / win-x64 (Release) (pull_request) Has been cancelled
Build PR / macOS Universal (Release) (pull_request) Has been cancelled
79c3a5cf61
Fix 2 WAIT UNTIL I DM YOU BEFORE MERGE I STILL GOTTA TEST I JUST GOTTA PULL THE LANG FIX
All checks were successful
Build PR / linux-arm64 (Release) (pull_request) Successful in 4m15s
Build PR / linux-x64 (Release) (pull_request) Successful in 7m44s
Build PR / win-arm64 (Release) (pull_request) Successful in 7m7s
Build PR / macOS Universal (Release) (pull_request) Successful in 6m48s
Build PR / win-x64 (Release) (pull_request) Successful in 11m48s
420badc62c
Author
Member

Yeah I could go ahead and try to do wonder tomorrow

Yeah I could go ahead and try to do wonder tomorrow
Merge branch 'master' into NSMBUDRPC
Some checks failed
Build PR / linux-arm64 (Release) (pull_request) Has been cancelled
Build PR / linux-x64 (Release) (pull_request) Has been cancelled
Build PR / win-arm64 (Release) (pull_request) Has been cancelled
Build PR / win-x64 (Release) (pull_request) Has been cancelled
Build PR / macOS Universal (Release) (pull_request) Has been cancelled
9bb99d30c4
Ghost merged commit be5881f100 into master 2026-06-25 20:59:57 +00:00
Ghost deleted branch NSMBUDRPC 2026-06-25 20:59:58 +00:00
Ghost added this to the 1.4.0 milestone 2026-06-27 13:09:48 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
projects/Ryubing!130
No description provided.