U40-V2
Small performance improvement in the check for Emperorship for the Killfeed/Player Nameplates.
Fixed killfeed text in the Imperial City Sewers when no location token is reported by the killfeed API.
Inactive by Default PlayerDatabase cleanup Function!
This release includes a tested and working function to clean up the PlayerDatabse.
PvpAlerts logs every character you encounter for every player you encounter in any PVP zone to a database in the saved variables. If you've been running PvpAlerts for any significant length of time this database will likely have become quite large. To the point where the game will actually struggle to write it out when SavedVariables are written to disk at the end of sessions. This can actually cause some savedvariables files for other addons later in the save chain to become corrupted. In my case, the PvpAlerts database was over 25MB, and had started to cause the game to disconnect on character swapping after being in a PVP zone.
A new PlayerDatabse cleanup function has been implemented to address this. It handles the cleanup in two stages, first it makes use of the Alliance rank tracking information that was added in the August 27th, 2023 U39 Improvements v5 Release. Any character that doesn't have a stored alliance rank will be dropped from the database (as will any player that this will cause to have zero saved characters). Secondly, going forward, characters will now log a "last encountered" datestamp. After 732 days (two years and two days) without encountering a given character in a PVP Zone, the character will be purged from the database.
Neither of these cleanup actions will affect any characters/players that have been added to either the KOS or COOL lists, those will be retained indefinitely
In this release of the addon it will begin logging "last encountered" datestamps, but will take no further cleanup actions.
If you wish to enable the cleanup function early, open PvpAlerts.lua
and uncomment PVP:Purge_PlayerDB()
on line 3756.
Once this line is uncommented, it will purge any characters without a known Alliance rank, then back-fill "last encountered" datestamps with the current date for any remaining characters to prevent these more recently encountered characters from being purged until at least 2026.
As long as this line remains uncommented, the cleanup function will monitor and remove any characters that haven't been seen within the prescribed timeline.
I tentatively expect to enable this function by default following the release of the Gold Road chapter.