You are browsing as a guest. Sign up (or log in) to start making projects!

40m 25s logged

Hello! Does anyone know how to fix these errors? (Specific Error codes in comments) I use Godot v4.4 and I am currently making the WarioWare game. Some reason, some lines of code are not being read and my game isn’t working. [my project has gotten a lot of errors lol]

0
24

Comments 2

@Jaden_Leung

error codes

E 0:00:19:378 minigame_1.gd:32 @ _process(): Cannot open file ‘res://scenes/timer_screen.tscn’.
<C++ Error> Condition “err != OK” is true. Returning: Ref()
<C++ Source> scene/resources/resource_format_text.cpp:1388 @ load()
minigame_1.gd:32 @ _process()

E 0:00:19:378 minigame_1.gd:32 @ _process(): Failed loading resource: res://scenes/timer_screen.tscn. Make sure resources have been imported by opening the project in the editor at least once.
<C++ Error> Condition “found” is true. Returning: Ref()
<C++ Source> core/io/resource_loader.cpp:336 @ _load()
minigame_1.gd:32 @ _process()

@NC

It means the game can’t find the scene ‘timer screen’ in the scenes folder. Did you happen to place your scene somewhere else? Because you have to follow the guide specfically, you must make a folder called ‘scenes’ and since Godot is case sensitive, you might’ve misnamed your scene as like Timer_screen.tscn or timerscreen.tscn check where you put your timer_screen scene. If it somewhere else other than in the ‘scenes’ folder make sure you go to place it in there OR… you can right click it, and click Copy Path, then you replace the previous scene there was in the default code

for e.g. get_tree().change_scene_to_file(“res://scenes/timer_screen.tscn”)

just hgihlight it and press Ctrl-V to replace it with your updated scene.

Hope this helps!