Skip to content

feat: ✨ Added mod disabling #241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
May 9, 2023
Merged

Conversation

otDan
Copy link
Member

@otDan otDan commented May 2, 2023

Implements mod disabling at runtime, we expose disable_mods and disable_mod in the ModLoaderMod class that can be called by any mod, but it has to be noted that those methods should only be called when needed as they can cause the game to break if a specific mod has not implemented their _disable method in the mod_main.gd script of their mod correctly.

We also expose remove_all_extensions_of_mod in the _ModLoaderScriptExtension class that should be still handled with care by the mod developers and can be used to disable all the extensions of their mod for specific situations.

Finally there we expose get_mod_data_from_namespace in the ModData class that enables us to retrieve the ModData of a mod from the provided mod_id.

#240 is required before merging this one

@otDan otDan changed the base branch from main to development May 2, 2023 06:42
@otDan otDan requested review from KANAjetzt, Qubus0 and a team May 3, 2023 02:31
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.

ty for the PR 👍
Just some questions and small style things.

@otDan otDan requested a review from KANAjetzt May 3, 2023 17:22
@otDan otDan added the enhancement New feature or request label May 4, 2023
@otDan otDan self-assigned this May 4, 2023
@otDan otDan added this to the v6.0.0 milestone May 4, 2023
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.

nice 👍

@KANAjetzt
Copy link
Member

Ready to merge if you did a run test 👍

@KANAjetzt
Copy link
Member

Ok, did a test run in Brotato with no errors, so it looks good to merge.
Ty for your work! 👍

@otDan otDan added this pull request to the merge queue May 9, 2023
Merged via the queue into GodotModding:development with commit ca40996 May 9, 2023
@ithinkandicode ithinkandicode changed the title feat: Added mod disabling feat: ✨ Added mod disabling Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants