You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Godot 4, having two or more mods extend the same script causes every script after the first to be ignored. I've found that parent_script.resource_path is blank after the first extension takes over.
After modifying the apply_extension function to sidestep that issue, I found that every extension except the last one is ignored.
The text was updated successfully, but these errors were encountered:
I've discovered the problem isn't with every script, it only happens when the script is declared with a class_name at the top, or extends a script declared with a class_name. Autoloads and regular scripts can be extended just fine.
I'm currently testing some older Godot version and got this interesting error message on 4.0-RC1 Parser Error: Could not find class "Base" in "res://base.gd"
Same in
4.0-beta15
4.0-beta14
4.0-beta10
4.0-beta8
4.0-beta6
4.0-beta1 / 4.0-beta3 / 4.0-beta5
No error but the second "script_extension" overrides the first one resulting in this print out:
In Godot 4, having two or more mods extend the same script causes every script after the first to be ignored. I've found that
parent_script.resource_path
is blank after the first extension takes over.After modifying the
apply_extension
function to sidestep that issue, I found that every extension except the last one is ignored.The text was updated successfully, but these errors were encountered: