LibAlchemy error LUA
Hi guys, i receive this error many times, for example when i view my inventory or random. Any idea? Thanks.
Code:
user:/AddOns/LibAlchemy/LibAlchemy.lua:172: operator + is not supported for number + nil |
You should ask on the addon: https://www.esoui.com/downloads/info....html#comments
|
Can you specify which items are causing this error?
|
Seems to be a poison.
More details how I noticed it: The error messages says itemId "76827" in the itemLink "|H0:item:76827:30:3:0:0:0:0:0:...", so the link should be something like this: Code:
|H1:item:76827:30:3:0:0:0:0:0:0:0:0:0:0:0:1:0:0:1:0:0:0|h|h Damage Health Poison I |
I crafted that poison (or similar one at least, as the one in your item link has no effects on it when you check its tooltip, so I just crafted one with ravage health effect) and it isn't causing any errors for me. Also judging from where the error occured it has something to do with solvents. Instead of extracting solvent's price from a table it extracts nil so first I assumed there was some solvent I missed but I crafted poison and potion with every possible solvent and it didn't cause me any bugs. I'm assuming it could be some bug related to pricing addons but I'm using TTC and MM and even though Master Merchant is missing prices for some solvents it isn't causing any bugs, can't check for ATT.
|
Maybe it's due to different character setup where not all solvents are known or not all alchemy levels etc. were unlocked already.
You could add a ~= nil check to prevent the error message and instead send a message with the information you need to the chat and let users send this message to you. Or use LibDebugLogger in your addon to log those errors to the SavedVariables and let them send you teh file or uplaod them at sirinsidiators LibDebugLogger online viewer: https://sir.insidi.at/or/logviewer/ |
Quote:
|
It's super weird. All solvents' prices are saved like:
Lua Code:
I turned off all trading addons, and used /script to check values of all of those. The first two of them (Grease and Natural Water) returned nil, while all the others returned 1. I have no idea why does that happen, I'll look into LibPrice when I have more free time, as for now I'm just gonna add exceptions to these 2 in LibAlchemy and AlchemyTooltips Lua Code:
|
If the return value is nil the library most probably cannot find any data of these items, whereever it reads them from (MM, TTC data?).
A hint about the itemlinks. Instead of redundantly re-using the same itemlink, where only the itemId changes, you could use string.format as a function. Current: Lua Code:
New: Lua Code:
|
All times are GMT -6. The time now is 01:04 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI