Files
game-cards/deck_err.txt
xiaji bad46b0109 fix: revert // to / in deck.gd (GDScript 4 does not support // operator)
The INTEGER_DIVISION warning in deck.gd:19 is a false positive - both
operands are int, so / performs integer division correctly in GDScript 4.
Using // caused a parse error (Expected expression after '/' operator),
which cascaded to GameController/TrainingController resolution failure.
2026-05-30 08:01:07 +08:00

25 lines
1.5 KiB
Plaintext

SCRIPT ERROR: Parse Error: Could not resolve class "Deck", because of a parser error.
at: GDScript::reload (res://src/game/game_controller.gd:23)
GDScript backtrace (most recent call first):
[0] _initialize (res://tests/test_training_controller.gd:4)
SCRIPT ERROR: Parse Error: Cannot infer the type of "deck" variable because the value doesn't have a set type.
at: GDScript::reload (res://src/game/game_controller.gd:23)
GDScript backtrace (most recent call first):
[0] _initialize (res://tests/test_training_controller.gd:4)
SCRIPT ERROR: Parse Error: Could not resolve external class member "deal_cards".
at: GDScript::reload (res://src/game/game_controller.gd:24)
GDScript backtrace (most recent call first):
[0] _initialize (res://tests/test_training_controller.gd:4)
ERROR: Failed to load script "res://src/game/game_controller.gd" with error "Parse error".
at: load (modules/gdscript/gdscript.cpp:2907)
GDScript backtrace (most recent call first):
[0] _initialize (res://tests/test_training_controller.gd:4)
SCRIPT ERROR: Parse Error: Could not resolve class "GameController".
at: GDScript::reload (res://src/game/training_controller.gd:2)
GDScript backtrace (most recent call first):
[0] _initialize (res://tests/test_training_controller.gd:9)
ERROR: Failed to load script "res://src/game/training_controller.gd" with error "Parse error".
at: load (modules/gdscript/gdscript.cpp:2907)
GDScript backtrace (most recent call first):
[0] _initialize (res://tests/test_training_controller.gd:9)