Quantcast
Download
(7 Kb)
Download
Updated: 02/27/20 03:16 AM
Pictures
File Info
Compatibility:
Harrowstorm (5.3.4)
Dragonhold (5.2.5)
Updated:02/27/20 03:16 AM
Created:02/10/20 11:09 AM
Monthly downloads:591
Total downloads:641
Favorites:9
MD5:
Categories:Bags, Bank, Inventory, TradeSkill Mods, ToolTip
5.3.4
Alchemy Tooltips  Updated less than 3 days ago!
Version: 1.2
by: Hyperioxes [More]
Displays cheapest way to craft certain potion,poison or alchemy master writ in its tooltip along with crafing cost, based on TTC prices.

Known bugs:
-Sometimes TTC prices fail to initialize, it has been talked about in the comments, I haven't been getting this bug until recently and the only way to fix it (temporarily) was to turn off TTC, reload ui, turn on TCC and reload ui again. And even that didn't work every time.

Next plan for future:
-Multi-language support and other minor changes suggested by Baertram

Special thanks to ziggr, Marify and Baertram for helping me out
1.1.
-Bugged tooltip no longer shows up on master writ tooltips
-TTC prices now initialize with a 5 second delay
-Added more potions to database

1.2
-Tooltip now also appear on alchemy master writs
Optional Files (0)


Archived Files (2)
File Name
Version
Size
Uploader
Date
1.1
7kB
Hyperioxes
02/24/20 03:01 AM
1.0
7kB
02/10/20 11:09 AM


Post A Reply Comment Options
Unread Yesterday, 12:03 PM  
Hyperioxes
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 6
Uploads: 1
Originally Posted by wizzard2k
Originally Posted by SneakyWitchTheif
Lovely addon, but the TTC prices are far too low. Could we get an option for using MM prices via libprice?
TTC Suggested by default is the lowest 30% of listings, minus 20%, so it will always be lower than most markets.

by changing the lines such as
Code:
	reagents[30148][2] = TamrielTradeCentrePrice:GetPriceInfo("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h").SuggestedPrice
to

Code:
	reagents[30148][2] = LibPrice.ItemLinkToPriceGold("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h")
and making the addon dependent on libprice would give the option for the user to set their own preference, and even add the option to overload the above changed command to specify a source as an optional argument 2
Right now I'm working on multi language support but after I'm done with that I'll look into libprice and try to create some settings with options to pick between TTC, MM or ATT.
Report comment to moderator  
Reply With Quote
Unread Yesterday, 11:05 AM  
wizzard2k

Forum posts: 0
File comments: 53
Uploads: 0
Originally Posted by SneakyWitchTheif
Lovely addon, but the TTC prices are far too low. Could we get an option for using MM prices via libprice?
TTC Suggested by default is the lowest 30% of listings, minus 20%, so it will always be lower than most markets.

by changing the lines such as
Code:
	reagents[30148][2] = TamrielTradeCentrePrice:GetPriceInfo("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h").SuggestedPrice
to

Code:
	reagents[30148][2] = LibPrice.ItemLinkToPriceGold("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h")
and making the addon dependent on libprice would give the option for the user to set their own preference, and even add the option to overload the above changed command to specify a source as an optional argument 2
Report comment to moderator  
Reply With Quote
Unread Yesterday, 10:34 AM  
SneakyWitchTheif

Forum posts: 1
File comments: 42
Uploads: 0
Lovely addon, but the TTC prices are far too low. Could we get an option for using MM prices via libprice?
Report comment to moderator  
Reply With Quote
Unread 02/24/20, 03:14 AM  
Hyperioxes
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 6
Uploads: 1
Originally Posted by Greevir
Originally Posted by Hyperioxes
Originally Posted by Greevir
Originally Posted by Hyperioxes
Originally Posted by Greevir
Originally Posted by Hyperioxes
Originally Posted by Greevir
Can't seem to get this working. Has issues with TTC for me.

Code:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: attempt to index a nil value
stack traceback:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: in function 'InitializePricesTTC'
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:1392: in function 'OnAddOnLoaded'
|caaaaaa<Locals> event = 65536, addonName = "AlchemyTooltips" </Locals>|r
It seems like the TTC suggested price is nil. Are you absolutely sure that your TTC data is up to date? Are you seeing suggested price in alchemy reagents' tooltips?
Yup, absolutely sure:
Sorry for very late answer, can you try adding this at the end of addon's code?
Lua Code:
  1. SLASH_COMMANDS["/test"] = function ()
  2.     d(TamrielTradeCentrePrice:GetPriceInfo("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h").SuggestedPrice)
  3.     d(reagents[30148][2])
  4. end

Then just use the /test command and tell me what shows up on your chat, I need to figure if the issue is with extracting TTC price or with saving that price to the table.
Chat shows two lines:

45.26
nil
It appears that price gets extracted from TTC but doesnt get saved to the table. Also the table exists because if it didn't then 2nd line in chat would show nothing instead of "nil". My only idea is that for some reason TTC loads up delayed so I want you to try out this:
Lua Code:
  1. SLASH_COMMANDS["/test"] = function ()
  2.     InitializePricesTTC()
  3.     d(TamrielTradeCentrePrice:GetPriceInfo("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h").SuggestedPrice)
  4.     d(reagents[30148][2])
  5. end
Change the code you pasted last time to this and tell me what shows up on your chat.
nothing happens
I've just updated the addon, please check if it works now and let me know. If it still doesn't work then I'm out of ideas and I'll need to post this on forums hoping that someone smarter than me can figure it out.
Report comment to moderator  
Reply With Quote
Unread 02/23/20, 09:59 PM  
Greevir
 
Greevir's Avatar

Forum posts: 25
File comments: 123
Uploads: 0
Originally Posted by Hyperioxes
Originally Posted by Greevir
Originally Posted by Hyperioxes
Originally Posted by Greevir
Originally Posted by Hyperioxes
Originally Posted by Greevir
Can't seem to get this working. Has issues with TTC for me.

Code:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: attempt to index a nil value
stack traceback:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: in function 'InitializePricesTTC'
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:1392: in function 'OnAddOnLoaded'
|caaaaaa<Locals> event = 65536, addonName = "AlchemyTooltips" </Locals>|r
It seems like the TTC suggested price is nil. Are you absolutely sure that your TTC data is up to date? Are you seeing suggested price in alchemy reagents' tooltips?
Yup, absolutely sure:
Sorry for very late answer, can you try adding this at the end of addon's code?
Lua Code:
  1. SLASH_COMMANDS["/test"] = function ()
  2.     d(TamrielTradeCentrePrice:GetPriceInfo("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h").SuggestedPrice)
  3.     d(reagents[30148][2])
  4. end

Then just use the /test command and tell me what shows up on your chat, I need to figure if the issue is with extracting TTC price or with saving that price to the table.
Chat shows two lines:

45.26
nil
It appears that price gets extracted from TTC but doesnt get saved to the table. Also the table exists because if it didn't then 2nd line in chat would show nothing instead of "nil". My only idea is that for some reason TTC loads up delayed so I want you to try out this:
Lua Code:
  1. SLASH_COMMANDS["/test"] = function ()
  2.     InitializePricesTTC()
  3.     d(TamrielTradeCentrePrice:GetPriceInfo("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h").SuggestedPrice)
  4.     d(reagents[30148][2])
  5. end
Change the code you pasted last time to this and tell me what shows up on your chat.
nothing happens
Report comment to moderator  
Reply With Quote
Unread 02/15/20, 06:47 PM  
Hyperioxes
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 6
Uploads: 1
Originally Posted by Greevir
Originally Posted by Hyperioxes
Originally Posted by Greevir
Originally Posted by Hyperioxes
Originally Posted by Greevir
Can't seem to get this working. Has issues with TTC for me.

Code:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: attempt to index a nil value
stack traceback:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: in function 'InitializePricesTTC'
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:1392: in function 'OnAddOnLoaded'
|caaaaaa<Locals> event = 65536, addonName = "AlchemyTooltips" </Locals>|r
It seems like the TTC suggested price is nil. Are you absolutely sure that your TTC data is up to date? Are you seeing suggested price in alchemy reagents' tooltips?
Yup, absolutely sure:
Sorry for very late answer, can you try adding this at the end of addon's code?
Lua Code:
  1. SLASH_COMMANDS["/test"] = function ()
  2.     d(TamrielTradeCentrePrice:GetPriceInfo("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h").SuggestedPrice)
  3.     d(reagents[30148][2])
  4. end

Then just use the /test command and tell me what shows up on your chat, I need to figure if the issue is with extracting TTC price or with saving that price to the table.
Chat shows two lines:

45.26
nil
It appears that price gets extracted from TTC but doesnt get saved to the table. Also the table exists because if it didn't then 2nd line in chat would show nothing instead of "nil". My only idea is that for some reason TTC loads up delayed so I want you to try out this:
Lua Code:
  1. SLASH_COMMANDS["/test"] = function ()
  2.     InitializePricesTTC()
  3.     d(TamrielTradeCentrePrice:GetPriceInfo("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h").SuggestedPrice)
  4.     d(reagents[30148][2])
  5. end
Change the code you pasted last time to this and tell me what shows up on your chat.
Report comment to moderator  
Reply With Quote
Unread 02/14/20, 07:50 PM  
Greevir
 
Greevir's Avatar

Forum posts: 25
File comments: 123
Uploads: 0
Originally Posted by Hyperioxes
Originally Posted by Greevir
Originally Posted by Hyperioxes
Originally Posted by Greevir
Can't seem to get this working. Has issues with TTC for me.

Code:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: attempt to index a nil value
stack traceback:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: in function 'InitializePricesTTC'
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:1392: in function 'OnAddOnLoaded'
|caaaaaa<Locals> event = 65536, addonName = "AlchemyTooltips" </Locals>|r
It seems like the TTC suggested price is nil. Are you absolutely sure that your TTC data is up to date? Are you seeing suggested price in alchemy reagents' tooltips?
Yup, absolutely sure:
Sorry for very late answer, can you try adding this at the end of addon's code?
Lua Code:
  1. SLASH_COMMANDS["/test"] = function ()
  2.     d(TamrielTradeCentrePrice:GetPriceInfo("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h").SuggestedPrice)
  3.     d(reagents[30148][2])
  4. end

Then just use the /test command and tell me what shows up on your chat, I need to figure if the issue is with extracting TTC price or with saving that price to the table.
Chat shows two lines:

45.26
nil
Report comment to moderator  
Reply With Quote
Unread 02/14/20, 12:52 AM  
Hyperioxes
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 6
Uploads: 1
Originally Posted by Greevir
Originally Posted by Hyperioxes
Originally Posted by Greevir
Can't seem to get this working. Has issues with TTC for me.

Code:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: attempt to index a nil value
stack traceback:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: in function 'InitializePricesTTC'
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:1392: in function 'OnAddOnLoaded'
|caaaaaa<Locals> event = 65536, addonName = "AlchemyTooltips" </Locals>|r
It seems like the TTC suggested price is nil. Are you absolutely sure that your TTC data is up to date? Are you seeing suggested price in alchemy reagents' tooltips?
Yup, absolutely sure:
Sorry for very late answer, can you try adding this at the end of addon's code?
Lua Code:
  1. SLASH_COMMANDS["/test"] = function ()
  2.     d(TamrielTradeCentrePrice:GetPriceInfo("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h").SuggestedPrice)
  3.     d(reagents[30148][2])
  4. end

Then just use the /test command and tell me what shows up on your chat, I need to figure if the issue is with extracting TTC price or with saving that price to the table.
Report comment to moderator  
Reply With Quote
Unread 02/11/20, 11:17 PM  
Greevir
 
Greevir's Avatar

Forum posts: 25
File comments: 123
Uploads: 0
Originally Posted by Hyperioxes
Originally Posted by Greevir
Can't seem to get this working. Has issues with TTC for me.

Code:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: attempt to index a nil value
stack traceback:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: in function 'InitializePricesTTC'
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:1392: in function 'OnAddOnLoaded'
|caaaaaa<Locals> event = 65536, addonName = "AlchemyTooltips" </Locals>|r
It seems like the TTC suggested price is nil. Are you absolutely sure that your TTC data is up to date? Are you seeing suggested price in alchemy reagents' tooltips?
Yup, absolutely sure:
Last edited by Greevir : 02/11/20 at 11:18 PM.
Report comment to moderator  
Reply With Quote
Unread 02/11/20, 04:03 PM  
Hyperioxes
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 6
Uploads: 1
Originally Posted by Greevir
Can't seem to get this working. Has issues with TTC for me.

Code:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: attempt to index a nil value
stack traceback:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: in function 'InitializePricesTTC'
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:1392: in function 'OnAddOnLoaded'
|caaaaaa<Locals> event = 65536, addonName = "AlchemyTooltips" </Locals>|r
It seems like the TTC suggested price is nil. Are you absolutely sure that your TTC data is up to date? Are you seeing suggested price in alchemy reagents' tooltips?
Report comment to moderator  
Reply With Quote
Unread 02/11/20, 02:27 PM  
Greevir
 
Greevir's Avatar

Forum posts: 25
File comments: 123
Uploads: 0
Can't seem to get this working. Has issues with TTC for me.

Code:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: attempt to index a nil value
stack traceback:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: in function 'InitializePricesTTC'
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:1392: in function 'OnAddOnLoaded'
|caaaaaa<Locals> event = 65536, addonName = "AlchemyTooltips" </Locals>|r
Report comment to moderator  
Reply With Quote
Unread 02/11/20, 05:08 AM  
Maelynn

Forum posts: 13
File comments: 31
Uploads: 0
If it were possible for you to add this functionality to the Sealed Writs, then I'd insta-download this.
__________________
Just remember... if the world didn't suck, we'd all fall off.
Report comment to moderator  
Reply With Quote
Unread 02/10/20, 12:13 PM  
Hyperioxes
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 6
Uploads: 1
I wanted to add multi language support but it's my college project which I have to finish before certain date and I was running out of time so I decided I'll have to add it later and for now just make sure everything else works fine. I have a few final exams in the following weeks but I can start working on multi language support after I'm done with that, thanks for the support!
Report comment to moderator  
Reply With Quote
Unread 02/10/20, 11:30 AM  
Baertram
 
Baertram's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2646
File comments: 3097
Uploads: 57
Nice addon, could you mabe add multi language support?
Maybe other addons like Potion maker already provide the translated texts of the reagents etc.

Using clientLanguage dependent language files in your manifest txt:
https://wiki.esoui.com/Addon_manifest_(.txt)_format#Variable_Expansion

e.g. add to your txt file:
lang/en.lua
lang/$(language).lua

This will always load the en.lua strings as fallback and also after that the client's language file e.g. fr.lua or de.lu or jp.lua
You can watch pChat addon how to add strings like ZOs does it and multi translate them with the other files then.


Maybe also format your currency in the tooltip witht his information:
https://wiki.esoui.com/Currency_Formatting

Just a hint about your "posthook" of the tooltip controls:
Code:
local origMethod = tooltipControl[method]

	tooltipControl[method] = function(self, ...)
		origMethod(self, ...)
		AddPotionInfo(self, checkPotion(linkFunc(...)))

	end
You can use the function SecurePostHook since last major update to build a posthook instead of creating it manually:

Lua Code:
  1. if not tooltipControl[method] then return end
  2. SecurePostHook(tooltipControl, method, function(self, ...)
  3.         AddPotionInfo(self, checkPotion(linkFunc(...)))
  4.     end)
Last edited by Baertram : 02/10/20 at 11:33 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: