+2 votes

I deleted not needed problem file "characterinput.gd", but another file seeks files I deleted. Any ideas on how to find files seeking deleted file "characterinput.gd"?

modules/gdscript/gdscript.cpp:775 - Condition "err" is true. Returned: err
Cannot load source code from file 'res://SCENES/Cave1/src/input/characterinput.gd'.
Failed loading resource: res://SCENES/Cave1/src/input/character
input.gd. Make sure resources have been imported by opening the project in the editor at least once.
res://SCENES/FPS In Cave2/scenes/character/Input.gd:1 - Parse Error: Couldn't load the base class: res://SCENES/Cave1/src/input/characterinput.gd
modules/gdscript/gdscript.cpp:566 - Method failed. Returning: ERR
PARSE_ERROR

Godot version 3.4
in Engine by (16 points)

Maybe you can find it by using the "orphan" tool from the Tool menu (sorry, the name escapes me at the moment)?

1 Answer

0 votes

The way I read that error, your Input.gd class is derived from the (now missing) characterinput.gd script. So, I'd start by looking at Input.gd.

by (13,092 points)

In addition to the above, you can always search your scene files and script files for references to the offending file. On Windows, I'd recommend something like the free Agent Ransack to search everything in your project folder structure. Otherwise, for *nix machines, some form of grep should do.

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 webmaster@godotengine.org with your username.