Open cyberaspect opened 5 days ago
Looks like the environment check is failing (havent tested this on newer betas 😅). For now, you can edit DiscordSDK.gd line 87 to be true.
It was added so if you were working outside Discord, the debugger wouldn't stop there. It's safe to make it always be true
Thanks for the info! I'm still getting a few null instance errors though, so may I ask what version of 4.3 you tested this on?
Just tested the code again Godot v4.3.beta2.official [b75f0485b] and didn't encounter any null reference errors during my tests in the debug scene, can you tell which functions were throwing the exceptions? Also,
token_res
variable is NOT included by Discord or this plugin, make sure to host it & use URL overrides to point your endpoint to any endpoint that Godot can reach. (Discord documentation about the OAuth2 code exchange)
First off, this is really great work you've done here for us Godot devs. Hats off to you! But, I couldn't get this working on my machine (Windows 11)
When running the sample project (godot-4 branch of the repo) in Godot 4.3beta2 I got this output:
and the debug window is stuck on "Waiting for ready()."
I have edited debug.gd to use my application's id but that is all
I could be doing something wrong, so please let me know if you believe it's a user-issue.