Hello,
in lootdrop i have added a debug log to see exactly what we loot with more informations,
but I encounter a problem in that code :
Lua Code:
-------------------------------------------------------------------------------
function LootDrop:dbgDrop(iconFilename, c, quantity, text, tag)
if (not self.db.DbgLog) then return end
if ( not iconFilename or iconFilename == '' )then
iconFilename = [[/esoui/art/icons/icon_missing.dds]]
end
if (quantity ~= 0) then
local color = ZO_ColorDef:New( c )
local dbgText1='[' .. GetTimeString() .. ']:'
if not self.db.DbgLogTime then
dbgText1 = ''
end
local icon = CreateIcon(iconFilename)
local dbgText2=zo_strformat( '<<1[//$dx]>> <<2>>', quantity, text)
--d(dbgText2) --> label OK
if ((tag=='INV') or (tag=='JUNK') or (tag=='MAIL')) then
dbgText2=zo_strformat( '<<1[//$dx]>> <<2>> |c736F6E(<<3>>)|r', quantity, text, self.ItemToPrint.nb)
end
local dbgText3='.'
if tag~='' then dbgText3=' (' .. tag .. ').' end
local finaldbgtext=zo_strformat( '<<1>> <<2>> <<3>><<4>>', dbgText1, icon, dbgText2, dbgText3)
d(finaldbgtext)
end
end
d(dbgText2) gives me that :
but in final with finaldbgtext it prints that :
where could come the 'rh', any idea ?
item with tag INV, MAIL or JUNK are correctly print :
I have made a lot of tests but I have no idea to correct it.
I think I do a mistake with itemlink or zo_strformat but I don't know which one.
if someone could help ...