0 votes

I took the BeepSaber game, originally written for Godot 3.2 and converted it to Godot4 format using a recent build of Godot trunk. When I try to run the game, I get many gdscript errors. In the latest GDScript Reference, I see that the class File still exists.
So I think those errors will be fixed when adding a "extends Node" to the beginning of each file. Is this correct?

Godot Engine v4.0.beta.custom_build.0f8f0ab12 - https://godotengine.org
Vulkan API 1.2.195 - Using Vulkan Device #0: AMD - AMD RADV NAVI10

ERROR: Script does not inherit from Node: res://OQToolkit/vrautoload.gd.
at: start (main/main.cpp:2724)
SCRIPT ERROR: Parse Error: Identifier "File" not declared in the current scope.
at: GDScript::reload (res://game/scripts/HighscoreTable/HighscoreTable.gd:104)
SCRIPT ERROR: Parse Error: Identifier "File" not declared in the current scope.
at: GDScript::reload (res://game/scripts/HighscoreTable/HighscoreTable.gd:105)
SCRIPT ERROR: Parse Error: Identifier "File" not declared in the current scope.
at: GDScript::reload (res://game/scripts/HighscoreTable/HighscoreTable.gd:118)
SCRIPT ERROR: Parse Error: Identifier "File" not declared in the current scope.
at: GDScript::reload (res://game/scripts/HighscoreTable/HighscoreTable.gd:119)
ERROR: Script does not inherit from Node: res://game/scripts/HighscoreTable/HighscoreTable.gd.
at: start (main/main.cpp:2724)
SCRIPT ERROR: Parse Error: Identifier "File" not declared in the current scope.
at: GDScript::reload (res://game/scripts/PlayCountTable.gd:74)
SCRIPT ERROR: Parse Error: Identifier "File" not declared in the current scope.
at: GDScript::reload (res://game/scripts/PlayCountTable.gd:75)
SCRIPT ERROR: Parse Error: Identifier "File" not declared in the current scope.
at: GDScript::reload (res://game/scripts/PlayCountTable.gd:88)
SCRIPT ERROR: Parse Error: Identifier "File" not declared in the current scope.
at: GDScript::reload (res://game/scripts/PlayCountTable.gd:89)
ERROR: Script does not inherit from Node: res://game/scripts/PlayCountTable.gd.
at: start (main/main.cpp:2724)
SCRIPT ERROR: Parse Error: Expected closing ")" after grouping expression.
at: GDScript::reload (res://OQToolkit/vrautoload.gd:748)
SCRIPT ERROR: Invalid call. Nonexistent function 'initialize' in base 'Nil'.
at: _ready (res://GameMain.gd:8)

Godot version 4.0 commit 0f8f0ab126437ed593e6463b85a6ee25af9ee5d4 from Fri Jan 27 18:52:22 2023 +0300
in Engine by (18 points)

1 Answer

0 votes

File has been renamed to FileAccess.

by (8,524 points)

A few days later I already found out, my game port is making progress.
It can be found here: https://codeberg.org/LibreVR/godot-xr-tools

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.