promotional bannermobile promotional banner

Playtime Ranking

PlaytimeRanking is a World of Warcraft Classic (TBC) addon that creates a shared leaderboard of total playtime across players.

File Details

PlaytimeRankingV2.zip

  • R
  • Mar 28, 2026
  • 13.82 KB
  • 8
  • 2.5.5
  • Classic TBC

File Name

PlaytimeRankingV2.zip

Supported Versions

  • 2.5.5

# Changelog

## [2.0.0] - 2026-03-28

### 🎉 Major Release - Modular Architecture

#### ✨ New Features
- **Modular architecture**: 7 separate files for better maintainability
  - `Core.lua`: Global variables and event management
  - `Database.lua`: Database management
  - `Communication.lua`: Network synchronization
  - `Achievements.lua`: Achievement system
  - `UI.lua`: Main interface
  - `Minimap.lua`: Minimap button
- **Minimap button**: Quick access to rankings with draggable icon
- **First-time setup popup**: Main player name configuration with "That's me!" option to merge existing data
- **Achievement system**: 10 progressive titles based on total playtime (500h-20000h)
- **`/ptr reset` command**: Complete database reset
- **`/ptr debug` command**: Detailed diagnostics (version, players, characters)

#### 🔧 Synchronization Improvements
- **Split messages**: 1 message per character instead of one large message
  - Fixes the 255 character limit issue for addon messages
  - All characters now synchronize properly (10/10 instead of 8/10)
- **Smart merging**: Characters are merged instead of being overwritten
  - Keeps the character with the most playtime
  - Automatically recalculates total after merging
- **classFile included**: Class icons now display correctly
- **GUILD + RAID support**: Synchronization across multiple channels
  - GUILD channel priority (always works)
  - RAID channel as backup (25 players)
  - Note: PARTY channel doesn't work in TBC Anniversary (API limitation)

#### 🎨 User Interface
- **"Refresh" button**: Updates `/played` AND synchronizes automatically
- **Repositioned header**: Window title aligned to the top
- **Class icons**: Displayed for each character
- **Total time**: Days/hours/minutes format (e.g., 232d 20h 41m)
- **Character counter**: Shows number of characters per player

#### 🐛 Bug Fixes
- **Fix duplicates**: Removed AccountPlayed system that created duplicates
- **Fix GetCurrentMainPlayerName()**: Returns `nil` instead of character name if not configured
- **Fix blocked popup**: Added "That's me!" button to confirm existing name
- **Fix multi-account sync**: Characters no longer get lost during sync
- **Fix special characters**: Support for accents in names (ë, à, ä, etc.)
- **Fix oversized messages**: Automatic message splitting

#### ⚠️ Known Limitations
- **PARTY channel**: Doesn't work for synchronization in TBC Anniversary
  - Solution: All characters must be in the same guild
  - Characters outside the guild sync when you reconnect with a guilded character

#### 📝 Available Commands
- `/ptr` - Toggle rankings window
- `/ptr options` - Options panel (coming soon)
- `/ptr sync` - Force manual synchronization
- `/ptr update` - Force `/played` update
- `/ptr reset` - Reset database
- `/ptr debug` - Detailed diagnostics

#### 🔄 Migration from v1.x
- Database structure has changed
- Recommended: `/ptr reset` then reconfigure main player name
- Old characters will need to be rescanned with `/played`

---

## [1.0.0] - Initial Release
- Basic ranking system
- Simple synchronization
- Single-file architecture