View Single Post
05/31/18, 08:47 AM   #2
Shinni
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 167
Example use case:
1)
We sometimes get "bug" reports, where users (or the minion app) did not copy all the files.
With the API we could check if every file is loaded and display a more useful error message to the user, when a file is missing.

2) With nested addons, we sometimes get the following "bug": Users install some addon (let's call it exampleAddon) as AddOns/exampleAddon/exampleAddon/exampleAddon.txt instead of AddOns/exampleAddon/exampleAddon.txt
The addon is properly loaded, but custom textures for instance can not be found, since they point to AddOns/exampleAddon/someTexture.dds instead of AddOns/exampleAddon/exampleAddon/someTexture.dds
When detecting that an addon is installed incorrectly, we can display an error message to the user.
(@sirinsidiator I guess this is also a usecase you were thinking of, but technically we can check the addon folder location already via pcall+error)