Discord does not show the application #45

Closed
opened 2023-12-06 11:20:31 +00:00 by nemene21 · 17 comments
nemene21 commented 2023-12-06 11:20:31 +00:00 (Migrated from github.com)

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:
image

GDScript

# Autoloaded script
func _ready() -> void:
	# TODO: Make this display actual info!
	discord_sdk.app_id = ****************** # Real app id matches the one on the discord developer portal
	discord_sdk.state = "In progress..."
	discord_sdk.refresh()

Godot output

No output

Additional information

No response

Checks

  • I tried reinstalling the addon or tried to fix it myself with other methods.
  • I tried restarting Discord and Godot completely.
### 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: ![image](https://github.com/vaporvee/discord-sdk-godot/assets/73829851/35daf6b1-ae71-43bf-908b-453d6e4cdae3) ### GDScript ```gdscript # Autoloaded script func _ready() -> void: # TODO: Make this display actual info! discord_sdk.app_id = ****************** # Real app id matches the one on the discord developer portal discord_sdk.state = "In progress..." discord_sdk.refresh() ``` ### Godot output ```shell No output ``` ### Additional information _No response_ ### Checks - [X] I tried reinstalling the addon or tried to fix it myself with other methods. - [x] I tried restarting Discord and Godot completely.

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.

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

also it will be visible in your profile and not under registered games
nemene21 commented 2023-12-07 14:32:35 +00:00 (Migrated from github.com)

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

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()

sorry i meant `discord_sdk.coreupdate()`

will be renamed to run_callbacks in the next update

will be renamed to run_callbacks in the next update
nemene21 commented 2023-12-08 21:11:06 +00:00 (Migrated from github.com)

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)

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.

it basically says that you either didn't install the plugin correctly or didn't restart the engine.
nemene21 commented 2023-12-09 20:42:17 +00:00 (Migrated from github.com)

I got the newest release and unzipped it, then dragged the (discord-sdk-gd) folder into my addons folder, those were the errors.

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

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
nemene21 commented 2023-12-10 11:15:11 +00:00 (Migrated from github.com)

Did, I get the same errors.

Did, I get the same errors.

make a fresh project, setup the plugin and send it to me. i cant reproduce

make a fresh project, setup the plugin and send it to me. i cant reproduce
nemene21 commented 2023-12-11 16:02:24 +00:00 (Migrated from github.com)

Here you go, in this one it also says the scene "Debug.tscn" is corrupt when I try opening it.
issue.zip

Here you go, in this one it also says the scene "Debug.tscn" is corrupt when I try opening it. [issue.zip](https://github.com/vaporvee/discord-sdk-godot/files/13638037/issue.zip)

yeah will look into it today. sorry that you need to wait I'm sick

yeah will look into it today. sorry that you need to wait I'm sick
nemene21 commented 2023-12-13 07:59:00 +00:00 (Migrated from github.com)

Don't rush it, stay safe, I can wait.

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
grafik
so sadly it could be a discord client error. The new update will release soon though hope it fixes stuff.

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 ![grafik](https://github.com/vaporvee/discord-sdk-godot/assets/80621863/7ce7f4f7-c872-4245-99f0-86793c718761) 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

but i pushed a update btw but you should maybe try the demo application in the wiki to check if its your client
nemene21 commented 2023-12-15 19:11:19 +00:00 (Migrated from github.com)

Sure, thanks for taking the time to help.

Sure, thanks for taking the time to help.
Sign in to join this conversation.
No description provided.