-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ModLoaderUserProfile - Mods are getting deleted from the mod_list
when they are disabled and Steam Workshop support is enabled.
#288
Comments
Notes:
|
KANAjetzt
added a commit
to KANAjetzt/godot-mod-loader
that referenced
this issue
Jun 24, 2023
This allows to verify if the mod is still installed by confirming the existence of the zip file. However, this check is only performed when the mod is not loaded and a path to the zip file exists. This ensures that mods are not deleted from the profile when running in the editor. It's important to note that this new check may cause mods to appear in user profiles even if they are currently not loaded. To determine if a mod is actually loaded, you should also check `ModLoaderStore.mod_data` or use `ModLoaderMod.is_mod_loaded()`. closes GodotModding#288
KANAjetzt
added a commit
to KANAjetzt/godot-mod-loader
that referenced
this issue
Jun 24, 2023
This allows to verify if the mod is still installed by confirming the existence of the zip file. However, this check is only performed when the mod is not loaded and a path to the zip file exists. This ensures that mods are not deleted from the profile when running in the editor. It's important to note that this new check may cause mods to appear in user profiles even if they are currently not loaded. To determine if a mod is actually loaded, you should also check `ModLoaderStore.mod_data` or use `ModLoaderMod.is_mod_loaded()`. closes GodotModding#288
KANAjetzt
added a commit
to KANAjetzt/godot-mod-loader
that referenced
this issue
Jun 24, 2023
This allows to verify if the mod is still installed by confirming the existence of the zip file. However, this check is only performed when the mod is not loaded and a path to the zip file exists. This ensures that mods are not deleted from the profile when running in the editor. It's important to note that this new check may cause mods to appear in user profiles even if they are currently not loaded. To determine if a mod is actually loaded, you should also check `ModLoaderStore.mod_data` or use `ModLoaderMod.is_mod_loaded()`. closes GodotModding#288
github-merge-queue bot
pushed a commit
that referenced
this issue
Jun 27, 2023
* feat: ✨ added ` get_dir_paths_in_dir()` * feat: ✨ added `zip_name` and `zip_path` to `ModData` * refactor: ♻️ added `zip_path` to user profiles This allows to verify if the mod is still installed by confirming the existence of the zip file. However, this check is only performed when the mod is not loaded and a path to the zip file exists. This ensures that mods are not deleted from the profile when running in the editor. It's important to note that this new check may cause mods to appear in user profiles even if they are currently not loaded. To determine if a mod is actually loaded, you should also check `ModLoaderStore.mod_data` or use `ModLoaderMod.is_mod_loaded()`. closes #288
closed by #298 |
Merged
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
godot-mod-loader/addons/mod_loader/api/profile.gd
Lines 263 to 268 in 1683759
https://clips.twitch.tv/EmpathicAdventurousClintHotPokket-H7a59LUuNBrzUDNy
The current approach of using
_ModLoaderFile.dir_exists(_ModLoaderPath.get_unpacked_mods_dir_path() + mod_id)
to remove mods from themod_list
is not suitable outside of the development environment. This is because mods are only present in themods-unpacked
directory once they are loaded. Therefore, we need to find an alternative way to check if the mods are still installed.One option is to store the path to the mod zip when the mod is added to the
mod_list
inside the user profile. This way, we can check if the actual zip file is still present. However, we should be cautious about false positives, as renaming a zip file could lead to incorrect results.Currently the name of the ZIP file is arbitrary and can include additional information such as a version string:
Therefore, we cannot assume a consistent naming convention like we do for the
mods-unpacked
directory, where the directory name follows the patternnamespace-modname
.The text was updated successfully, but these errors were encountered: