Quantcast
Download
(6 Kb)
Download
Updated: 09/24/19 01:21 PM
Pictures
File Info
Compatibility:
Dragonhold (5.2.0)
Scalebreaker (5.1.5)
Elsweyr (5.0.5)
Updated:09/24/19 01:21 PM
Created:09/20/19 03:13 PM
Monthly downloads:349
Total downloads:352
Favorites:3
MD5:
5.1.5
Delete Redundant Libs
Version: 2
by: Micke2nd [More]
This tool is deleting redundant (multiple existing) libraries/addons. It shows whats redundant and then asks, if you wanna delete this.

Run can be done by execute either DeleteRedundantLibs.exe or DeleteRedundantLibs.ps1 (Powershell). They do exactly the same, but with a powershell script you see what code is executed on your pc, the *.exe is the 1-click version.

Explanation what i wanna solve with this:
You have 2 kinds of deployed addons:
a) deployed with the needed libs in a subfolder "libs"
b) deployed without of these dependencies, where you have to add the needed files (libs) manually to the addon pool. These deployment works, because ESOs Lua Engine (e.g. AddonManagement) allows to access once loaded objects/functions (e.g. libs) by other addons.

Deployment B disadvantages:
- addons can stop to work, because the newer, independant updated libs can become incompatible.

Deployment A disadvantages:
- different addons have the same references e.g. "LibMainMenu-2.0", but different versions of this libs. E.g. one from may 2018, the other from august 2019.
In this case, its unclear which library will be loaded and persist in the memory. This again can lead to errors, if the wrong lib won.
- foreign libs are maintained by foreign authors. If these libs are included into the deployed addon, this addon must be updated too, even if only the foreign lib has changed.
New DLCs are a good example: here it could be enough, just to update the foreign lib. Otherwise the whole addon can become outdated and unusable.

Thats why i prefer deployment B and use this addon for: to modify all addons to work as deployment B. If you like it, let it run after every addon update.
#2
better description in which folder tool is searching
updating variable OptionalDependsOn in *.txt file, with the deleted libs (if not already listed)

#1
init
Archived Files (1)
File Name
Version
Size
Uploader
Date
1
5kB
Micke2nd
09/20/19 03:13 PM


Post A Reply Comment Options
Unread 09/24/19, 01:29 PM  
Micke2nd
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 24
Uploads: 1
currently the new version is in the queue to be verified, but

Originally Posted by Baertram
Code:
## OptionalDependsOn: Library1 Library2
implemented.

Originally Posted by Shadowshire
It is not clear:
  1. whether the program did not find any redundant libraries, or
  2. whether it could not find itself because the actual path to the executable is C:\Users\AccountName\Documents\Elder Scrolls Online\live\Utilities\DeleteRedundantLibs
So, which one of those two outcomes happened?
changed the output to in what folder the tool is searching
Report comment to moderator  
Reply With Quote
Unread 09/22/19, 06:19 AM  
Baertram
 
Baertram's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2418
File comments: 2692
Uploads: 57
I agree with you the author should maintain this but if your tool is deleting the libs and is not making the addon be dependent on it anymore (as direct calls to the lib files in the addon's txt is not creating any dependency in the ingame addon manager) it most likely will just break the addon.

So at least adding/changing an exisitng line and add to the end of would be needed, or your tool got just a 25% chance to make things better (depending on how and when the authors included the libs in their code):
Code:
## OptionalDependsOn: Library1 Library2
Originally Posted by Micke2nd
"If you do not add the removed libraries to the ## OptionalDependsOn: or ## DependsOn:"
These should be maintained by the Author, independently where the libs are placed ... but i'll think about
Last edited by Baertram : 09/22/19 at 06:20 AM.
Report comment to moderator  
Reply With Quote
Unread 09/21/19, 10:59 PM  
Shadowshire

Forum posts: 1
File comments: 285
Uploads: 0
Question Ouput Message

When I run the executable, a command-line window is displayed, with the following lines:
Code:
running in C:\Users\AccountName\Documents\Elder Scrolls Online\live\Utilities
Didn't found redundant libs.
Press any key to exit>\
It is not clear:
  1. whether the program did not find any redundant libraries, or
  2. whether it could not find itself because the actual path to the executable is C:\Users\AccountName\Documents\Elder Scrolls Online\live\Utilities\DeleteRedundantLibs
So, which one of those two outcomes happened?
__________________
---- Shadowshire ..... nil carborundum illegitimi
Report comment to moderator  
Reply With Quote
Unread 09/21/19, 04:08 PM  
Micke2nd
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 24
Uploads: 1
Hi Baertram,
thank you for the feedback !

"does your tool only delete the folders?" - yes.
"you need to check the txt file ... as well to remove the call" ... no. The call calls a not existing file, and therefore doesnt harm anything.

"If you do not add the removed libraries to the ## OptionalDependsOn: or ## DependsOn:"
These should be maintained by the Author, independently where the libs are placed ... but i'll think about
Last edited by Micke2nd : 09/21/19 at 05:17 PM.
Report comment to moderator  
Reply With Quote
Unread 09/21/19, 09:01 AM  
Baertram
 
Baertram's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2418
File comments: 2692
Uploads: 57
Hey there,

does your tool only delete the folders?
Because if you got a bundled library and delete it from the subfolders you need to check the txt file of that addon as well to remove the call to the subfolder library as well.
It may "silently fail" if the addon manager tries to load the entries in the txt files and they are missing.

But what it will not do:
If you do not add the removed libraries to the ## OptionalDependsOn: or ## DependsOn: tag of the addon where you have removed the libraries, you do not assure that the libs are loaded for these addons and the addons may fail to work at all afterwards.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: