Quantcast
Download
(2 Kb)
Download
Updated: 05/27/20 02:23 PM
Pictures
File Info
Compatibility:
Greymoor (6.0.5)
Updated:05/27/20 02:23 PM
Created:11/07/15 02:58 PM
Monthly downloads:1,261
Total downloads:37,888
Favorites:150
MD5:
6.0.5
Crafted Potions  Popular! (More than 5000 hits)
Version: 2.0.1
by: Ayantir, sirinsidiator
This addon set the Quality level of Crafted potions and poisons depending if :
  • Normal = They're not crafted
  • Green = They're crafted and got 1 bonus
  • Blue = They're crafted and got 2 bonus
  • Purple = They're crafted and got 3 bonus
v2.0.1 - code65536
======
- Fixed wrong return value getting modified for buyback and player trade
- Updated for Greymoor

v2.0.0 - sirinsidiator
======
- Simplified addon code and made it more robust for future API changes
- Updated for Wrathstone
- New GitHub Url: https://github.com/sirinsidiator/CraftedPotions

v14
======
- API Bump

v13
======
- API Bump
- CraftedPotions is now on GitHub : https://github.com/Ayantir/CraftedPotions

v12
======
- API Bump
- Little fix for API compliance.

v11
======
- API Bump

v10
======
- API Bump

v9
======
- API Bump

v8
======
- API Bump for Dark Brotherhood DLC (Version both compatible with Live and DB DLC)
- Now include poisons

v7
======
- API Bump for Thieves Guild DLC

v6
======
- Fixed an error causing incorrect listing in buyback list

v5
======
- Color is now displayed everywhere

v3
======
- Color is now displayed almost everywhere

v2
======
- Color is now changed also in trading house listings. Please note you still need to make your researchs with "white" quality, but results are now colorized.

v1
======
Initial release, color changed in Bags (& Banks)
Optional Files (2)
File Name
Version
Size
Author
Date
Type
11a
3kB
05/24/17 09:50 AM
Patch
11
3kB
05/23/17 05:40 PM
Patch


Archived Files (14)
File Name
Version
Size
Uploader
Date
2.0.0
2kB
sirinsidiator
03/02/19 05:08 PM
14
3kB
Ayantir
09/19/17 04:11 PM
13
3kB
Ayantir
07/15/17 05:14 AM
12
3kB
Ayantir
05/24/17 03:13 PM
11
3kB
Ayantir
01/28/17 12:01 AM
10
3kB
Ayantir
09/05/16 07:02 AM
9
3kB
Ayantir
06/28/16 07:53 AM
8
3kB
Ayantir
05/02/16 11:56 AM
7
3kB
Ayantir
03/06/16 11:20 PM
6
3kB
Ayantir
12/08/15 03:45 AM
5
3kB
Ayantir
11/15/15 12:50 AM
4
3kB
Ayantir
11/14/15 07:14 AM
2
2kB
Ayantir
11/08/15 12:46 AM
1
1kB
Ayantir
11/07/15 02:58 PM


Post A Reply Comment Options
Unread 05/29/20, 08:22 AM  
TairenSoul
 
TairenSoul's Avatar

Forum posts: 0
File comments: 10
Uploads: 0
Originally Posted by sirinsidiator
Originally Posted by TairenSoul
Not working for me. Just grinds no what what I choose. Used the link a few comments ago and still doesn't work. Too bad. I loved this addon!
Did you update it to the latest version which I uploaded yesterday? I've tested it and it works fine for me. If you believe something doesn't work, you need to be more specific. Just saying "it doesn't work" is not helping and won't get any potential issues fixed.
Sorry! The error was mine. Working great and thanks for the update!
Report comment to moderator  
Reply With Quote
Unread 05/28/20, 09:56 AM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1416
File comments: 937
Uploads: 36
Originally Posted by TairenSoul
Not working for me. Just grinds no what what I choose. Used the link a few comments ago and still doesn't work. Too bad. I loved this addon!
Did you update it to the latest version which I uploaded yesterday? I've tested it and it works fine for me. If you believe something doesn't work, you need to be more specific. Just saying "it doesn't work" is not helping and won't get any potential issues fixed.
__________________
https://www.imperialtradingcompany.eu/ - My Addons - The Vault (Early updates and experimental projects) - My patreon - My blog
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Report comment to moderator  
Reply With Quote
Unread 05/28/20, 09:43 AM  
TairenSoul
 
TairenSoul's Avatar

Forum posts: 0
File comments: 10
Uploads: 0
Not working for me. Just grinds no what what I choose. Used the link a few comments ago and still doesn't work. Too bad. I loved this addon!
Report comment to moderator  
Reply With Quote
Unread 05/27/20, 04:24 AM  
code65536
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 134
Uploads: 20
Originally Posted by sirinsidiator
Originally Posted by code65536
The API changes in Update 26 from ItemQuality to ItemDisplayQuality (and ItemFunctionalQuality) broke this addon. Here's an updated version of Crafted Potions with the necessary adjustments.
Thanks! Any specific things that were broken that I can test this on?
The main thing was that colors were not appearing in inventory/bank. There were a couple of other minor issues that actually pre-date Update 26 that I also addressed here (specifically, the addon was modifying the stack quantity instead of quality for merchant buyback and player trades).
Report comment to moderator  
Reply With Quote
Unread 05/27/20, 02:40 AM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1416
File comments: 937
Uploads: 36
Originally Posted by code65536
The API changes in Update 26 from ItemQuality to ItemDisplayQuality (and ItemFunctionalQuality) broke this addon. Here's an updated version of Crafted Potions with the necessary adjustments.
Thanks! Any specific things that were broken that I can test this on?
__________________
https://www.imperialtradingcompany.eu/ - My Addons - The Vault (Early updates and experimental projects) - My patreon - My blog
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Report comment to moderator  
Reply With Quote
Unread 05/26/20, 04:26 PM  
code65536
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 134
Uploads: 20
The API changes in Update 26 from ItemQuality to ItemDisplayQuality (and ItemFunctionalQuality) broke this addon. Here's an updated version of Crafted Potions with the necessary adjustments.

http://eso.code65536.com/files/CraftedPotions-u26.zip

Code:
--- a\CraftedPotions.lua	Sat Mar 02 18:24:08 2019
+++ b\CraftedPotions.lua	Tue May 26 18:18:13 2020
@@ -10,19 +10,19 @@ local function OnAddonLoaded(_, addon)
         return (itemType == ITEMTYPE_POTION or itemType == ITEMTYPE_POISON) and (select(24, ZO_LinkHandler_ParseLink(itemLink)) ~= "0")
     end
 
     local function ChangeQuality(itemLink)
-        local quality = ITEM_QUALITY_NORMAL
+        local quality = ITEM_DISPLAY_QUALITY_NORMAL
         for i = 1, GetMaxTraits() do
             local hasTraitAbility = GetItemLinkTraitOnUseAbilityInfo(itemLink, i)
 
             if hasTraitAbility then
                 quality = quality + 1
             end
         end
 
-        if quality == ITEM_QUALITY_NORMAL then
-            quality = ITEM_QUALITY_MAGIC
+        if quality == ITEM_DISPLAY_QUALITY_NORMAL then
+            quality = ITEM_DISPLAY_QUALITY_MAGIC
         end
 
         return quality
     end
@@ -51,27 +51,27 @@ local function OnAddonLoaded(_, addon)
 
     -- Rewriting core functions
 
     -- Shared (Gamepad UI, Addons)
-    ModifyAPIMethod("GetItemQuality", GetItemLink)
+    ModifyAPIMethod("GetItemDisplayQuality", GetItemLink)
 
     -- Shared (Gamepad UI, Addons)
-    ModifyAPIMethod("GetItemLinkQuality", ReturnItemLink)
+    ModifyAPIMethod("GetItemLinkDisplayQuality", ReturnItemLink)
 
     -- QuickSlots
-    ModifyAPIMethod("GetSlotItemQuality", GetSlotItemLink)
+    ModifyAPIMethod("GetSlotItemDisplayQuality", GetSlotItemLink)
 
     -- Bags
-    local GET_ITEM_INFO_QUALITY_INDEX = 8
-    ModifyAPIMethod("GetItemInfo", GetItemLink, GET_ITEM_INFO_QUALITY_INDEX)
+    local GET_ITEM_INFO_DISPLAY_QUALITY_INDEX = 9
+    ModifyAPIMethod("GetItemInfo", GetItemLink, GET_ITEM_INFO_DISPLAY_QUALITY_INDEX)
 
     -- Trading House listings
-    local GET_TRADING_HOUSE_LISTING_ITEM_INFO_QUALITY_INDEX = 3
-    ModifyAPIMethod("GetTradingHouseListingItemInfo", GetTradingHouseListingItemLink, GET_TRADING_HOUSE_LISTING_ITEM_INFO_QUALITY_INDEX)
+    local GET_TRADING_HOUSE_LISTING_ITEM_INFO_DISPLAY_QUALITY_INDEX = 3
+    ModifyAPIMethod("GetTradingHouseListingItemInfo", GetTradingHouseListingItemLink, GET_TRADING_HOUSE_LISTING_ITEM_INFO_DISPLAY_QUALITY_INDEX)
 
     -- Trading House searches
-    local GET_TRADING_HOUSE_SEARCH_RESULT_ITEM_INFO_QUALITY_INDEX = 3
-    ModifyAPIMethod("GetTradingHouseSearchResultItemInfo", GetTradingHouseSearchResultItemLink, GET_TRADING_HOUSE_SEARCH_RESULT_ITEM_INFO_QUALITY_INDEX)
+    local GET_TRADING_HOUSE_SEARCH_RESULT_ITEM_INFO_DISPLAY_QUALITY_INDEX = 3
+    ModifyAPIMethod("GetTradingHouseSearchResultItemInfo", GetTradingHouseSearchResultItemLink, GET_TRADING_HOUSE_SEARCH_RESULT_ITEM_INFO_DISPLAY_QUALITY_INDEX)
 
     -- Stores
     local GET_STORE_ENTRY_INFO_QUALITY_INDEX = 8
     ModifyAPIMethod("GetStoreEntryInfo", GetStoreItemLink, GET_STORE_ENTRY_INFO_QUALITY_INDEX)
@@ -80,18 +80,18 @@ local function OnAddonLoaded(_, addon)
     local GET_GUILD_SPECIFIC_ITEM_INFO_QUALITY_INDEX = 3
     ModifyAPIMethod("GetGuildSpecificItemInfo", GetGuildSpecificItemLink, GET_GUILD_SPECIFIC_ITEM_INFO_QUALITY_INDEX)
 
     -- Trade between players
-    local GET_TRADE_ITEM_INFO_QUALITY_INDEX = 3
-    ModifyAPIMethod("GetTradeItemInfo", GetTradeItemLink, GET_TRADE_ITEM_INFO_QUALITY_INDEX)
+    local GET_TRADE_ITEM_INFO_DISPLAY_QUALITY_INDEX = 4
+    ModifyAPIMethod("GetTradeItemInfo", GetTradeItemLink, GET_TRADE_ITEM_INFO_DISPLAY_QUALITY_INDEX)
 
     -- Store Buyback
