Repository navigation
Discord Rich Presence - #79
Merged
Merged
Conversation
…rd profile - runtime/src/psp_discord.cpp: Discord desktop IPC client without the SDK (Unix socket discord-ipc-N incl. Flatpak/Snap/Vesktop paths, Windows named pipe), one background thread, sends only changes, at most one per 4 s, reconnects with back-off, clears on quit and when switched off; no-op on Android - Settings > Network > Discord: on/off (saved as discord=) and a connection line - games/dissidia/runtime/discord_presence.cpp: title screen, main menu, the chosen mode (from the start menu cursors), fighters (manikins by name, roster.txt nm= labels), stage, fight timer, Communications Mode party size - runtime/tests/test_discord.cpp: JSON checks and a full session against a fake Discord app (Unix socket and Windows named pipe) - docs: games/dissidia/docs/discord.md, ARCHITECTURE, READMEs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ing sides (the real-speed intro outlasted 6 s) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The save's player name (UTF-16 at 0x08BCEB40) is this copy's ad-hoc nickname (psp_adhoc_set_nickname, was "Player"; PSPRECOMP_ADHOC_NICK still wins) - Status: "With Zack" in rooms, "Ender (Lightning) vs. Zack (Laguna)" one on one, every player on hover, one Discord party per room (psp_adhoc_group_key) - Own fighter = actor +0x5B0 bit 0x04: online the other players' fighters are in human mode too, so the brain flag picked the wrong side on one of the two copies - Tested with two copies in a LAN Group Battle (Ender vs Zack, different characters) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Discord Rich Presence: while the Discord desktop app runs on the same computer, the player's Discord profile shows what they are doing in the game.
runtime/src/psp_discord.cpp(generic, no Discord SDK): talks to the desktop app's local IPC (Unix socketdiscord-ipc-Nincl. Flatpak / Snap / Vesktop folders, Windows named pipe). One background thread, sends only changes, at most one per 4 s (Discord's rate limit), reconnects with back-off when Discord starts later or restarts, clears the status on quit and when switched off. No-op on Android.discord=) and a connection line.games/dissidia/runtime/discord_presence.cpp: title screen, main menu, the chosen mode (read from the start menu cursors), stage, fighters (manikins by their own names, roster mods bynm=), fight timer.games/dissidia/docs/discord.md, ARCHITECTURE, READMEs, settings and multiplayer docs.Tested:
ctest -R discord: JSON checks plus a full session against a fake Discord app (handshake, rate limit, ping, off / on, Discord restarting, clear on quit) on Linux, and the Windows build of the test under Wine (named pipe).Release notes
🤖 Generated with Claude Code