Closed nemene21 closed 11 months ago
does the debug scene have a green circle? if it does and the discord_sdk.core_update() is in some _process() function (normaly in the autoload that got added) then it should work. otherwise the discord client or app_id can be the issue.
also it will be visible in your profile and not under registered games
I added the discord_sdk.core_update call in a _process, but the editor says "Parser Error: Static function "core_update()" not found in base "GDScriptNativeClass"."
sorry i meant discord_sdk.coreupdate()
will be renamed to run_callbacks in the next update
Added "discord_sdk.coreupdate()" in the autoload, still no luck.
Tried reinstalling the plugin in my project. There were many errors: core/extension/gdextension.cpp:884 - GDExtension configuration file must contain a "configuration/compatibility_minimum" key: res://addons/discord-sdk-gd/discord-rpc-gd.gdextension Failed loading resource: res://addons/discord-sdk-gd/discord-rpc-gd.gdextension. Make sure resources have been imported by opening the project in the editor at least once. res://addons/discord-sdk-gd/nodes/core_updater.gd:12 - Parse Error: Identifier "discord_sdk" not declared in the current scope. modules/gdscript/gdscript.cpp:2775 - Failed to load script "res://addons/discord-sdk-gd/nodes/core_updater.gd" with error "Parse error". (User) gdscript://-9223369988692185208.gd:4 - Parse Error: Identifier "discord_sdk" not declared in the current scope. gdscript://-9223369988692185208.gd:7 - Parse Error: Identifier "discord_sdk" not declared in the current scope. gdscript://-9223369988692185208.gd:38 - Parse Error: Identifier "discord_sdk" not declared in the current scope. gdscript://-9223369988692185208.gd:38 - Parse Error: Identifier "discord_sdk" not declared in the current scope. gdscript://-9223369988692185208.gd:38 - Parse Error: Identifier "discord_sdk" not declared in the current scope. gdscript://-9223369988692185208.gd:38 - Parse Error: Identifier "discord_sdk" not declared in the current scope. gdscript://-9223369988692185208.gd:38 - Parse Error: Identifier "discord_sdk" not declared in the current scope. gdscript://-9223369988692185208.gd:38 - Parse Error: Identifier "discord_sdk" not declared in the current scope. gdscript://-9223369988692185208.gd:38 - Parse Error: Identifier "discord_sdk" not declared in the current scope. gdscript://-9223369988692185208.gd:38 - Parse Error: Identifier "discord_sdk" not declared in the current scope. gdscript://-9223369988692185208.gd:38 - Parse Error: Identifier "discord_sdk" not declared in the current scope. gdscript://-9223369988692185208.gd:38 - Parse Error: Identifier "discord_sdk" not declared in the current scope. gdscript://-9223369988692185208.gd:38 - Parse Error: Identifier "discord_sdk" not declared in the current scope. gdscript://-9223369988692185208.gd:38 - Parse Error: Identifier "discord_sdk" not declared in the current scope. gdscript://-9223369988692185208.gd:38 - Parse Error: Identifier "discord_sdk" not declared in the current scope. gdscript://-9223369988692185208.gd:38 - Parse Error: Identifier "discord_sdk" not declared in the current scope. gdscript://-9223369988692185208.gd:38 - Parse Error: Identifier "discord_sdk" not declared in the current scope. gdscript://-9223369988692185208.gd:38 - Parse Error: Identifier "discord_sdk" not declared in the current scope. gdscript://-9223369988692185208.gd:38 - Parse Error: Identifier "discord_sdk" not declared in the current scope. gdscript://-9223369988692185208.gd:48 - Parse Error: Identifier "discord_sdk" not declared in the current scope. gdscript://-9223369988692185208.gd:51 - Parse Error: Identifier "discord_sdk" not declared in the current scope. gdscript://-9223369988692185208.gd:54 - Parse Error: Identifier "discord_sdk" not declared in the current scope. gdscript://-9223369988692185208.gd:57 - Parse Error: Identifier "discord_sdk" not declared in the current scope. gdscript://-9223369988692185208.gd:63 - Parse Error: Identifier "discord_sdk" not declared in the current scope. res://addons/discord-sdk-gd/plugin.gd:27 - Parse Error: Identifier "discord_sdk" not declared in the current scope. res://addons/discord-sdk-gd/plugin.gd:28 - Parse Error: Identifier "discord_sdk" not declared in the current scope. res://addons/discord-sdk-gd/plugin.gd:29 - Parse Error: Identifier "discord_sdk" not declared in the current scope. res://addons/discord-sdk-gd/plugin.gd:30 - Parse Error: Identifier "discord_sdk" not declared in the current scope. res://addons/discord-sdk-gd/plugin.gd:31 - Parse Error: Identifier "discord_sdk" not declared in the current scope. res://addons/discord-sdk-gd/plugin.gd:32 - Parse Error: Identifier "discord_sdk" not declared in the current scope. res://addons/discord-sdk-gd/plugin.gd:33 - Parse Error: Identifier "discord_sdk" not declared in the current scope. res://addons/discord-sdk-gd/plugin.gd:34 - Parse Error: Identifier "discord_sdk" not declared in the current scope. res://addons/discord-sdk-gd/plugin.gd:35 - Parse Error: Identifier "discord_sdk" not declared in the current scope. res://addons/discord-sdk-gd/plugin.gd:36 - Parse Error: Identifier "discord_sdk" not declared in the current scope. modules/gdscript/gdscript.cpp:2775 - Failed to load script "res://addons/discord-sdk-gd/plugin.gd" with error "Parse error". (User)
it basically says that you either didn't install the plugin correctly or didn't restart the engine.
I got the newest release and unzipped it, then dragged the (discord-sdk-gd) folder into my addons folder, those were the errors.
yeah and i know what they mean. if you got these not declared errors the files might be in a wrong spot. could you install it from the in-editor asset library instead? then enable the plugin of course also in the project settings
Did, I get the same errors.
make a fresh project, setup the plugin and send it to me. i cant reproduce
Here you go, in this one it also says the scene "Debug.tscn" is corrupt when I try opening it. issue.zip
yeah will look into it today. sorry that you need to wait I'm sick
Don't rush it, stay safe, I can wait.
okay it says configuration/compatibility_minimum" key: res://addons/discord-sdk-gd/discord-rpc-gd.gdextension but it does... its 4.1. I started your project and anything works so sadly it could be a discord client error. The new update will release soon though hope it fixes stuff.
but i pushed a update btw but you should maybe try the demo application in the wiki to check if its your client
Sure, thanks for taking the time to help.
What happened?
The debug scene displays correct information, but on discord it is now shown.
Version
3.2
Godot Version
4.2-stable_win64
Exact steps to reproduce this error
Dowloaded the latest fix, extracted, went to the addons folder, added the addon in my addons folder, checked the addon checkbox to activate it, restarted godot, checked if the autoload was on, it was, wrote the code in an autoloaded script, opened the game
After I saw nothing was displayed on discord, I opened the debug scene which displayed the correct app id and state, but there was still nothing on the discord side of things.
Redowloaded plugin, redowloaded godot, redownloaded discord, issue persisted.
Discord -> settings -> Registered games:
GDScript
Godot output
Additional information
No response
Checks