-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Hello~
A while ago I looked into the changes required to send the RPC data to my DiscordPBT installation, as well as my normal Discord.
Currently, I'm starting two versions of GW2RPC. The normal and a modified installation where i changed this line in rpc.py:
class DiscordRPC:
def __init__(self, client_id):
self.ipc_path = r'\\?\pipe\discord-ipc-1' # Changed 0 to 1IIRC DiscordRPC can use pipes numbered from 0 to 9- usually, it will use 0 first, then 1, ...
As I have two Discord installations, the pipe they use changes depending on which starts faster x.x
From what I understand you moved away from DiscordRPC to the Discord SDK.
But as I don't have more knowledge on that or your project, I'm merely asking: Is it- with moderate work to do- possible to support multiple installations from the get-go? As in one GW2RPC open and data sent to all available Discord installations.
Or do you know off the top of your head if I can make changes so that the new SDK version uses a different Discord installation?
It still appears to use the first one I opened - or at least not only the normal Discord client.
And as a side note regarding this.
While making my changes and creating my .exe file, I got errors that the discord_game_sdk.dll file was not found. Copying the DLL into the /dist folder, where I executed my version, solved this. Your zip download however didn't need to include the DLL file separate from the .exe. Honestly no clue why not.
Again, I don't really know much about .spec, but including the DLL into the added files got rid of the error and showed the usual info when in-game. Might be a worthwhile change?
added_files = [("locales", "locales"), ('icon.ico', '.'), ('RPC.ico', '.'), ('lib\\discord_game_sdk.dll', '.')]
Thanks for reading~ not really an expert in any of this, so maybe the questions seem strange, idk. >.<