-    local GET_BUY_BACK_ITEM_INFO_QUALITY_INDEX = 3
-    ModifyAPIMethod("GetBuybackItemInfo", GetBuybackItemLink, GET_BUY_BACK_ITEM_INFO_QUALITY_INDEX)
+    local GET_BUY_BACK_ITEM_INFO_FUNCTIONAL_QUALITY_INDEX = 5 -- Game actually uses functional quality here instead of display quality
+    ModifyAPIMethod("GetBuybackItemInfo", GetBuybackItemLink, GET_BUY_BACK_ITEM_INFO_FUNCTIONAL_QUALITY_INDEX)
 
     -- Mails
-    local GET_ATTACHED_ITEM_INFO_QUALITY_INDEX = 8
-    ModifyAPIMethod("GetAttachedItemInfo", GetAttachedItemLink, GET_ATTACHED_ITEM_INFO_QUALITY_INDEX)
+    local GET_ATTACHED_ITEM_INFO_DISPLAY_QUALITY_INDEX = 8
+    ModifyAPIMethod("GetAttachedItemInfo", GetAttachedItemLink, GET_ATTACHED_ITEM_INFO_DISPLAY_QUALITY_INDEX)
 
     -- Loots
     local GET_LOOT_ITEM_INFO_QUALITY_INDEX = 5
     ModifyAPIMethod("GetLootItemInfo", GetLootItemLink, GET_LOOT_ITEM_INFO_QUALITY_INDEX)
--- a\CraftedPotions.txt	Sat Mar 02 18:24:08 2019
+++ b\CraftedPotions.txt	Tue May 26 18:03:15 2020
@@ -4,11 +4,11 @@
 ; States and/or other countries. All rights reserved.
 ; You can read the full terms at https://account.elderscrollsonline.com/add-on-terms
 
 ## Title: CraftedPotions
-## Version: 2.0.0
-## APIVersion: 100026 100027
-## AddOnVersion: 20
+## Version: 2.0.1
+## APIVersion: 100031
+## AddOnVersion: 21
 ## Author: Ayantir & sirinsidiator
 ## Description: Display different colors for your crafted potions
 
 CraftedPotions.lua
Report comment to moderator  
Reply With Quote
Unread 01/04/20, 11:42 AM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1416
File comments: 937
Uploads: 36
Originally Posted by billi
this addon causes huge fps drops (around 20 fps) whenever an enemy gets killed.
Could be bc of a reaction with one of my other addons but its definitely gone once I disable this one.
Do you get them too when only CraftedPotions is active? Otherwise could you upload and pm me your LibDebugLogger.lua saved variables in case you have it installed, or simply a list of all addons you have active?
__________________
https://www.imperialtradingcompany.eu/ - My Addons - The Vault (Early updates and experimental projects) - My patreon - My blog
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Last edited by sirinsidiator : 01/04/20 at 11:42 AM.
Report comment to moderator  
Reply With Quote
Unread 01/04/20, 09:16 AM  
billi

Forum posts: 0
File comments: 3
Uploads: 0
this addon causes huge fps drops (around 20 fps) whenever an enemy gets killed.
Could be bc of a reaction with one of my other addons but its definitely gone once I disable this one.
Report comment to moderator  
Reply With Quote
Unread 04/21/19, 07:13 PM  
Craziux

Forum posts: 0
File comments: 1
Uploads: 0
Hi,

First of all, good job on the addon! I'm just wondering, can the same be done for Soul Gems and Repair Kits, making them look Superior or Epic? Would love to see that!

Kind regards
~ Craziux
Report comment to moderator  
Reply With Quote
Unread 03/02/19, 03:31 PM  
Kyoma
AddOn Author - Click to view AddOns

Forum posts: 124
File comments: 314
Uploads: 10
Originally Posted by sirinsidiator
Originally Posted by TNTKokser
Is there any replacement for this great AddOn or is it integrated in another perhaps? Or @Ayantir: do you plan to updfate this, I found it really really useful.
I just took it over. Will upload a new version soon.
Usurper!
Report comment to moderator  
Reply With Quote
Unread 03/02/19, 03:24 PM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1416
File comments: 937
Uploads: 36
Originally Posted by TNTKokser
Is there any replacement for this great AddOn or is it integrated in another perhaps? Or @Ayantir: do you plan to updfate this, I found it really really useful.
I just took it over. Will upload a new version soon.
__________________
https://www.imperialtradingcompany.eu/ - My Addons - The Vault (Early updates and experimental projects) - My patreon - My blog
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Report comment to moderator  
Reply With Quote
Unread 03/02/19, 12:55 PM  
TNTKokser
 
TNTKokser's Avatar

Forum posts: 15
File comments: 123
Uploads: 0
Is there any replacement for this great AddOn or is it integrated in another perhaps? Or @Ayantir: do you plan to updfate this, I found it really really useful.
Report comment to moderator  
Reply With Quote
Unread 02/28/19, 10:54 AM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1416
File comments: 937
Uploads: 36
I took a look at the code and while it would be easy to fix the error, it would still cause problems for other addons due to the way it works and I'm not sure it is possible to work around that without rewriting a large part of the addon.

In other words, the addon is rewriting the values returned by the API. For AwesomeGuildStore this means when a user filters for normal quality potions, the server returns potions that have normal quality, but locally they suddenly act like they have a higher quality, so they won't be shown.

Ideally ZOS would pick up this feature and change the quality of potions and poisons on their end. Maybe if enough people ask for it on the official forums, it could happen.
__________________
https://www.imperialtradingcompany.eu/ - My Addons - The Vault (Early updates and experimental projects) - My patreon - My blog
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Last edited by sirinsidiator : 02/28/19 at 10:55 AM.
Report comment to moderator  
Reply With Quote
Unread 02/26/19, 05:33 PM  
xaraan

Forum posts: 0
File comments: 22
Uploads: 0
Came here to say the same thing about the UI error in the new guild trader. Seems to keep the new guild store search from working if there are potions in the search results. Hopefully an easy fix?
Report comment to moderator  
Reply With Quote
Unread 02/25/19, 06:49 PM  
Thallassa

Forum posts: 2
File comments: 21
Uploads: 0
Wrathstone Update Error

Oddly enough this is the only addon I've found with an error! Error occurs with only this addon enabled. Go to new guild store UI, and try to search any item category that contains potions, such as "all items" or "consumables". The UI continues to function normally in other views such as inventory.

Such a neat little addon I hope it gets updated!

EsoUI/Libraries/Globals/globalapi.lua:117: operator / is not supported for nil / number
stack traceback:
EsoUI/Libraries/Globals/globalapi.lua:117: in function 'zo_roundToNearest'
EsoUI/Ingame/TradingHouse/TradingHouse_Shared.lua:29: in function 'ZO_TradingHouse_CreateItemData'
(tail call): ?
EsoUI/Ingame/TradingHouse/Keyboard/TradingHouse_Keyboard.lua:839: in function 'ZO_TradingHouseManager:RebuildSearchResultsPage'
EsoUI/Ingame/TradingHouse/Keyboard/TradingHouse_Keyboard.lua:760: in function 'ZO_TradingHouseManager:OnSearchStateChanged'
EsoUI/Ingame/TradingHouse/Keyboard/TradingHouse_Keyboard.lua:47: in function 'callback'
EsoUI/Ingame/TradingHouse/Keyboard/TradingHouse_Keyboard.lua:42: in function 'callback'
EsoUI/Libraries/Utility/ZO_CallbackObject.lua:111: in function 'ZO_CallbackObject:FireCallbacks'
EsoUI/Ingame/TradingHouse/TradingHouse_Shared.lua:273: in function 'ZO_TradingHouseSearch:SetSearchState'
EsoUI/Ingame/TradingHouse/TradingHouse_Shared.lua:243: in function 'ZO_TradingHouseSearch:OnResponseReceived'
EsoUI/Ingame/TradingHouse/TradingHouse_Shared.lua:200: in function '(anonymous)'
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: