Hello! I'm having a bit of an issue getting this mod to work. BepInEx says the following whenever I launch the game (no other errors, followed all other instructions in the description)
[Warning: BepInEx] Skipping [Rich Discord Presence 1.0.5] because a newer version exists (Rich Discord Presence 1.0.5)
Do you know why this might be? It's a fresh install--redownloading the mod (no matter if it's from Nexus or Thunderstore) doesn't seem to solve the issue.
Lovely, thank you! I deleted the extra file. I've ran into another problem, though--the BepInEx log is updating my location, and the mod seems to be working on the Valheim end of things.
On the Discord end, however, it simply just says that I'm "playing Valheim" without any additional information. I've put in the correct application ID from the Discord Developer Portal, and have Rich Presence enabled. I've also checked to make sure that the mod itself is enabled. Do you know why I might be running into this issue?
I had to check if it still works. There was a rename of Rich Presence setting in current Discord client. It's now Activity Privacy -> Share your detected activities with others but other than that it still works just fine. I've followed the description steps to create new app from scratch.
I appreciate the help! Unfortunately, it still doesn't appear to be working for me--I'll keep messing with Discord and see where it gets me. Here's the LogOutput file if you want to take a look. Thank you for the quick responses!
application configured wrong (idk how honestly but check logo file and name)
desktop discord app is not running next to the game
active discord account does not allow sharing detected activities
To be more specific how it works. Mod uses discord-rpc.dll library located next to plugin dll to send Rich Presence updates to your local discord client changing Rich Presence of currently active account. Instead of real Valheim app (app on discord developer portal which valheim devs didn't make yet but I think they will) you have to use your own app that looks like real Valheim but it is not. So when you first run the game the mod use discord-rpc.dll to detect running discord app and start sending Rich Presence updates to it.
So to be sure you have to check:
if discord-rpc.dll is located next to RichDiscordPresence.dll (it should be there otherwise you would be getting error in log file)
if your local discord app is running in the same environment as Valheim (you're on Windows so Discord.exe should be in task manager process tab next to Valheim.exe)
if you local discord was running before game starts (it is not really required but worth the try)
if the Application ID of your discord developer portal app set right
if you currently actuve Discord account has Activity Privacy -> Share your detected activities with others enabled.
Ahh I was able to figure it out! So it seems I was doing everything correctly, except for one minor thing - I was running Discord in administrator mode. That seems to interfere with the mod sending updates to Discord, so it might be worth noting! Thank you so much for your help, I appreciate it!
Hello, we are installing your mod on the server HIJOS DE FREYJA but it does not work because it gives error in the server load. These are the logputout lines Thank you for your time!
[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an objectStack trace: RichDiscordPresence.RichDiscordPresence.Awake () (at <94def99d615c417e90a55ea9a9c0ff75>:0) UnityEngine.GameObject:AddComponent(Type) BepInEx.Bootstrap.Chainloader:Start() UnityEngine.GameObject:.cctor() Fishlabs.Common.SingletonMonoBehaviour`1:get_Instance() Fishlabs.PlatformManagerInitializer:OnRuntimeMethodLoad()
[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object Stack trace: RichDiscordPresence.RichDiscordPresence.OnDisable () (at <94def99d615c417e90a55ea9a9c0ff75>:0) UnityEngine.GameObject:AddComponent(Type) BepInEx.Bootstrap.Chainloader:Start() UnityEngine.GameObject:.cctor() Fishlabs.Common.SingletonMonoBehaviour`1:get_Instance() Fishlabs.PlatformManagerInitializer:OnRuntimeMethodLoad()
Love this mod, the only issue I've had is sometimes it'll say I'm at the menu when in multiplayer and the Safe at Home status never works it always gives me an error in the BepInEx logs whenever trying to update the status. Just leaves it as playing multiplayer
Can confirm it doesn't work on Gamepass version with 1.0.2 either, the log has the following error:
[Error : Unity Log] TypeLoadException: Could not resolve type with token 0100003e from typeref (expected class 'SteamManager' in assembly 'assembly_valheim, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null') Stack trace: UnityEngine.GameObject:AddComponent(Type) BepInEx.Bootstrap.Chainloader:Start() UnityEngine.UI.Graphic:get_canvas() TMPro.TextMeshProUGUI:OnCanvasHierarchyChanged() [Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object Stack trace: RichDiscordPresence.RichDiscordPresence.OnDisable () (at <Removed this as I'm unsure if this is a personal ID or something>:0) UnityEngine.GameObject:AddComponent(Type) BepInEx.Bootstrap.Chainloader:Start() UnityEngine.UI.Graphic:get_canvas() TMPro.TextMeshProUGUI:OnCanvasHierarchyChanged()
Installed tonight on a dedicated server and on my local PC and it works flawlessly! Thank you for this amazing mod! Fun to discover the various status messages popping up on Discord.
26 comments
[Warning: BepInEx] Skipping [Rich Discord Presence 1.0.5] because a newer version exists (Rich Discord Presence 1.0.5)
Do you know why this might be? It's a fresh install--redownloading the mod (no matter if it's from Nexus or Thunderstore) doesn't seem to solve the issue.
On the Discord end, however, it simply just says that I'm "playing Valheim" without any additional information. I've put in the correct application ID from the Discord Developer Portal, and have Rich Presence enabled. I've also checked to make sure that the mod itself is enabled. Do you know why I might be running into this issue?
To be more specific how it works. Mod uses discord-rpc.dll library located next to plugin dll to send Rich Presence updates to your local discord client changing Rich Presence of currently active account. Instead of real Valheim app (app on discord developer portal which valheim devs didn't make yet but I think they will) you have to use your own app that looks like real Valheim but it is not.
So when you first run the game the mod use discord-rpc.dll to detect running discord app and start sending Rich Presence updates to it.
So to be sure you have to check:
The mod itself can't check
- if there are really a Discord app on other side
- if the Application ID you set is right
It just blindly sends updates.Thank you for your time!
[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an objectStack trace:
RichDiscordPresence.RichDiscordPresence.Awake () (at <94def99d615c417e90a55ea9a9c0ff75>:0)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.GameObject:.cctor()
Fishlabs.Common.SingletonMonoBehaviour`1:get_Instance()
Fishlabs.PlatformManagerInitializer:OnRuntimeMethodLoad()
[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
RichDiscordPresence.RichDiscordPresence.OnDisable () (at <94def99d615c417e90a55ea9a9c0ff75>:0)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.GameObject:.cctor()
Fishlabs.Common.SingletonMonoBehaviour`1:get_Instance()
Fishlabs.PlatformManagerInitializer:OnRuntimeMethodLoad()
Can confirm it doesn't work on Gamepass version with 1.0.2 either, the log has the following error:
[Error : Unity Log] TypeLoadException: Could not resolve type with token 0100003e from typeref (expected class 'SteamManager' in assembly 'assembly_valheim, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null')
Stack trace:
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.UI.Graphic:get_canvas()
TMPro.TextMeshProUGUI:OnCanvasHierarchyChanged()
[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
RichDiscordPresence.RichDiscordPresence.OnDisable () (at <Removed this as I'm unsure if this is a personal ID or something>:0)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.UI.Graphic:get_canvas()
TMPro.TextMeshProUGUI:OnCanvasHierarchyChanged()
The mod doesn't appear in config manager