vaporvee / discord-rpc-godot

Discord RPC Plugin for GDScript with an easy-to-use code pattern in Godot Engine 4, with optional Editor Rich Presence! (Compatible with Linux, Windows, & MacOS)
https://docs.vaporvee.com/discord-rpc-godot
MIT License
183 stars 10 forks source link

[Issue/Bug]: Missing bindings/FileAccess error #60

Closed alycii closed 1 week ago

alycii commented 1 month ago

What happened?

I seem to be getting a weird FileExists error when exporting for Windows. I've tried a few things, such as including *.dlls in my export configuration, and various other things to try and force the extension into the exported build.

This is on 4.3-beta3, building for Windows 11. Anyone have any ideas?

Included image describes the error.

image

Version

1.3.1

Godot Version

4.3-beta3

Exact steps to reproduce this error

Just export the project for Windows

GDScript

None, simple .gdextension export issue

Godot output

ERROR: Condition "!FileAccess::exists(path)" is true. Returning: ERR_FILE_NOT_FOUND
   at: open_dynamic_library (platform/windows/os_windows.cpp:383)
ERROR: GDExtension dynamic library not found: addons/discord-rpc-gd/bin/windows/discord_game_sdk_binding_debug.dll
   at: (core/extension/gdextension.cpp:801)
ERROR: Failed loading resource: res://addons/discord-rpc-gd/bin/discord-rpc-gd.gdextension. Make sure resources have be.
   at: (core/io/resource_loader.cpp:283)
ERROR: Error loading extension: res://addons/discord-rpc-gd/bin/discord-rpc-gd.gdextension
   at: (core/extension/gdextension_manager.cpp:234)
Godot Engine v4.3.beta3.official.82cedc83c - https://godotengine.org
OpenGL API 3.3.0 NVIDIA 560.70 - Compatibility - Using Device: NVIDIA - NVIDIA GeForce RTX 3070

SCRIPT ERROR: Parse Error: Identifier "DiscordRPC" not declared in the current scope.
          at: GDScript::reload (res://assets/scripts/discord/DiscordRPC.gd:5)
SCRIPT ERROR: Parse Error: Identifier "DiscordRPC" not declared in the current scope.
          at: GDScript::reload (res://assets/scripts/discord/DiscordRPC.gd:6)
SCRIPT ERROR: Parse Error: Identifier "DiscordRPC" not declared in the current scope.
          at: GDScript::reload (res://assets/scripts/discord/DiscordRPC.gd:7)
SCRIPT ERROR: Parse Error: Identifier "DiscordRPC" not declared in the current scope.
          at: GDScript::reload (res://assets/scripts/discord/DiscordRPC.gd:8)
SCRIPT ERROR: Parse Error: Identifier "DiscordRPC" not declared in the current scope.
          at: GDScript::reload (res://assets/scripts/discord/DiscordRPC.gd:9)
SCRIPT ERROR: Parse Error: Identifier "DiscordRPC" not declared in the current scope.
          at: GDScript::reload (res://assets/scripts/discord/DiscordRPC.gd:10)
SCRIPT ERROR: Parse Error: Identifier "DiscordRPC" not declared in the current scope.
          at: GDScript::reload (res://assets/scripts/discord/DiscordRPC.gd:11)
SCRIPT ERROR: Parse Error: Identifier "DiscordRPC" not declared in the current scope.
          at: GDScript::reload (res://assets/scripts/discord/DiscordRPC.gd:14)
SCRIPT ERROR: Parse Error: Identifier "DiscordRPC" not declared in the current scope.
          at: GDScript::reload (res://assets/scripts/discord/DiscordRPC.gd:15)
SCRIPT ERROR: Compile Error:
          at: GDScript::reload (res://assets/scenes/definitions/modals/ModalManagement.gd:-1)
ERROR: Failed to load script "res://assets/scenes/definitions/modals/ModalManagement.gd" with error "Compilation failed.
   at: load (modules/gdscript/gdscript.cpp:2925)
SCRIPT ERROR: Parse Error: Identifier "DiscordRPC" not declared in the current scope.
          at: GDScript::reload (res://addons/discord-rpc-gd/nodes/discord_autoload.gd:13)
ERROR: Failed to load script "res://addons/discord-rpc-gd/nodes/discord_autoload.gd" with error "Parse error".
   at: load (modules/gdscript/gdscript.cpp:2925)
ERROR: Failed to instantiate an autoload, script 'res://addons/discord-rpc-gd/nodes/discord_autoload.gd' does not inher.
   at: (main/main.cpp:3670)
ERROR: Failed to instantiate an autoload, script 'res://assets/scripts/discord/DiscordRPC.gd' does not inherit from 'No.
   at: (main/main.cpp:3670)

Additional information

No response

Checks

vaporvee commented 1 month ago

Will test that on 4.3 give me a moment

vaporvee commented 1 month ago

weird works on rc3 maybe a bug with the beta? if not can you make me a fresh project and zip it?