Go to Page... |
INITIALIZED()
HISTORY_RESCAN_STARTED(integer guildId, integer category)
HISTORY_RESCAN_ENDED(integer guildId, integer category, integer numEventsBefore, integer numEventsInside, integer numEventsAfter, boolean foundInvalidEvents)
RegisterCallback(LibHistoire.callback type, function callback)
UnregisterCallback(LibHistoire.callback type, function callback)
LibHistoire.GuildHistoryEventListener listener = CreateGuildHistoryListener(integer guildId, integer category)
string key = GetKey()
integer guildId = GetGuildId()
integer category = GetCategory()
integer eventCount, number processingSpeed, number timeLeft = GetPendingEventMetrics()
boolean success = SetAfterEventId(id64 eventId)
boolean success = SetAfterEventTime(integer eventTime)
boolean success = SetBeforeEventId(id64 eventId)
boolean success = SetBeforeEventTime(integer eventTime)
boolean success = SetIterationCompletedCallback(function callback)
boolean success = SetStopOnLastEvent(boolean shouldStop)
boolean success = SetTimeFrame(integer startTime, integer endTime)
boolean success = SetNextEventCallback(function callback)
function(GuildEventType eventType, id64 eventId, integer eventTime, variable param1, variable param2, variable param3, variable param4, variable param5, variable param6)
boolean success = SetMissedEventCallback(function callback)
boolean success = SetEventCallback(function callback)
boolean success = Start()
boolean success = Stop()
boolean success = IsRunning()
LibHistoire:RegisterCallback(LibHistoire.callback.INITIALIZED, function() local listener = LibHistoire:CreateGuildHistoryListener(guildId, category) listener:SetEventCallback(function(eventType, eventId, eventTime, param1, param2, param3, param4, param5, param6) -- do something with the event data end) listener:Start() end)
LibHistoire:RegisterCallback(LibHistoire.callback.INITIALIZED, function() local listener = LibHistoire:CreateGuildHistoryListener(guildId, category) listener:SetTimeFrame(startTime, endTime) listener:SetNextEventCallback(function(eventType, eventId, eventTime, param1, param2, param3, param4, param5, param6) -- do something with the event data end) listener:Start() end)
LibHistoire:RegisterCallback(LibHistoire.callback.INITIALIZED, function() local function SetUpListener(guildId, category) local listener = LibHistoire:CreateGuildHistoryListener(guildId, category) local key = listener:GetKey() listener:SetAfterEventId(StringToId64(saveData.lastEventId[key])) listener:SetNextEventCallback(function(eventType, eventId, eventTime, param1, param2, param3, param4, param5, param6) -- the events received by this callback are in the correct historic order saveData.lastEventId[key] = Id64ToString(eventId) end) listener:SetMissedEventCallback(function(eventType, eventId, eventTime, param1, param2, param3, param4, param5, param6) -- events in this callback are out of order compared to what has been received by the next event callback and can even have an eventId smaller than what has been specified via SetAfterEventId. end) listener:Start() end for i = 1, GetNumGuilds() do SetUpListener(GetGuildId(i), category) end end)
NOTE: No data was lost and I believe I've found and fixed all incorrect cases and added unit tests to guard against regressions. As an additional measure the lib will now also throw an assertion error if it encounters links that cannot be decoded. Please make sure to report these so I can add them to the test cases and fix them!
- GetKey - returns an identifier which can be used to store the last seen eventId for a listenerv1.0.2
- GetGuildId - returns the guildId of a listener
- GetCategory - returns the category of a listener
- GetPendingEventMetrics - returnsthe amount of stored or unlinked events that are currently waiting to be processed by the listener- SetBeforeEventId, SetBeforeEventTime
the average processing speed in events per second or -1 if not enough data is yet available
the estimated time in seconds it takes to process the remaining events or -1 if no estimate is possiblethese can be used to limit the iteration range and automatically stop the listener when they are passed- SetIterationCompletedCallback
they will also ensure the correct data is returned by the GetPendingEventMetrics function when only a subset of the data is requested (otherwise it will consider all available events)when an end criteria is set, this callback will fire when the listener has stopped automatically- SetTimeFrame(startTime, endTime)a convenience method to specify a range which includes the startTime and excludes the endTime
File Name |
Version |
Size |
Uploader |
Date |
1.2.2 |
118kB |
sirinsidiator |
04/25/21 06:41 AM |
|
1.2.1 |
118kB |
sirinsidiator |
04/24/21 03:01 PM |
|
1.2.0 |
118kB |
sirinsidiator |
04/22/21 01:22 PM |
|
1.1.3 |
119kB |
sirinsidiator |
12/12/20 11:12 AM |
|
1.1.2 |
118kB |
sirinsidiator |
12/05/20 02:33 PM |
|
1.1.1 |
118kB |
sirinsidiator |
12/05/20 09:47 AM |
|
1.1.0 |
118kB |
sirinsidiator |
12/04/20 07:01 AM |
|
1.0.2 |
115kB |
sirinsidiator |
10/31/20 05:32 AM |
|
1.0.1 |
115kB |
sirinsidiator |
10/25/20 04:32 PM |
![]() |
Comment Options |
Marcus Brody |
View Public Profile |
Send a private message to Marcus Brody |
Find More Posts by Marcus Brody |
Add Marcus Brody to Your Buddy List |
![]() |
|
Forum posts: 2
File comments: 30
Uploads: 0
|
Thank you for thorough answer.
Have a good year! |
![]() |
![]() |
kueqvzzv |
View Public Profile |
Send a private message to kueqvzzv |
Find More Posts by kueqvzzv |
Add kueqvzzv to Your Buddy List |
Sharlikran |
View Public Profile |
Send a private message to Sharlikran |
Find More Posts by Sharlikran |
Add Sharlikran to Your Buddy List |
![]() |
|
Forum posts: 2
File comments: 30
Uploads: 0
|
Till around 2 weeks ago I could follow my sales almost live (~1 min) with MasterMerchant or Arkadius but not anymore. Often I'm stuck with 2 or 4 hours old history with no way to update it manually, it simply shows as synced, all linked already. No lua error whatsoever. So or there's something wrong on my end but I can't find what or the API has been modified.
Edit: I'm not the only one affected in my trading guild.
Last edited by kueqvzzv : 12/20/22 at 03:21 AM.
|
![]() |
![]() |
kueqvzzv |
View Public Profile |
Send a private message to kueqvzzv |
Find More Posts by kueqvzzv |
Add kueqvzzv to Your Buddy List |
![]() |
|
I have just noticed LibHistoire.lua taking whopping 32MB space. I beleive this previously used to be a lot smaller, and shrunk almost to nothing after clicking on the reset listings buttons.
Is this normal? Also, do huge files in the saved variables folder affect loading times? |
|
![]() |
![]() |
Octopuss |
View Public Profile |
Send a private message to Octopuss |
Find More Posts by Octopuss |
Add Octopuss to Your Buddy List |
![]() |
|
|
|H1:guild:700291|hWalks-the-Uncharted|h
I can't remember if I've asked before or not, but I would genuinely love a feature to purge guilds I'm not currently in from libHistoire.
As a GM I really don't want to delete libHistoire.lua and start fresh; I'm quite attached to that historical data for my own guild. But I do have cached guild data that I don't need, and cached data from guilds I've not been in for ages. |
![]() |
![]() |
tralce |
View Public Profile |
Send a private message to tralce |
Send email to tralce |
Find More Posts by tralce |
Add tralce to Your Buddy List |
![]() |
|
Could you by chance add an option for date format please? I'm from Europe and 6/27/2022 looks bizarre to me, not to mention I am majorly confused when the numbers can make sense in both directions.
We mostly use day.month.year.
Last edited by Octopuss : 11/03/22 at 12:02 AM.
|
|
![]() |
![]() |
Octopuss |
View Public Profile |
Send a private message to Octopuss |
Send email to Octopuss |
Find More Posts by Octopuss |
Add Octopuss to Your Buddy List |
![]() |
||
Forum posts: 0
File comments: 69
Uploads: 0
|
I had the same issue, not seeing anything in the code, I replaced the first two lines of that function with the identical lines from a previous version (still not seeing anything different) and then it worked after a reload. So it could have just needed another reloadui or there might have been something there. Code:
function GuildHistoryCacheCategory:UpdateEventLookup(event, index) local eventId = event:GetEventId() |
|
![]() |
![]() |
wizzard2k |
View Public Profile |
Send a private message to wizzard2k |
Send email to wizzard2k |
Find More Posts by wizzard2k |
Add wizzard2k to Your Buddy List |
![]() |
||
Re: Lib warning
Last edited by Sharlikran : 11/01/22 at 02:47 PM.
|
||
![]() |
![]() |
Sharlikran |
View Public Profile |
Send a private message to Sharlikran |
Send email to Sharlikran |
Find More Posts by Sharlikran |
Add Sharlikran to Your Buddy List |
![]() |
|
Forum posts: 11
File comments: 31
Uploads: 0
|
Fixed !!
![]() Thank you !! ![]() ![]() ![]() |
![]() |
![]() |
Magic Charmer |
View Public Profile |
Send a private message to Magic Charmer |
Send email to Magic Charmer |
Find More Posts by Magic Charmer |
Add Magic Charmer to Your Buddy List |
![]() |
||
Forum posts: 1
File comments: 117
Uploads: 0
|
|
|
![]() |
![]() |
Rothry |
View Public Profile |
Send a private message to Rothry |
Send email to Rothry |
Find More Posts by Rothry |
Add Rothry to Your Buddy List |
![]() |
|
Forum posts: 0
File comments: 15
Uploads: 0
|
I have no idea if it's on libhistoire, but after today's patch, I had multiple lua bugs AND brutal game exiting/kick to desktop ; thanks for the quick update, no more lua bug reports but I still have game crash/exits.
having hundreds of addons does not help. Dolgubon's lazy Writ crafter has abnormal behavior (no autoloot), must be part of the problem too ; or one other addon somewhere. Right now, game is unplayable because of the crashes, and I can't remove my addons, can't function without'em ; I'll wait a few days and/or try to narrow down the search to guess what addon causes the crash ![]() |
![]() |
![]() |
zilog |
View Public Profile |
Send a private message to zilog |
Send email to zilog |
Find More Posts by zilog |
Add zilog to Your Buddy List |
![]() |
|
|
Updated so fast after servers went up, thank you!
![]() |
![]() |
![]() |
xen32 |
View Public Profile |
Send a private message to xen32 |
Send email to xen32 |
Find More Posts by xen32 |
Add xen32 to Your Buddy List |
![]() |
|||
Forum posts: 3
File comments: 23
Uploads: 0
|
|
||
![]() |
![]() |
Turgenev |
View Public Profile |
Send a private message to Turgenev |
Send email to Turgenev |
Find More Posts by Turgenev |
Add Turgenev to Your Buddy List |
![]() |
||
|
|
|
![]() |
![]() |
wyndstryke |
View Public Profile |
Send a private message to wyndstryke |
Send email to wyndstryke |
Find More Posts by wyndstryke |
Add wyndstryke to Your Buddy List |
![]() |
You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.