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

feat: script extensions sorter checks load order #357

Merged

Conversation

GDami
Copy link
Contributor

@GDami GDami commented Nov 29, 2023

the script extensions sorter will check load order to sort extensions of the same vanilla script

inheritance is still the first way of sorting, this only sorts conflicting extensions of the same vanilla script

@KANAjetzt KANAjetzt added the enhancement New feature or request label Dec 2, 2023
@KANAjetzt KANAjetzt added this to the v6.3.0 milestone Dec 2, 2023
@KANAjetzt KANAjetzt changed the title feature: script extensions sorter checks load order feat: script extensions sorter checks load order Dec 2, 2023
GDami added 2 commits December 4, 2023 02:53
added a comparator method to sort extensions of the same script following the load order
@GDami GDami force-pushed the extensions_sorter_checks_load_order branch 2 times, most recently from 7d2f696 to cd22903 Compare December 4, 2023 01:54
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.

Just some style stuff, thanks for the PR 👍

@KANAjetzt
Copy link
Member

While we are in this file, can you also add an empty line here? 😃

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.

Looking good, the get_string_in_between() refactor would be nice as a separate PR, but it's fine. 😄

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 - thanks a lot 🎉

@KANAjetzt KANAjetzt added this pull request to the merge queue Dec 13, 2023
Merged via the queue into GodotModding:development with commit a84128a Dec 13, 2023
KANAjetzt added a commit to KANAjetzt/godot-mod-loader that referenced this pull request Apr 4, 2024
* 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
github-merge-queue bot pushed a commit that referenced this pull request Apr 9, 2024
* 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

* refactor: 🏷️ added missing types

* refactor: 🔥 removed unused `unpacked_dir`
github-merge-queue bot pushed a commit that referenced this pull request Apr 10, 2024
* 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 KANAjetzt modified the milestones: v6.3.0, v6.2.1 Nov 15, 2024
@KANAjetzt KANAjetzt added this to the v6.3.0 milestone Nov 15, 2024
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 KANAjetzt mentioned this pull request Jan 26, 2025
KANAjetzt pushed a commit that referenced this pull request Jan 26, 2025
* 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
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
KANAjetzt added a commit that referenced this pull request Jan 27, 2025
# Minor Release v6.3.0

Minor update to fix issues with script extension sorting, as well as
potential issues with translations, configurations, and user profiles.

## Key PRs
- #357
- #358
- #520
- #352

## Change Log

### New Features

- #352
- #358

### Fixes
- #357
- #520 
- #522 
- #523
- #524

### Refactors
- #521
- #526

### Tests
- #360 

### Miscellaneous
- #525
- #527
- #529
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.

None yet

3 participants