Patch 1.3.3 Item Link handling
Well, my addon was working fine on the PTS, but it appears they've yet again changed something between the PTS build and the live build. Previously, this worked:
Code:
-- assume we have a Button called someButton, and an item link called itemLink Code:
ZO_ChatWindowTextEntryEditBox:SetText(itemLink) Code:
local testName = zo_strformat("<<1>>", itemLink) Edit for clarity and so people don't have to read the whole thread if they don't want to: The following adjustment to the first code snippet fixes this: Code:
-- assume we have a Button called someButton, and an item link called itemLink |
You seem to be using old links from before 1.2.3, otherwise you wouldn't have had any text to strip control characters off. You should either convert or get rid of those.
Back when item links contained item name, I used this: Lua Code:
|
|
Quote:
Edit: A very-stripped-down example that produces this behavior (displaying the first 20 because not all items have the control characters appended; enchanting runes for example do not, but finished glyphs do): Code:
RequestGuildHistoryCategoryNewest(1, GUILD_HISTORY_SALES) |
UI ERROR on 1.3.3
1 Attachment(s)
Since 1.3.3 Following UI Error pops up and cannot be dismissed
I loaded the screen shot as an attachment |
Actually...bloody hell. They changed the link format AGAIN - the name is included in the link. Just checked my savedvars after testing, and new items look like:
|H0:item:45211:52:50:26588:52:50:0:0:0:0:0:0:0:0:0:9:0:0:10000:0|hkresh breeches of stamina^p|h I'm so confused. They added a GetItemLinkName function, but then added the name of the item back into the link? o_O Not that it helps my current situation, but I guess I can return to the old-style link parsing if the name is present in plain-text again. Edit: Some additional fun - links that do not have the name embedded in them work fine, like they used to. New links pulled from the store since the patch, that contain the name, break things. I wonder if I can just do a gsub and remove the name :P |
Quote:
Anyway, Wykkyd is working on the fix, check addon comments: http://www.esoui.com/downloads/info8....html#comments If you don't want to wait for fix, just open file "mhFramework\Lib\Bazgrim\Toolbar\Bags.lua" and change line 15 from: Lua Code:
Lua Code:
|
Quote:
So GetItemLinkName(itemLink) does the same as zo_strformat("<<x:1>>", itemLink)? |
Quote:
|
Quote:
zo_strformat("<<t:1>>", text) or zo_strformat("<<T:1>>", text) So if I want to get correctly formated item name from itemLink: zo_strformat("<<tx:1>>", itemLink) See more: http://www.esoui.com/forums/showthre...=7321#post7321 |
Quote:
Edit: Just to follow up - zo_strformat("<<t:1>>", itemLink) correctly formats both pre-Update 3 and post-Update 3 links correctly as expected. Thanks again Garkin, you rock :) |
Sheesh, Glad I didn't assume that my addon changes were finished. Looks like I have to do another adjustment to the link code in my addon.
Quote:
|
All times are GMT -6. The time now is 05:38 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI