Cyber Rich Presence - Discord RPC

Cyber Rich Presence - Discord RPC

Discord Rich Presence for Cyberpunk 2077 that you fully control. Shows your quest, district, car, radio, fights and menus. Every line, image, button and even the app name comes from one INI you can edit while playing. No CET needed. Builds for 2.5 and 2.31.

[center][font=Courier New][size=2][color=#5865F2]> discord.ipc :: connection established[/color][/size][/font]

[size=6][b][color=#FCEE0A]CYBER RICH PRESENCE[/color][/b][/size]
[font=Courier New][size=3][color=#9aa0a6]your discord status, written by night city[/color][/size][/font][/center]

[color=#3a3a3a][/color]

[size=4][b][color=#FCEE0A]What your friends see[/color][/b][/size]

[quote][font=Courier New][color=#5865F2]PLAYING[/color] [b]Cyberpunk 2077[/b]
Driving the Quadra Turbo-R at 142 km/h
Kabuki, Watson[/font][/quote][quote][font=Courier New][color=#5865F2]PLAYING[/color] [b]Cyberpunk 2077[/b]
The Pickup
Meet Dex[/font][/quote][quote][font=Courier New][color=#5865F2]PLAYING[/color] [b]Cyberpunk 2077[/b]
In combat | 380/400 HP
Fighting with Malorian Arms 3516 in Watson[/font][/quote]
It follows what you do: exploring, quests, driving, parking with the radio on, fights, menus, photo mode, even flatlining. Hover the images and you get your level, Street Cred, lifepath and eddies. Names come from the game itself, so they show up in your game language.

[color=#3a3a3a]
[/color]

[size=4][b][color=#FCEE0A]How it compares[/color][/b][/size]

There are already two Discord presence mods for Cyberpunk. Both are good, and this one wouldn't exist without them. Here's where they differ.

[font=Courier New][color=#5865F2]//[/color][/font] [url=https://www.nexusmods.com/cyberpunk2077/mods/986][b]CP77 Discord RPC[/b][/url] by WillyJL
The one that started it all. It shows your level, Street Cred, lifepath and quest. It needs Cyber Engine Tweaks, a helper .asi and Discord's game SDK DLL. It was last tested on patch 1.5 and isn't getting new features anymore.

[font=Courier New][color=#5865F2]//[/color][/font] [url=https://www.nexusmods.com/cyberpunk2077/mods/10831][b]Discord RPC 2[/b][/url] by Marco4413
The current go-to, and it works on 2.5. It needs Cyber Engine Tweaks, RED4ext and redscript. It has a nice in-game settings menu, RadioExt support and translation add-ons. But the Discord app (the title and the images) is built into its scripts, the texts can only be changed by writing a Lua translation mod, and there are no buttons.

[font=Courier New][color=#5865F2]//[/color][/font] [b]Cyber Rich Presence[/b]
Built for people who want to decide exactly what their status says.

[font=Courier New][color=#FCEE0A]01[/color][/font]  [b]No Cyber Engine Tweaks.[/b] Just RED4ext and redscript, and no Discord DLL either.
[font=Courier New][color=#FCEE0A]02[/color][/font]  [b]One INI for everything:[/b] app, name, images, every line of text, buttons.
[font=Courier New][color=#FCEE0A]03[/color][/font]  [b]Two buttons[/b] with your own text and links.
[font=Courier New][color=#FCEE0A]04[/color][/font]  [b]Your own situations.[/b] Write simple conditions, choose their order, hide your status where you want.
[font=Courier New][color=#FCEE0A]05[/color][/font]  [b]Live edits.[/b] Save the INI mid-game, Discord updates a few seconds later.
[font=Courier New][color=#FCEE0A]06[/color][/font]  [b]No blank lines.[/b] If there's no quest or no radio, it picks your next option.
[font=Courier New][color=#FCEE0A]07[/color][/font]  [b]Translate by just typing.[/b] No add-on needed, game names are already in your language.
[font=Courier New][color=#FCEE0A]08[/color][/font]  [b]Open to other mods.[/b] They can push a short message or a flag to your status.
[font=Courier New][color=#FCEE0A]09[/color][/font]  [b]Optional stats button[/b] that cycles through your level, Street Cred, eddies and more.

[b]What Discord RPC 2 does that this doesn't:[/b] an in-game settings menu, RadioExt song names and playthrough time. If you want toggles in a menu, stick with it. If you want full control, you're in the right place.

Inspired by doodlum's [url=https://www.nexusmods.com/skyrimspecialedition/mods/84847]Skyrim Discord Rich Presence[/url], which works the same way: one plugin, one INI.

[color=#3a3a3a][/color]

[size=4][b][color=#FCEE0A]Requirements[/color][/b][/size]

[b]Needs:[/b] [url=https://www.nexusmods.com/cyberpunk2077/mods/2380]RED4ext[/url], [url=https://www.nexusmods.com/cyberpunk2077/mods/1511]redscript[/url] and the Discord desktop app.

[b]Pick one file:[/b] [color=#FCEE0A]2.5[/color] or [color=#FCEE0A]2.31[/color], whichever matches your game. Not both.

Install it with your mod manager, or drop the zip's content into your Cyberpunk 2077 folder. If you use another Discord presence mod, turn it off first, or the two will keep overwriting each other.

[color=#3a3a3a]
[/color]

[size=4][b][color=#FCEE0A]Make it yours[/color][/b][/size]

Open [font=Courier New]red4ext\plugins\CyberRichPresence\CyberRichPresence.ini[/font].

[b]Your buttons[/b]
[quote][font=Courier New][Buttons]
Button1Label = My modlist
Button1Url = https://www.nexusmods.com/...
Button2Label = Join us
Button2Url = https://discord.gg/...[/font][/quote]
[b]Your words[/b]
Each situation has its own section. Words in {brackets} get filled in by the game, and [b]||[/b] means "otherwise, use this".
[quote][font=Courier New][Context.Driving]
Details = Cruising in my {vehicle} at {speed_kmh} km/h || Cruising around
State = {district}[/font][/quote]
[b]Your name and pictures[/b]
Create an app on the [url=https://discord.com/developers/applications]Discord Developer Portal[/url]. Its name is what appears after "Playing". Upload your pictures in Rich Presence > Art Assets, then put the app ID in [font=Courier New]ApplicationID[/font] and your picture names in [font=Courier New]Known[/font]. A direct image link works too.

[spoiler]Every variable, filter and condition is listed on [url=https://github.com/Alaxouche/CyberRichPresence]GitHub[/url]. A few examples: {level}, {street_cred}, {eddies}, {quest}, {objective}, {vehicle}, {radio_song}, {weapon}, {time}, {district}.[/spoiler]

[color=#3a3a3a][/color]

[size=4][b][color=#FCEE0A]Known glitches (that aren't)[/color][/b][/size]

[font=Courier New][color=#5865F2]>[/color][/font] [b]"My buttons don't show."[/b]
Discord hides your own buttons from you. Everyone else sees them. Ask a friend.

[font=Courier New][color=#5865F2]>[/color][/font] [b]"Name didn't change."[/b]
Discord sometimes keeps the app's own name. Make your own app with the name you want and it will stick.

[font=Courier New][color=#5865F2]>[/color][/font] [b]"Nothing at all."[/b]
Use the desktop app, not the browser version, and make sure Discord is allowed to show your game activity in its privacy settings. The log is in [font=Courier New]red4ext\logs[/font].

[font=Courier New][color=#5865F2]>[/color][/font] [b]"A picture is missing."[/b]
Its name has to exist in your Discord app and be listed in [font=Courier New]Known[/font]. If not, the next option is used.

[font=Courier New][color=#5865F2]>[/color][/font] [b]"Can my mod use this?"[/b]
Yes. From redscript, [font=Courier New]CRP_Message("text")[/font] shows a short message and [font=Courier New]CRP_SetFlag("name", true)[/font] adds a flag for your own conditions.

[color=#3a3a3a]
[/color]

[size=4][b][color=#FCEE0A]Credits and Source[/color][/b][/size]

Thanks to[b] doodlum[/b] for the idea. [b]WillyJL[/b] for the first Cyberpunk presence mod. [b]Marco4413[/b] for [url=https://www.nexusmods.com/cyberpunk2077/mods/10831]Discord RPC 2[/url] and the default Cyberpunk 2077 Discord app. [b]WopsS[/b] and the RED4ext team, and [b]jac3km4[/b] for redscript.

Source code can be found [url=https://github.com/Alaxouche/CyberRichPresence]here[/url].

[center][font=Courier New][size=2][color=#5865F2]> discord.ipc :: presence cleared. wake up, samurai.[/color][/size][/font][/center]