Skip to content
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

Discord does not show the application #45

Closed
2 tasks done
nemene21 opened this issue Dec 6, 2023 · 17 comments
Closed
2 tasks done

Discord does not show the application #45

nemene21 opened this issue Dec 6, 2023 · 17 comments
Assignees
Labels
bug Something isn't working can't reproduce

Comments

@nemene21
Copy link

nemene21 commented Dec 6, 2023

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.
@nemene21 nemene21 added the bug Something isn't working label Dec 6, 2023
@vaporvee
Copy link
Owner

vaporvee commented Dec 6, 2023

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.

@vaporvee
Copy link
Owner

vaporvee commented Dec 6, 2023

also it will be visible in your profile and not under registered games

@nemene21
Copy link
Author

nemene21 commented Dec 7, 2023

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

@vaporvee
Copy link
Owner

vaporvee commented Dec 7, 2023

sorry i meant discord_sdk.coreupdate()

@vaporvee
Copy link
Owner

vaporvee commented Dec 7, 2023

will be renamed to run_callbacks in the next update

@nemene21
Copy link
Author

nemene21 commented Dec 8, 2023

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)

@vaporvee
Copy link
Owner

vaporvee commented Dec 8, 2023

it basically says that you either didn't install the plugin correctly or didn't restart the engine.

@nemene21
Copy link
Author

nemene21 commented Dec 9, 2023

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

@vaporvee
Copy link
Owner

vaporvee commented Dec 9, 2023

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
Copy link
Author

Did, I get the same errors.

@vaporvee
Copy link
Owner

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

@nemene21
Copy link
Author

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

@vaporvee
Copy link
Owner

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

@nemene21
Copy link
Author

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

@vaporvee
Copy link
Owner

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.

@vaporvee
Copy link
Owner

but i pushed a update btw but you should maybe try the demo application in the wiki to check if its your client

@nemene21
Copy link
Author

Sure, thanks for taking the time to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working can't reproduce
Projects
None yet
Development

No branches or pull requests

2 participants