Commit Graph

3 Commits

Author SHA1 Message Date
LemonNexus 6931c4b039 fix: Fix HTTPClient, Dashboard, and Log Parser errors
BUG FIXES:

1. HTTPClient '_generate_cache_key' AttributeError:
   - The method definition was missing, only had docstring and body
   - Added proper method signature: def _generate_cache_key(self, url, params)

2. Dashboard 'bg_dark' KeyError:
   - EU_COLORS doesn't have 'bg_dark'
   - Changed to 'bg_secondary' which is the correct color

3. Log Parser 'maximum recursion depth exceeded':
   - read_log() was calling itself instead of parent method
   - Changed to super().read_log() to call BasePlugin's method

These fixes resolve:
- Universal Search not working
- API errors
- Dashboard customize dialog crash
- Log Parser infinite recursion
2026-02-14 23:40:09 +00:00
LemonNexus 345ec865e1 fix: Fix Log Parser Test plugin event field names
The plugin was using wrong field names for EventBus events:

SkillGainEvent:
- Fixed: points → gain_amount
- Fixed: new_value → skill_value

LootEvent:
- Fixed: Now uses items list instead of direct item_name/quantity/value
- Updated to handle the dict structure in items list

DamageEvent:
- Fixed: amount → damage_amount
- Fixed: Now uses is_outgoing instead of is_critical for direction
- Added target_name and attacker_name fields

GlobalEvent:
- Fixed: player → player_name
- Fixed: item → item_name
- Added achievement_type field

All simulate buttons should now work correctly.
2026-02-14 20:06:18 +00:00
LemonNexus 219d0847b2 feat: Add Log Parser and Game Reader Test Plugins
NEW TESTING PLUGINS:

1. Log Parser Test Plugin (plugins/log_parser_test/)
   - Real-time event monitoring with counters
   - Visual event history table (last 100 events)
   - Raw log line viewer
   - Simulated event buttons for testing:
     * Skill Gain
     * Loot
     * Damage
   - Event type filtering and statistics
   - Color-coded event types
   - Auto-scroll and refresh

2. Game Reader Test Plugin (plugins/game_reader_test/)
   - Quick OCR test with progress bar
   - Region-specific OCR testing with presets:
     * Chat Window
     * Skills Window
     * Inventory
     * Mission Tracker
   - OCR backend selection (Auto/EasyOCR/Tesseract/PaddleOCR)
   - Processing time tracking
   - Test history with results
   - Save/copy OCR results
   - Calibration tools:
     * Display DPI detection
     * Backend status checker
     * OCR tips and best practices

FEATURES FOR BOTH:
- Modern EU-styled UI
- Tabbed interface
- Error handling and logging
- Background processing (no UI freeze)
- Real-time updates

These plugins serve as both testing tools and demonstrations
of the Log Reader and OCR core services capabilities.
2026-02-14 19:08:17 +00:00