refactor: clean up code and update README

- Removed unused imports (numpy, QFrame, QCheckBox, QSplitter, QSize, QFont)
- Removed unused Tuple type hint
- Removed WEBSITE constant
- Cleaned up module docstring
- Updated README:
  - Removed gamepad emoji, using app icon image instead
  - Removed EntropiaNexus.com references
  - Added GitHub repo link
This commit is contained in:
LemonNexus 2026-02-11 19:31:46 +00:00
parent e87d4aa581
commit 00444e1276
3 changed files with 20 additions and 41 deletions

View File

@ -1,16 +1,16 @@
# 🎮 Entropia Universe Icon Extractor # Entropia Universe Icon Extractor
A standalone tool for extracting item icons from Entropia Universe game cache. A standalone tool for extracting item icons from Entropia Universe game cache.
![Icon](icon.ico) <img src="icon.ico" width="64" height="64" alt="EU Icon Extractor">
## 📝 Description ## Description
Extract item icons from Entropia Universe cache and convert them to PNG format. These icons can be submitted to [EntropiaNexus.com](https://EntropiaNexus.com) to help complete the item database. Extract item icons from Entropia Universe cache and convert them to PNG format.
**⚠️ Important:** Items must be seen/rendered in-game before they appear in the cache! If an icon is missing, view the item in your inventory or the auction first. **Important:** Items must be seen/rendered in-game before they appear in the cache! If an icon is missing, view the item in your inventory or the auction first.
## 🚀 Usage ## Usage
```bash ```bash
python icon_extractor.py python icon_extractor.py
@ -21,7 +21,7 @@ python icon_extractor.py
- PyQt6: `pip install PyQt6` - PyQt6: `pip install PyQt6`
- Pillow: `pip install Pillow` - Pillow: `pip install Pillow`
## 🎨 Features ## Features
- **Auto-detects** game cache from `C:\ProgramData\Entropia Universe\public_users_data\cache\icon` - **Auto-detects** game cache from `C:\ProgramData\Entropia Universe\public_users_data\cache\icon`
- **Version selector** - Choose which game version to extract from - **Version selector** - Choose which game version to extract from
@ -31,7 +31,7 @@ python icon_extractor.py
- **Light/Dark theme** - Toggle between themes - **Light/Dark theme** - Toggle between themes
- **Custom output folder** - Choose where to save extracted icons - **Custom output folder** - Choose where to save extracted icons
## 📂 Output ## Output
Icons are saved to your Documents folder: Icons are saved to your Documents folder:
``` ```
@ -40,16 +40,16 @@ Documents\Entropia Universe\Icons\
(Same location where `chat.log` is normally stored) (Same location where `chat.log` is normally stored)
## 🌐 Links ## Links
- **Developer:** ImpulsiveFPS - **Developer:** ImpulsiveFPS
- **Discord:** impulsivefps - **Discord:** impulsivefps
- **Website:** [EntropiaNexus.com](https://EntropiaNexus.com) - **GitHub:** https://github.com/ImpulsiveFPS/EU-Icon-Extractor
## ⚖️ Disclaimer ## Disclaimer
Entropia Universe Icon Extractor is a fan-made resource and is not affiliated with [MindArk PE AB](https://www.mindark.com/). [Entropia Universe](https://www.entropiauniverse.com/) is a trademark of MindArk PE AB. Entropia Universe Icon Extractor is a fan-made resource and is not affiliated with [MindArk PE AB](https://www.mindark.com/). [Entropia Universe](https://www.entropiauniverse.com/) is a trademark of MindArk PE AB.
## 📄 License ## License
MIT License - Feel free to use and modify! MIT License - Feel free to use and modify!

Binary file not shown.

View File

@ -2,59 +2,39 @@
Entropia Universe Icon Extractor Entropia Universe Icon Extractor
A standalone tool for extracting game icons from cache. A standalone tool for extracting game icons from cache.
Description: Extracts item icons from Entropia Universe game cache and converts
them to PNG format for use with EntropiaNexus.com wiki submissions.
Important: Items must be seen/rendered in-game before they appear in the cache.
Usage: Usage:
python standalone_icon_extractor.py python icon_extractor.py
Output Location:
Icons are saved to your Documents/Entropia Universe/Icons/ folder
(same location where chat.log is normally stored)
Developer: ImpulsiveFPS Developer: ImpulsiveFPS
Discord: impulsivefps Discord: impulsivefps
Website: https://EntropiaNexus.com GitHub: https://github.com/ImpulsiveFPS/EU-Icon-Extractor
Disclaimer:
Entropia Universe Icon Extractor is a fan-made resource and is not
affiliated with MindArk PE AB. Entropia Universe is a trademark of
MindArk PE AB.
""" """
import sys import sys
import logging import logging
from pathlib import Path from pathlib import Path
from typing import Optional, List, Tuple from typing import Optional, List
import ctypes import ctypes
try: try:
from PyQt6.QtWidgets import ( from PyQt6.QtWidgets import (
QApplication, QMainWindow, QWidget, QVBoxLayout, QHBoxLayout, QApplication, QMainWindow, QWidget, QVBoxLayout, QHBoxLayout,
QLabel, QPushButton, QComboBox, QListWidget, QListWidgetItem, QLabel, QPushButton, QComboBox, QListWidget, QListWidgetItem,
QFileDialog, QProgressBar, QGroupBox, QMessageBox, QCheckBox, QFileDialog, QProgressBar, QGroupBox, QMessageBox,
QSplitter, QTextEdit, QDialog, QScrollArea, QFrame QTextEdit, QDialog, QScrollArea
) )
from PyQt6.QtCore import Qt, QThread, pyqtSignal, QSettings, QSize from PyQt6.QtCore import Qt, QThread, pyqtSignal, QSettings
from PyQt6.QtGui import QIcon, QPixmap, QFont, QImage from PyQt6.QtGui import QIcon, QPixmap, QImage
PYQT_AVAILABLE = True
except ImportError: except ImportError:
PYQT_AVAILABLE = False
print("PyQt6 not available. Install with: pip install PyQt6") print("PyQt6 not available. Install with: pip install PyQt6")
sys.exit(1) sys.exit(1)
try: try:
from PIL import Image, ImageFilter from PIL import Image
PIL_AVAILABLE = True
except ImportError: except ImportError:
PIL_AVAILABLE = False
print("Pillow not available. Install with: pip install Pillow") print("Pillow not available. Install with: pip install Pillow")
sys.exit(1) sys.exit(1)
import numpy as np
# Setup logging # Setup logging
logging.basicConfig( logging.basicConfig(
level=logging.INFO, level=logging.INFO,
@ -68,7 +48,6 @@ APP_NAME = "Entropia Universe Icon Extractor"
APP_VERSION = "1.0.0" APP_VERSION = "1.0.0"
DEVELOPER = "ImpulsiveFPS" DEVELOPER = "ImpulsiveFPS"
DISCORD = "impulsivefps" DISCORD = "impulsivefps"
WEBSITE = "https://EntropiaNexus.com"
class TGAHeader: class TGAHeader: