banner
Rating
Voted0

Discord RPC 2 mod

1
Mod version:2.7.4
Game version:all
The mod has been successfully tested for the absence of viruses
17549.72K419.95K

Report mod

  • image
  • image
modalImage

About This Mod

It's a mod for Cyberpunk 2077 that adds Discord Rich Presence to the game!


I've already made a mod that claimed to do the same, but it used CET and an external application (not very convenient).

This new version is self-contained!


Features

Large image depending on the sex of the character.

Level and Street Cred are displayed when you hover over a large image.

The small image is based on the path of life.

When hovering over a small image:

Time of the game (optional, experimental).

Life path.

Track quests and targets (optional).

Driving activity (optional).

Combat activity (optional).

Radioactivity (optional) with RadioExt integration (also optional).

Roaming activity (without a selected quest), which indicates which area the player is in.

Requirements

RED4ext 1.24.3+

redscript 0.5.18+

CET 1.32.0+


Add translations


The translation template is now available in the Files tab!


Note: I don't accept PR (on GitHub), which adds other languages, as for me it will be a nightmare in terms of support. Therefore, this fashion has support for other mods to provide translations (see below).


Other CET mods can register locales using the CP77RPC2.RegisterLocale function.


The following code snippet can help you get started:

- Name used to register for the "onTweak" event

local langName = "Italian"

- Unique identifier for this locale

local localeName = "it"

local locale = {

- All locale keys and their meaning can be found at https://github.com/Marco4413/CP77-DiscordRPC2/blob/master/src/cet/locales/en.lua.

- If the key has not been translated, it can be omitted and the English language will be returned.

["Locale.Name"] = "Italiano (by Marco4413)",

...

}


registerForEvent("onTweak", function()

local CP77RPC2 = GetMod("CP77RPC2")

if not CP77RPC2 then

print("[CP77RPC2 - " ... langName ... " Translation]: CP77RPC2 is not installed.")

return

end


local ok, error = CP77RPC2.RegisterLocale(localeName, locale)

if ok then

print("[CP77RPC2 - " ... langName ... " Translation]: Translation is registered!")

else

print("[CP77RPC2 - " ... langName ... " Translation]: Failed to register translation: ", error)

end

end)

Similar Mods/Addons

Game Version *

all (DiscordRPC2-10831-2-7-4-1713531792.zip)