Quantcast
Download
(7 Kb)
Download
Updated: 02/10/20 11:09 AM
Pictures
File Info
Compatibility:
Dragonhold (5.2.5)
Updated:02/10/20 11:09 AM
Created:02/10/20 11:09 AM
Monthly downloads:242
Total downloads:250
Favorites:2
MD5:
5.2.5
Alchemy Tooltips
Version: 1.0
by: Hyperioxes [More]
Displays cheapest way to craft certain potion/poison in its tooltip along with crafing cost, based on TTC prices.
Optional Files (0)


Post A Reply Comment Options
Unread 02/15/20, 06:47 PM  
Hyperioxes
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 4
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: 120
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: 4
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: 120
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: 4
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: 120
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: 10
File comments: 27
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: 4
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: 2623
File comments: 3035
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: