Skip to content

Conversation

@Bernier154
Copy link
Contributor

What is this solving?

I was not able to setup de mod-loader on a 4.5.x game, and found out why.

This line in the engine makes the combined class cache invalid
https://github.com/godotengine/godot/blob/20430236e749306e1968656ffdc7f78e502a0ccc/core/object/script_language.cpp#L295
image

It was introduced in version 4.5.1
godotengine/godot@318af42

This PR is the essential modification that I brought to my files to make it work.

I made these change manually, but it work. Maybe load the extension in the editor and copy the new classes? I added is _tool to class that were having @tool at the top and no abstract classes so it must me okay.

Suggestion

GDRE tool version needed to also be bumped, i switched it with version 1.0.2 to make it work. 2.0.0beta8 was also working but while trying to debug i tested multiple version.

The actual version supplied in the release outputted an error saying something like "pack version 3 unsupported" on something like that. ( The current target game was compiled as 4.5 beta2 )

@KANAjetzt KANAjetzt added 4.5 bug Something isn't working labels Oct 17, 2025
@KANAjetzt KANAjetzt added this to the 4.x - 7.x milestone Oct 17, 2025
@KANAjetzt KANAjetzt self-requested a review October 17, 2025 21:51
Copy link
Member

@KANAjetzt KANAjetzt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@KANAjetzt KANAjetzt changed the title Add missing keys in global_script_class_cache_mod_loader.cfg for 4.5.x fix: Add missing keys in global_script_class_cache_mod_loader.cfg for 4.5.x Oct 19, 2025
@KANAjetzt KANAjetzt merged commit e0f0963 into GodotModding:4.x-dev Oct 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.5 bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants