RKP_Loot_Tool_B1.0.0.zip
What's new
RKP Loot Tool B1.0.0 – Changelog Core Architecture & Database Engine
Decentralized Delta-Sync Database: Replaced static ledger files with a fully decentralized, self-healing database utilizing Eventual Consistency.
Per-Player Immutable Timestamps: Converted database structures to track exact server timestamps for every individual player record ({score, time}).
Last-Write-Wins Protocol: Addon now automatically compares incoming timestamps against local records, seamlessly merging disparate officer databases without overwriting fresh data.
Garbage Collection Optimization: Replaced highly volatile table recreation loops with table.wipe() memory recycling, preventing micro-stutters during 30-man raid roster scans.
Network & Security Integration
Thundering Herd Prevention: Engineered a Randomized Backoff Timer (1.0s - 4.0s) and an Alpha CLAIM_SYNC handshake to prevent multiple officers from simultaneously answering sync requests and causing chat floods.
Packet Chunking & Pacing: Database payloads are now squished, mathematically sliced into 150-byte chunks, and drip-fed via .15s timers to permanently bypass Blizzard's 255-byte limit and anti-spam disconnects.
Gossip Protocol (Passive Audit): Officer clients now actively eavesdrop on Alpha transmissions. If an Alpha broadcasts an outdated player score, listening officers instantly fire a targeted micro-correction packet to update the hive.
Role-Based Authentication: Locked network write permissions behind a strict IsSenderOfficer() gateway. Standard raiders act as Read-Only nodes, while only "General", "Domina Alt", and "Domina" ranks can push Read/Write commands.
Guild-Wide Kill Switch: Added /rkp block [Name] and /rkp unblock [Name]. Activating this instantly broadcasts a gag order to the guild, instructing all network listeners to silently drop packets from the blocked user.
Loot Logic & Distribution
Waterfall Priority Algorithm: Hardcoded strict sorting: Tier/BiS Status -> Track Upgrade Status -> Role Priority (Tanks > Healers > DPS) -> RKP Score.
Absolute Tie Detection: If two candidates tie flawlessly across Score, Role, and RKP, the addon intercepts the winner broadcast and dynamically changes the alert to "TIE-BREAKER NEEDED: /ROLL".
UI & Quality of Life
Header Realignment: Detached header text from the dynamic Blizzard TitleBg and pinned it to absolute frame coordinates for pixel-perfect vertical centering.
Guild Branding: Formatted left-aligned title to a bold, legendary orange Renown - Moon Guard.
Bug Fixes & API Patches
Cold Boot Race Condition: Patched a bug where the PLAYER_ENTERING_WORLD event fired before the server loaded guild data. Built a recursive polling loop allowing the client 10 seconds to catch up before safely terminating.
Cross-Realm API Choking: Added a SafeShortName() wrapper to intercept dual-value returns from UnitName("player") while in 5-man parties, preventing strsplit from evaluating nil and deleting players from the database.
255-Byte Decapitation: Reduced the candidate runner-up broadcast payload from Top 5 to Top 3 to guarantee long item links never force WoW to silently truncate the network string.
This mod has no additional files