Godot Version
4.3
Question
I have a method that is no longer used get_tooltip_node
. When I remove this method from the code, my project stops working. I get a lot of errors like this: referenced non-existent resource
and could not resolve
The method returns a reference to CommonNodes.GearHoverTooltip which is a preload const GearHoverTooltip = preload("res://scenes/ui/inventory/gear/GearHoverTooltip.tscn")
I suspect it is related to a circular reference or something. That’s what I checked in all my changed files. But removing something should not create a circular reference, to my understanding?
I tried deleting my .godot-Cache. No effect.
Can anyone give an explanation what the issue could be here?
See this video:
Open your TSCN as text files (NPC.tscn on line 10, WanderingNPC.tscn on line 20) and check what are the broken references. This will get you started on tracking the issue
1 Like
So I go into Character.tscn, and then? There’s no way to go. These files have no errors and all run fine, if only I keep that method in. As described.
If I change the preloads inside Realm.gd to loads, then it works. Should be an engine bug.
Open the tscn in an external text editor, not Godot.
Does your Realm
class make use of the get_tooltip_node
function?
The method is not used at all.
I restarted the engine and got another error message that lead me to these issues
opened 11:55AM - 19 Nov 23 UTC
closed 09:54PM - 17 Aug 24 UTC
bug
topic:gdscript
tracker
high priority
### Godot version
4.2 rc1
### System information
Windows 10.0.19045 - V… ulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 30.0.15.1403) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)
### Issue description
When you `preload()` a script or a scene (or possibly anything else), that resource will stay in memory in its original form and it's difficult to remove or update it. This leads to all sorts of issues, particularly when the initial loading fails the resource will be broken until editor restart or in worst case until the user performs some magic to fix the cached version (when restarting doesn't work).
Here's the list of issues caused by this behavior:
- [x] https://github.com/godotengine/godot/issues/84981
- [x] https://github.com/godotengine/godot/issues/79840
- [x] https://github.com/godotengine/godot/issues/80324
- [x] https://github.com/godotengine/godot/issues/81498
- [x] https://github.com/godotengine/godot/issues/81615
- [x] https://github.com/godotengine/godot/issues/79545
These two issues are solved, but they were related, so adding for context:
- [x] https://github.com/godotengine/godot/issues/72854
- [x] https://github.com/godotengine/godot/issues/80812
Related PRs (they don't fix the problem, but band-aid it partially):
- https://github.com/godotengine/godot/pull/84167 - helps reloading broken scenes
- https://github.com/godotengine/godot/pull/85037 - prevents corruption issues when moving class files
### Steps to reproduce
1. Use `preload()`
2. Pray it won't cause problems (it will 😉)
### Minimal reproduction project
N/A
opened 07:12AM - 16 Aug 24 UTC
closed 12:00AM - 17 Aug 24 UTC
bug
archived
topic:gdscript
regression
### Tested versions
v4.3.stable.steam [77dcf97d8]
### System information
…
v4.3.stable.steam [77dcf97d8]
### Issue description
Every time I relaunch my project, I get a parser error on one of my classes. This means that, every time I launch the project, I need to delete the .godot folder first, allow it to reimport, and then everything works. This was not an issue before migrating my project from 4.2 to 4.3.
### Steps to reproduce
I'm honestly not sure what to put here. I'm open to suggestions. If anyone has any, please let me know below. If not, then I'll see if I can reproduce this on a smaller-scale project and attach it here later.
### Minimal reproduction project (MRP)
See 'steps to reproduce' - not sure how I can reproduce this right now. Open to suggestions on what may be helpful.
Should be an engine bug which you can avoid by not using preloads (when you get this brutal bug).
system
Closed
October 26, 2024, 7:45am
8
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.