Originally Posted by
Nyarlko
I tossed out a help request
here (and on the github,) a little while back about modifying the Logger addon to record game day/time and didn't get any bites, so I'll try again. ^^;;
Looks like the Wanted Dial is coming in May, so I REALLY want to get this done before then.. Any kind soul willing to give me the answer, point me towards the answer, or do it for me? All my attempts so far seem to consistently crash Windower. orz
Something like this mess do the trick?
Code:
[11:39:21] [Radec] Erratic Flutter → Radec || Darksday 18:24
[11:39:22] Radec Erratic Flutter → Radec (Haste) || Darksday 18:25
You can play with the format a little yourself, but seems reasonably stable.
Add this in/edit the file:append line in an existing logger.lua:
Code:
res = require 'resources'
gameday = res.days[windower.ffxi.get_info()['day']].en
gametime = windower.ffxi.get_info()['time']
gameminute = gametime % 60
if gameminute < 10 then
gameminute = '0'..gameminute
end
gamehour = (gametime - gameminute)/60
inGameStamp = " || "..gameday..' '..gamehour..':'..gameminute
file:append('%s%s%s\n':format(settings.AddTimestamp and os.date(settings.TimestampFormat, os.time()) or '', text:strip_format(), inGameStamp))
If you have timestamp loaded and logger adding timestamps it'll duplicate them once you add this for some reason, but easy work around turning one or the other off.