godot-discord-game-sdk's People
godot-discord-game-sdk's Issues
Godot 4
Hello,
I want to implement Discord-SDK in my game, but I'm using Godot 4, does your plugin work with this version ?
Unable to redetect discord after closing it
Steps to reproduce:
Play game with discord open
Close discord and reopen it
The rich presence is not activated
OR
Play game with discord closed
Open discord
And rich presence is missing :(
No Discord crashes Game (Editor Debug) - even with the flag "NoRequireDiscord"
The plugin works (at least RichPresence, I'm only using that) - but only when discord is running and you are logged in
I have the RichPresence Scene in my main-scene and this is what happens:
the above will not happen if Discord is open (regardless of if you are logged in or not) but if you are not logged in and you close your game this happens:
I have tested more cases (including some where i turn down dc in the task manager) and found, that this will only work with discord being online all the time
Exported Versions:
I only tested for Win Desktop (and I have export selected resources and dependencies in the export tab enabled and selected everything):
testing with both debug enabled and disabled:
it works completely fine, regardles of discord being open or closed (I also switched back to the editor immediately after that and it still has its errors) - this is the first time ever that I have seen where the exported version runs without flaws even if the editor throws errors ( I cannot assure you that the game doesnt crash when you close it though)
what is possibly going on so that the editor is so unstatisfied with the discord plugin - am I missing another option?
Edit: I give additional screenshots
I am using 3.5.stable (steam-version)
Failed to get modified time discord_sdk.gdnlib.
I got this error after I updated the addon
Cannot create new class
I'm getting Attempt to call function 'new' in base 'NativeScript' on a null instance.
every time I want to create a class.
Example DiscordActivity.new()
Tried example project, same result
No way to set activity timestamps
There is no way to set timestamps when creating an Activity (unless I'm just not seeing it, but from combing through the cpp implementation it doesn't seem to be there)
Crashes on Mac
Though it doesn't say Mac support, I might still wanna make Mac versions, just without this feature. I was able to make it just not crash by checking the OS and then not running any functions, but it still throws a few errors, which can make it hard to debug sometimes.
This
Attempt to call function 'new' in base 'NativeScript' on a null instance.
godot points out that the error is on this discord.gd line: discore_core_ = DiscordCore.new()
Game won't run without Discord
If Discord is not running, running the game will only open Discord and do nothing else.
For obvious reasons, we need a way to be able to run the game without Discord.
How to use RPCs and Discord Lobbies
Hey!
I'd like to use RPCs and Discord Lobbies in my game, but there's no documentation covering RPCs and very little other than an example that did not work for me covering the Lobbies.
@samsface it would be lovely if you could add more documentation :)
Rich presence randomly stopped working with no changes.
So I've dragged and dropped all discord SDK stuff into addons folder while renaming them to "libdiscord_game_sdk.filetype" Except for the .dll file which when renamed causes errors so I left it alone.
I've tried all random rename methods using lib, not using lib, using dashes instead of underscore, including and not including some files, but for the life of me I cannot get it to work anymore despite making no changes. I checked past commits on github, nothing has changed and using print() I am sure that it is being called yet the rich presence no longer works.
I am using Windows 10 with Godot version 3.5, I have set up everything correctly on the Discord Dev Portal and I am using the correct ID. There are no errors displayed at all anywhere just it fails to work.
Side note, I tried to export my project as a test and the .dll's where exported along with the .exe and .pck, are there any methods to better bundle/group them together?
Thanks for any and all help I really appreciate it, and I hope this is a dumb mistake on my end that can be fixed semi-easily. Just ask if you need any screenshots, code snippets, etc.
The Lib Doesn't Work And Does Nothing
I was coding a simple game but i got a error
ERROR: does not have a library for the current platform.
and i opened my discord, my friend opened, and nothing showed
ERROR: Does not have a library for the current platform
Loading the project in Godot Engine with the plugin enabled brings up the following errors:
Running the game from the editor works without any other errors, and Discord Rich Presence to work in this scenario.
Exporting the game causes it to fail entirely.
Not sure if it's related to the above issues.
The following export filter was used, which should include the required addons.
Any idea why this is happening?
I'm using Windows 10 Pro.
setting state/details as variable gives InvalidPayload error
trying to update the rich presence to be a value that changes
every second i change the values
if i try setting a string it works, but if i try to set a variable it just gives me the error, this doesn't happen with the images, only state and details for some reason
Can only send strings, no support for sending raw bytes
You must hand the implementation a string instead of a byte buffer, even though the string is converted to a byte buffer immediately.
Crashes on open
When I run the game, it crashes with these errors:
E 0:00:01.910 open_dynamic_library: Can't open dynamic library: C:/Users/djcook/Documents/Soccer Game/addons/discord_game_sdk/discord-game-sdk-godot.dll, error: Error 126: The specified module could not be found.
.
<C++ Error> Condition "!p_library_handle" is true. Returned: ERR_CANT_OPEN
<C++ Source> platform/windows/os_windows.cpp:2353 @ open_dynamic_library()E 0:00:01.915 get_symbol: No valid library handle, can't get symbol from GDNative object
<C++ Source> modules/gdnative/gdnative.cpp:510 @ get_symbol()E 0:00:01.921 init_library: No nativescript_init in "res://addons/discord_game_sdk/discord-game-sdk-godot.dll" found
<C++ Source> modules/gdnative/nativescript/nativescript.cpp:1510 @ init_library()E 0:00:01.938 init_library: does not have a library for the current platform.
<C++ Error> Condition "lib_path.length() == 0" is true.
<C++ Source> modules/gdnative/nativescript/nativescript.cpp:1486 @ init_library()
No way to get the user id of the player
There seems to be no way to see what the discord user ID of the player is, I need this to be able to differentiate stuff effectively.
This seems to be implemented in the UserManager part of the Discord SDK in GetCurrentUser()
open_dynamic_library: Can't open dynamic library: PathOfTheGame/addons/discord_game_sdk/discord-game-sdk-godot.dll, error: Error 126: The specified module could not be found. .
The File is visible in file explorer but not in godot
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.