RiiConnect24 / RiiTag

RiiTag is a customizable gamertag for the Wii.
https://tag.rc24.xyz/
GNU Affero General Public License v3.0
14 stars 7 forks source link

Add support for 3DS games via webhook #14

Open larsenv opened 3 years ago

larsenv commented 3 years ago

As you know, for the Wii and the Wii U to integrate with RiiTag, it basically uses a webhook to update your tag with a game ID. For Wii, you use a USB Loader, and for Wii U, you use a plugin.

I want there to be a way to update your RiiTag when you play a 3DS game, but I'm not sure what the best way to do that is. @twosecslater was looking into it after he made the Wii U plugin, but I don't think he got anything working. I don't think Luma3DS wasn't built in mind to support plugins, but there are forks of it. There's also this.

I remember shutterbug had some sort of rich presence for the 3DS, I think he did that by using some Python scripts? Doing it that way wouldn't be ideal.

2secslater commented 3 years ago

I tried to write a Luma plugin, however, I couldn't seem to do anything with networking (where it would work if it was a normal homebrew application).

Currently, on the server-side, there is no 3DS endpoint or title list, which isn't a large problem as we have everything we need to set this up.

bennyman123abc commented 3 years ago

@2secslater Getting a 3DS endpoint working would take no longer than an afternoon. Getting the compatibility software written for the 3DS is another story, however.

larsenv commented 3 years ago

It would take less than an afternoon.

larsenv commented 3 years ago

So, bumping this.

Citra (3DS emulator) has rich presence support for Discord.

For the time being, we could allow 3DS game support by doing that, just like how RiiTag automagically can detect your games from Dolphin's rich presence.

Unfortunately, unlike Dolphin, Citra does not specify the game ID in the rich presence. Not a big deal though, it shouldn't be that hard to see if they have a list of game titles paired with the game IDs, then we can match that to GameTDB.


About having Wii U and DS games be added with rich presence...

I don't know for sure, but doesn't Cemu have rich presence as well? I never used Citra nor Cemu, so I'm not very familiar.

Also, melonDS is the best DS emulator in my opinion, but the devs for it don't understand the point of having support for rich presence nor RiiTag.


I can't remember if the source code for the bot we run to check the Dolphin rich presence is open-source or not, but it should easily be modifiable. It's super lightweight, and Discord sends a packet every time someone uses the rich presence.

Sorry for such a long comment here. @TheShadowEevee, it would be great if you could help out if you have the time!

TheShadowEevee commented 3 years ago

I'll take a look at Cemu when I have some time, although I can't find the code for the Dolphin RPC Checker. On that topic since I'm looking at the Wii U side of things I'll take a look at #34 and see if I can't fix that; the main issue should just be grabbing the IDs then formatting them.