09-20-2017, 04:23 AM
(07-20-2017, 03:17 AM)aboodba Wrote: Would it be possible to add a feature so that it shows actions name and another feature to save logs?
Thanks a lot for the amazing addon btw.
you can add some code to save log to file for example
for save log into file, it will save all log into a file in foxrecord folder
function FoxRecord.ClearButton()
if (GUI:Button("Clear HUD", 100, 20)) then
persistence.store(GetStartupPath()..'\\LuaMods\\FoxRecord\\' .. GetUUID() ..tostring(GetEorzeaTime().servertime).. '.log.lua', FoxConsole)
FoxConsole = {}
end
end
for log spell name
[b]function ChatLog_RecordIDs()
--local debug_el = EntityList("type=2,chartype=5,contentid=3647;5186;5187;5188;5189;5190")
local debug_el = EntityList("chartype=5")
if ( debug_el ) then
local id,entity = next(debug_el)
while (id~=nil and entity~=nil) do
if (last_channeled[entity.id] ~= entity.castinginfo.channelingid and entity.castinginfo.channelingid > 0) then
--SendTextCommand('/echo '.. tostring(entity.name) .. ' ('.. tostring(id) ..') channelingid : ' .. entity.castinginfo.channelingid)
--d(tostring(entity.name) .. ' ('.. tostring(entity.contentid) ..') channelingid : ' .. entity.castinginfo.channelingid)
RecordOutput(tostring(entity.name) .. ' ('.. tostring(entity.contentid) ..') channelingid : ' .. entity.castinginfo.channelingid..' Action Name:'..ActionList:Get(1,entity.castinginfo.channelingid).name)
last_channeled[entity.id] = entity.castinginfo.channelingid
--debug_channelid(entity)
elseif (entity.castinginfo.channelingid == 0) then
last_channeled[entity.id] = 0
end
if (last_casted[entity.id] ~= entity.castinginfo.castingid and entity.castinginfo.castingid > 0) then
--SendTextCommand('/echo '.. tostring(entity.name) .. ' ('.. tostring(id) ..') castingid : ' .. entity.castinginfo.castingid)
--d(tostring(entity.name) .. ' ('.. tostring(entity.contentid) ..') castingid : ' .. entity.castinginfo.castingid)
RecordOutput(tostring(entity.name) .. ' ('.. tostring(entity.contentid) ..') castingid : ' .. entity.castinginfo.castingid..' Action Name:'..ActionList:Get(1,entity.castinginfo.castingid).name)
last_casted[entity.id] = entity.castinginfo.castingid
--debug_castingid(entity)
elseif (entity.castinginfo.castingid == 0) then
last_casted[entity.id] = 0
end
id,entity = next(debug_el,id)
end
end
end[/b]