Skip to content
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

fix: 🐛 fixed missing script parent path #383

Merged
merged 5 commits into from
Apr 10, 2024

Conversation

KANAjetzt
Copy link
Member

depends on #382

* added a comparator method to sort extensions of the same script

added a comparator method to sort extensions of the same script following the load order

* added a table to avoid iterating through the load order every comparison

* style edits/spacing changes

renamed a var, added spacing to keep the style consistency

* style: added an empty line

* changed get_string_in_between to get_mod_dir

* better description for get_mod_dir
Before, if the same script was extended multiple times, the `parent_script_path` would be empty for all extensions except the first one.
@KANAjetzt KANAjetzt added bug Something isn't working 4.x labels Apr 4, 2024
@KANAjetzt KANAjetzt added this to the 4.x - 7.0.0 milestone Apr 4, 2024
@KANAjetzt KANAjetzt requested review from Qubus0, otDan and a team April 4, 2024 06:55
@KANAjetzt KANAjetzt self-assigned this Apr 4, 2024
Copy link
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.

only fixes needed are in the other pr

addons/mod_loader/internal/script_extension.gd Outdated Show resolved Hide resolved
@KANAjetzt KANAjetzt added this pull request to the merge queue Apr 10, 2024
Merged via the queue into GodotModding:4.x with commit cb832df Apr 10, 2024
1 check passed
@KANAjetzt KANAjetzt deleted the fix_missing_parent branch April 11, 2024 14:02
KANAjetzt added a commit to KANAjetzt/godot-mod-loader that referenced this pull request Jan 25, 2025
* feat: script extensions sorter checks load order (GodotModding#357)

* added a comparator method to sort extensions of the same script

added a comparator method to sort extensions of the same script following the load order

* added a table to avoid iterating through the load order every comparison

* style edits/spacing changes

renamed a var, added spacing to keep the style consistency

* style: added an empty line

* changed get_string_in_between to get_mod_dir

* better description for get_mod_dir

* fix: 🐛 fixed missing script parent path

Before, if the same script was extended multiple times, the `parent_script_path` would be empty for all extensions except the first one.

* fix: ✏️ removed no longer accurate comment
github-merge-queue bot pushed a commit that referenced this pull request Jan 26, 2025
fix: 🐛 fixed missing script parent path (#383)

* feat: script extensions sorter checks load order (#357)

* added a comparator method to sort extensions of the same script

added a comparator method to sort extensions of the same script following the load order

* added a table to avoid iterating through the load order every comparison

* style edits/spacing changes

renamed a var, added spacing to keep the style consistency

* style: added an empty line

* changed get_string_in_between to get_mod_dir

* better description for get_mod_dir

* fix: 🐛 fixed missing script parent path

Before, if the same script was extended multiple times, the `parent_script_path` would be empty for all extensions except the first one.

* fix: ✏️ removed no longer accurate comment
KANAjetzt added a commit that referenced this pull request Jan 26, 2025
fix: 🐛 fixed missing script parent path (#383)

* feat: script extensions sorter checks load order (#357)

* added a comparator method to sort extensions of the same script

added a comparator method to sort extensions of the same script following the load order

* added a table to avoid iterating through the load order every comparison

* style edits/spacing changes

renamed a var, added spacing to keep the style consistency

* style: added an empty line

* changed get_string_in_between to get_mod_dir

* better description for get_mod_dir

* fix: 🐛 fixed missing script parent path

Before, if the same script was extended multiple times, the `parent_script_path` would be empty for all extensions except the first one.

* fix: ✏️ removed no longer accurate comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants