Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exported game showing state-chart script errors with AMD #74

Closed
bazsupport opened this issue Jan 13, 2024 · 3 comments
Closed

Exported game showing state-chart script errors with AMD #74

bazsupport opened this issue Jan 13, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@bazsupport
Copy link

  • Godot version 4.2.1
  • Users graphics card: AMD Radeon RX 6800 using the July 2023 drivers
  • User is using Windows v10
  • Game was exported using Performance+

When I exported the game and he tried it, the game would not start and gave this error:
ApplicationFrameHost_qEIPr77CdC

After following the instructions, the game did start, but the following errors were showing:

`C:\Users\Rashid>mira.exe --rendering-driver opengl3

C:\Users\Rashid>Godot Engine v4.2.1.stable.official.b09f793f5 - https://godotengine.org/
OpenGL API 3.3.0 Core Profile Context 23.Q3.230719 - Compatibility - Using Device: ATI Technologies Inc. - AMD Radeon RX 6800

SCRIPT ERROR: Parse Error: Could not find type "EditorDebuggerSession" in the current scope.
at: GDScript::reload (res://addons/godot_state_charts/utilities/editor_debugger/editor_debugger_message.gd:91)
SCRIPT ERROR: Compile Error:
at: GDScript::reload (res://addons/godot_state_charts/utilities/editor_debugger/editor_debugger_remote.gd:-1)
SCRIPT ERROR: Compile Error:
at: GDScript::reload (res://addons/godot_state_charts/state_chart.gd:-1)
SCRIPT ERROR: Compile Error:
at: GDScript::reload (res://player/scripts/player.gd:-1)
ERROR: Failed to load script "res://player/scripts/player.gd" with error "Compilation failed".
at: load (modules/gdscript/gdscript.cpp:2788)`

Update:
This version of AMD graphics drivers seems to work and user was able to run the game:
23.12.1 - December 5th, 2023

@derkork
Copy link
Owner

derkork commented Jan 13, 2024

The error messages regarding state charts should probably be fixed (even if they have no impact on being able to run the game). The game startup failure was very likely caused by the graphics card driver and not the addon.

@derkork derkork added the bug Something isn't working label Jan 13, 2024
@bazsupport
Copy link
Author

Sounds good! Thanks again for this asset, super useful

@Devworks8
Copy link

Devworks8 commented Jan 26, 2024

I'm also receiving this compile error when running my exported game. I'm using version 0.12.0

Screenshot 2024-01-26 160637

I found a solution. The issue is caused by the static function settings_updated on line 92 in the editor_debugger_message.gd file. The session argument is implicitly declared as type EditorDebuggerSession. This type is only globally available within the editor. Once you export, the type doesn't exist. By simply removing the implicit declaration the script compilation errors vanish and the state machine works as expected.

Replace:
static func settings_updated(session:EditorDebuggerSession, chart:NodePath, ignore_events:bool, ignore_transitions:bool) -> void:

With:
static func settings_updated(session, chart:NodePath, ignore_events:bool, ignore_transitions:bool) -> void:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants