From 27cf602cb2f9f73b90ad2111a91354c989939865 Mon Sep 17 00:00:00 2001 From: Luke Horwell Date: Sun, 2 Feb 2025 23:05:11 +0000 Subject: [PATCH] Patches: Leave objects.package images uncompressed Strange discovery while fixing #25: The school icon (group ID 0x856ddbac, instance ID 0x7f2dcbc6) is invisible both in the career tab and the queued actions, but ONLY if the package is compressed. Weird because the image is OK and extractable; it was originally compressed too! Other icons (like Wants & Fears) have no apparent issue. Something to figure out another time, see #54. --- sims2patcher/patches.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sims2patcher/patches.py b/sims2patcher/patches.py index 33818ac..6c58370 100755 --- a/sims2patcher/patches.py +++ b/sims2patcher/patches.py @@ -178,6 +178,9 @@ def process_package(file: GameFile, ui_update_progress: Callable): current += 1 continue + # Workaround: Leave TGAs uncompressed as they could become invisible if compressed (#54) + entry.compress = False + ui_update_progress(current, total) try: entry.data = _upscale_graphic(entry)