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

Closed
opened 2024-08-08 09:05:21 +00:00 by alycii · 2 comments
alycii commented 2024-08-08 09:05:21 +00:00 (Migrated from github.com)

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

### 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](https://github.com/user-attachments/assets/f758bc92-f050-4fa2-b5cd-dd7cbb3a9635) ### Version 1.3.1 ### Godot Version 4.3-beta3 ### Exact steps to reproduce this error Just export the project for Windows ### GDScript ```gdscript None, simple .gdextension export issue ``` ### Godot output ```shell 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 - [X] I tried reinstalling the addon or tried to fix it myself with other methods. - [X] I tried restarting Discord and Godot completely. - [X] I did read the documentation https://vaporvee.com/docs/discord-rpc-godot/

Will test that on 4.3 give me a moment

Will test that on 4.3 give me a moment

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

weird works on rc3 maybe a bug with the beta? if not can you make me a fresh project and zip it?
Sign in to join this conversation.
No description provided.