glass-brick / Scene-Manager

Godot plugin for managing scenes and transitions
MIT License
350 stars 17 forks source link

Exported windows binary returns Parse Error #5

Closed TrayserCassa closed 3 years ago

TrayserCassa commented 3 years ago

Describe the bug After export the Project, there are error messages in the debug console and the SceneManager isn't working. See error in screenshots.

To Reproduce Steps to reproduce the behavior:

  1. Export:

image image

Features are empty and Script Export Mode is to Compiled.

2. SceneManager.change_scene("res://Combat/Combat.tscn")

Expected behavior Working scene switch

Screenshots

PS C:\Users\Patrick\Desktop> .\test.exe
Godot Engine v3.3.2.stable.official - https://godotengine.org
OpenGL ES 3.0 Renderer: GeForce RTX 2060 SUPER/PCIe/SSE2
OpenGL ES Batching: ON

godot-stuff Logger
https://gitlab.com/godot-stuff/gs-logger
Copyright 2018-2019, SpockerDotNet LLC
Version 3.2-R4

SCRIPT ERROR: GDScript::load_byte_code: Parse Error: Unknown class: "EditorPlugin"
          At: res://addons/scene_manager/SceneManagerPlugin.gdc:1
ERROR: load_byte_code: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:785
ERROR: Cannot load byte code from file 'res://addons/scene_manager/SceneManagerPlugin.gdc'.
   At: modules/gdscript/gdscript.cpp:2235
ERROR: Failed loading resource: res://addons/scene_manager/SceneManagerPlugin.gdc. Make sure resources have been imported by opening the project in the editor at least once.
   At: core/io/resource_loader.cpp:282
SCRIPT ERROR: GDScript::load_byte_code: Parse Error: Unknown class: "EditorPlugin"
          At: res://addons/scene_manager/SceneManagerPlugin.gdc:1
ERROR: load_byte_code: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:785
ERROR: Cannot load byte code from file 'res://addons/scene_manager/SceneManagerPlugin.gdc'.
   At: modules/gdscript/gdscript.cpp:2235
ERROR: Failed loading resource: res://addons/scene_manager/SceneManagerPlugin.gdc. Make sure resources have been imported by opening the project in the editor at least once.
   At: core/io/resource_loader.cpp:282
SCRIPT ERROR: GDScript::load_byte_code: Parse Error: Unknown class: "EditorPlugin"
          At: res://addons/scene_manager/SceneManagerPlugin.gdc:1
ERROR: load_byte_code: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:785
ERROR: Cannot load byte code from file 'res://addons/scene_manager/SceneManagerPlugin.gdc'.
   At: modules/gdscript/gdscript.cpp:2235
ERROR: Failed loading resource: res://addons/scene_manager/SceneManagerPlugin.gdc. Make sure resources have been imported by opening the project in the editor at least once.
   At: core/io/resource_loader.cpp:282
SCRIPT ERROR: GDScript::load_byte_code: Parse Error: Unknown class: "EditorPlugin"
          At: res://addons/scene_manager/SceneManagerPlugin.gdc:1
ERROR: load_byte_code: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:785
ERROR: Cannot load byte code from file 'res://addons/scene_manager/SceneManagerPlugin.gdc'.
   At: modules/gdscript/gdscript.cpp:2235
ERROR: Failed loading resource: res://addons/scene_manager/SceneManagerPlugin.gdc. Make sure resources have been imported by opening the project in the editor at least once.
   At: core/io/resource_loader.cpp:282
SCRIPT ERROR: GDScript::load_byte_code: Parse Error: The class "SceneManagerPlugin" was found in global scope, but its script couldn't be loaded.
          At: res://addons/scene_manager/SceneManager.gdc:215
ERROR: load_byte_code: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:785
ERROR: Cannot load byte code from file 'res://addons/scene_manager/SceneManager.gdc'.
   At: modules/gdscript/gdscript.cpp:2235
ERROR: Failed loading resource: res://addons/scene_manager/SceneManager.gdc. Make sure resources have been imported by opening the project in the editor at least once.
   At: core/io/resource_loader.cpp:282
ERROR: poll: res://addons/scene_manager/SceneManager.tscn:4 - Parse Error: [ext_resource] referenced nonexistent resource at: res://addons/scene_manager/SceneManager.gd
   At: scene/resources/resource_format_text.cpp:440
ERROR: Failed to load resource 'res://addons/scene_manager/SceneManager.tscn'.
   At: core/io/resource_loader.cpp:212
ERROR: Failed loading resource: res://addons/scene_manager/SceneManager.tscn. Make sure resources have been imported by opening the project in the editor at least once.
   At: core/io/resource_loader.cpp:282
ERROR: Can't autoload: res://addons/scene_manager/SceneManager.tscn
   At: main/main.cpp:1774

Desktop (please complete the following information):

Additional context I removed the chrome and android/ios question. I think this is not a chrome or handy problem :D

I am kind of new in godot and maybe I am missing something, but other addons are working. If I am wrong then sorry :/

jabsatz commented 3 years ago

It's definitely possible it's a problem with the scene manager. I'll try to repro it later today. Thanks for reporting!

jabsatz commented 3 years ago

Just made a commit that should fix this issue. I've made a new release (v0.3.2), using that version should fix the issue. Unfortunately deploys to asset lib take some time to get approved, you can get around this by downloading the source code from github (https://github.com/jabsatz/Scene-Manager/releases/tag/v0.3.2), then replacing the addons/scene_manager folder in your own project. Let me know if you still have this problem and I'll re-open the issue.