-
Notifications
You must be signed in to change notification settings - Fork 31
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
feat: script extensions sorter checks load order #357
Conversation
added a comparator method to sort extensions of the same script following the load order
7d2f696
to
cd22903
Compare
There was a problem hiding this 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 👍
While we are in this file, can you also add an empty line here? 😃 |
renamed a var, added spacing to keep the style consistency
There was a problem hiding this 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. 😄
There was a problem hiding this 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 🎉
* 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
* 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`
* 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
* 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
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
* 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 (#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
# 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
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