-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error 51 whilst trying to connect #7
Comments
alright nvm after a bit more searching i found out that it just can't find any clients connected running thru and trying to understand what it's doing, it reaches this part of the code in DiscordRPC.gd
it loops 10 times, the the first check of _ipc.open(final_path) returns ERR_FILE_CANT_OPEN, subsequent checks returns ERR_FILE_NOT_FOUND still have no idea what's going on as i'm not all that familiar with the discord RPC specification |
Discord RPC is done through a Unix socket on Linux/MacOS and a Named pipe on Windows (think of the latter as a file) Each Discord instance creates the socket/named pipe on an endpoint named so here is what I think is a possible cause of failure on windows:
it is also good to note that my implementation for Godot 3.x is poor comparing to the rewrite for Godot 4.x, I just don't happen to have time to invest on refactoring the 3.x branch |
I've handed out the executable to multiple others, and they all seem to get the same read/write permission error so i doubt it's a privilege thing? Do you have any other possible ideas? |
Interesting... will try to investigate when I get on Windows |
thanks for your time! |
okay i seem to have got it working myself, it seems like my steam integration was blocking it? idk if steam would just block file requests like that but it's possible? |
Okay yea, steam itself does not block the file requests, however my integration layer with steam, "godotsteam" seems to be interfering |
🤔 that's even weirder, are you using the GDNative version or as a Godot module ? |
the godot module, more specifically the pre-compiled version |
if it helps in any way, here's a minimum-reproducable-project.zip i made |
In my Windows implementation I used Godot's So I have inspected Godot's source code and found that they are using _wfsopen to deal with files on windows: And there seems to be a way to intercept _wfsopen calls, however it's kinda hard to confirm whether this is the case since SteamworksSDK is closed source |
I've implemented this project into my game built with Godot 3.5.2, running it on Linux works perfectly fine at works great! But whenever i try running the game on windows it errors out and gives me errors 51 and i was wondering what it meant?
this is the relevant code in case i just completely missed something
The text was updated successfully, but these errors were encountered: