Skip to content

Workaround for Script.get_script_method_list()#594

Open
MSLaFaver wants to merge 2 commits into
GodotModding:4.1from
MSLaFaver:4.1
Open

Workaround for Script.get_script_method_list()#594
MSLaFaver wants to merge 2 commits into
GodotModding:4.1from
MSLaFaver:4.1

Conversation

@MSLaFaver
Copy link
Copy Markdown

I discovered through the process of modding Buckshot Roulette (Godot 4.1.1) that Script.get_script_method_list() was not returning arguments for any of the functions in specific scripts (e.g. MenuManager.gd). This left method.args completely empty for every function parsed with mod_hook_preprocessor.gd. The current usage of this was easily replaceable with method_arg_string_with_defaults_and_types, which was just declared on the previous line.

This is a quick fix to get the mod loader working for Buckshot, and will likely need a little tweaking to fit in with the existing style.

@KANAjetzt KANAjetzt added bug Something isn't working 4.1 labels Mar 6, 2026
@KANAjetzt KANAjetzt added this to the 4.x - 7.x milestone Mar 6, 2026
@KANAjetzt KANAjetzt requested review from KANAjetzt and Qubus0 March 6, 2026 11:58
Copy link
Copy Markdown
Collaborator

@Qubus0 Qubus0 left a comment

Choose a reason for hiding this comment

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

two smaller things, otherwise nice

Comment thread addons/mod_loader/internal/mod_hook_preprocessor.gd Outdated
Comment thread addons/mod_loader/internal/mod_hook_preprocessor.gd Outdated
@MSLaFaver
Copy link
Copy Markdown
Author

Awesome. I'll make those edits within a few days. Thanks for the comments.

@MSLaFaver
Copy link
Copy Markdown
Author

Updated. Please review!

Copy link
Copy Markdown
Collaborator

@Qubus0 Qubus0 left a comment

Choose a reason for hiding this comment

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

nice, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.1 bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants