Commit Graph

3 Commits

Author SHA1 Message Date
LemonNexus 14bac40fdf fix: use PIL as primary TGA reader with manual fallback
- PIL handles more TGA formats correctly
- Manual parser fixed to properly skip ID and color map fields
- Added better error messages with expected vs actual data size
- Fallback chain: PIL first, then manual parser
2026-02-11 16:00:03 +00:00
LemonNexus f2dff103a8 fix: add actual game cache path and search subfolders for icons
- Added: C:\ProgramData\Entropia Universe\public_users_data\cache\icon
- Now searches version subfolders (e.g., 19.3.2.201024)
- Also searches ProgramData recursively as fallback
2026-02-11 15:39:36 +00:00
LemonNexus acca0d3491 feat: add TGA Icon Converter for game cache files
- New module: modules/tga_converter.py
  - Reads Truevision TGA format from game cache
  - Converts to PNG with proper color handling (BGR->RGB)
  - Auto-detects cache folder location
  - Batch conversion support
  - Handles alpha channels

- New dialog: ui/tga_converter_dialog.py
  - Visual interface for TGA conversion
  - Shows list of cached .tga files
  - Progress tracking during conversion
  - One-click convert all

- Added to Tools → Computer Vision → TGA Icon Converter (Ctrl+T)

This is much more efficient than extracting icons from screenshots!
The game already has the icons in cache as .tga files.
2026-02-11 15:37:14 +00:00