0 of 0

File information

Last updated

Original upload

Created by

shudnal

Uploaded by

shudnal

Virus scan

Safe to use

Tags for this mod

26 comments

  1. wicaco
    wicaco
    • member
    • 0 kudos
    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.
    1. shudnal
      shudnal
      • supporter
      • 39 kudos
      You just have two files RichDiscordPresence.dll in ..\BepInEx\plugins folder somewhere. They are identical so no worries.
    2. wicaco
      wicaco
      • member
      • 0 kudos
      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?
    3. shudnal
      shudnal
      • supporter
      • 39 kudos
      You can enable logging and see if there are events in log file tied to state change.
    4. shudnal
      shudnal
      • supporter
      • 39 kudos
      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.
    5. wicaco
      wicaco
      • member
      • 0 kudos
      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!
    6. shudnal
      shudnal
      • supporter
      • 39 kudos
      Log file looks fine. Then you either have 

      • 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.

      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.
    7. wicaco
      wicaco
      • member
      • 0 kudos
      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!
    8. shudnal
      shudnal
      • supporter
      • 39 kudos
      Glad to hear you figured it out. And also administrator mode is a good clue.
  2. ErDu
    ErDu
    • member
    • 0 kudos
    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()
    1. shudnal
      shudnal
      • supporter
      • 39 kudos
      This is pure client-sided mod. It needs Discord client running to send status to.
    2. ErDu
      ErDu
      • member
      • 0 kudos
      I will test it on the client. Thank you!
  3. OChaoticFish
    OChaoticFish
    • supporter
    • 0 kudos
    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
    1. shudnal
      shudnal
      • supporter
      • 39 kudos
      It would be handy if I had some more than "error in the BepInEx logs" to fix this. Also the game version, steam or gamepass.
    2. shudnal
      shudnal
      • supporter
      • 39 kudos
      Did some refinements in version 1.0.4. Pls check if it helps.
  4. K9Kat777
    K9Kat777
    • member
    • 0 kudos
    Does it only work on the steam version? It won't work at all the pc gamepass version even though everything else does
    1. shudnal
      shudnal
      • supporter
      • 39 kudos
      Pls check if 1.0.2 version works.
    2. yawningx
      yawningx
      • member
      • 0 kudos
      Hi! 

      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
    3. shudnal
      shudnal
      • supporter
      • 39 kudos
      1.0.3 should work. Pls check
    4. yawningx
      yawningx
      • member
      • 0 kudos
      Works perfectly, thank you for the quick fix! :)
  5. MissPat
    MissPat
    • member
    • 1 kudos
    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.
    1. shudnal
      shudnal
      • supporter
      • 39 kudos
      There is no need of installing on the server as it's purely client-sided. No harm either though.
    2. MissPat
      MissPat
      • member
      • 1 kudos
      Noted, thanks for the reply!
  6. Warkingz2021
    Warkingz2021
    • member
    • 0 kudos
    is this server side install ?
    1. shudnal
      shudnal
      • supporter
      • 39 kudos
      No it's purely client-side. You also need local Discord app running to have effect. 
  7. rahulbarai
    rahulbarai
    • member
    • 0 kudos
    going to try this mod today