Godot 4 Parse Error

Godot Version

4.0

Question

Hi I’m having this error in my project "E 0:00:01:337 _printerr: res://weapon_drops/uncommon_smg.tscn:223 - Parse Error: [ext_resource] referenced non-existent resource at: res://scripts/weapons/weapon_drop.gd.

<C++ Source> scene/resources/resource_format_text.cpp:39 @ _printerr()"

As far as I know, the references are correct. I’ve tried making new prefabs and a new script, but it does not work

I believe you have answered your own question. The error message says the following resource does not exist:

res://scripts/weapons/weapon_drop.gd

And according to your screenshots, it really does not exist in the scripts/weapons folder at all.

You have weapon.gd, weapon_manager.gd and weapon_pickup.gd

3 Likes

It says it about weapon_pickup aswell when I changed the script

Could you show that error message exactly?

E 0:00:01:404 _printerr: res://weapon_drops/uncommon_smg.tscn:223 - Parse Error: [ext_resource] referenced non-existent resource at: res://scripts/weapons/weapon_pickup.gd.
<C++ Source> scene/resources/resource_format_text.cpp:39 @ _printerr()

I found the solution. I had my weapon_randomizer singleton higher than my weapon_registery singleton