heroiclabs / nakama

Distributed server for social and realtime games and apps.
https://heroiclabs.com
Apache License 2.0
9.06k stars 1.1k forks source link

Can't run exported Godot Engine project with NakamaAPI on Windows 10 #452

Closed fenix-hub closed 4 years ago

fenix-hub commented 4 years ago

Description

Error thrown when trying to open a Godot Engine project exported for Windows 10

Steps to Reproduce

  1. Create a project following GDQuest's tutorial or download mine -> godot.zip
  2. Export the project for windows 10
  3. Run the project and read the logfile

Expected Result

The .exe should work fine, like an exported HTML5 version I've tested myself

Actual Result

Godot Engine v3.2.3.rc3.mono.official - https://godotengine.org
OpenGL ES 3.0 Renderer: Intel(R) HD Graphics 520

Mono: Logfile is: C:/Users/nsant/AppData/Roaming/Godot/app_userdata/TEST/mono/mono_logs/2020_08_17 14.21.49 (12628).txt
**SCRIPT ERROR**: Parse Error: Expected a constant expression.
   At: res://addons/com.heroiclabs.nakama/Nakama.gdc:21:GDScript::load_byte_code() - Parse Error: Expected a constant expression.
**ERROR**: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:801:load_byte_code() - Method failed. Returning: ERR_PARSE_ERROR
**ERROR**: Cannot load byte code from file 'res://addons/com.heroiclabs.nakama/Nakama.gdc'.
   At: modules/gdscript/gdscript.cpp:2282:load() - Condition "err != OK" is true. Returned: RES()
**ERROR**: Failed loading resource: res://addons/com.heroiclabs.nakama/Nakama.gdc.
   At: core/io/resource_loader.cpp:278:_load() - Condition "found" is true. Returned: RES()
**ERROR**: Can't autoload: res://addons/com.heroiclabs.nakama/Nakama.gd
   At: main/main.cpp:1757:start() - Condition "res.is_null()" is true. Continuing.
**SCRIPT ERROR**: Parse Error: The identifier "NakamaAPI" isn't a valid type (not a script or class), or couldn't be found on base "self".
   At: res://src/Main/ServerConnection.gdc:98:GDScript::load_byte_code() - Parse Error: The identifier "NakamaAPI" isn't a valid type (not a script or class), or couldn't be found on base "self".
**ERROR**: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:801:load_byte_code() - Method failed. Returning: ERR_PARSE_ERROR
**ERROR**: Cannot load byte code from file 'res://src/Main/ServerConnection.gdc'.
   At: modules/gdscript/gdscript.cpp:2282:load() - Condition "err != OK" is true. Returned: RES()
**ERROR**: Failed loading resource: res://src/Main/ServerConnection.gdc.
   At: core/io/resource_loader.cpp:278:_load() - Condition "found" is true. Returned: RES()
**ERROR**: res://src/Main/Main.tscn:3 - Parse Error: [ext_resource] referenced nonexistent resource at: res://src/Main/ServerConnection.gd
   At: scene/resources/resource_format_text.cpp:440:poll() - res://src/Main/Main.tscn:3 - Parse Error: [ext_resource] referenced nonexistent resource at: res://src/Main/ServerConnection.gd
**ERROR**: Failed to load resource 'res://src/Main/Main.tscn'.
   At: core/io/resource_loader.cpp:208:load() - Condition "err != OK" is true. Returned: RES()
**ERROR**: Failed loading resource: res://src/Main/Main.tscn.
   At: core/io/resource_loader.cpp:278:_load() - Condition "found" is true. Returned: RES()
**ERROR**: Failed loading scene: res://src/Main/Main.tscn
   At: main/main.cpp:1944:start() - Condition "!scene" is true. Returned: false
**WARNING**: ObjectDB instances leaked at exit (run with --verbose for details).
   At: core/object.cpp:2135:cleanup() - ObjectDB instances leaked at exit (run with --verbose for details).
**ERROR**: Resources still in use at exit (run with --verbose for details).
   At: core/resource.cpp:477:clear() - Resources still in use at exit (run with --verbose for details).

Context

Your Environment

mofirouz commented 4 years ago

Please recreate this issue on https://github.com/heroiclabs/nakama-godot repo.