Last resort logo

SWAT 3 - LAST RESORT GAME MODIFICATION


Spam Prevention - PLEASE READ !! (23 Apr 2021)

Due to a problem with spammers the rules for posting in the forums have changed for new users.

Newly registered users won't have their posts published until a moderator approves them.

Tool for Swat 3's Duplicate textures

More
8 years 18 hours ago #8 by Slippery Jim
Over the years I have noticed that Swat 3 contains a lot of duplicate textures. The original developers didn't seem to bother creating a database to prevent duplicates. When you open up the Swat 3 .RES files you find the same textures over and over.

As the original textures get replaced by our new hi-res textures the filesize has grown immensely. Already with a tiny portion of replaced textures the size is larger than the original texture pack of the whole game.

I Used a freeware program called Visipics to search for duplicate images. According to this software Swat 3 contains 623 dupilicate groups giving a total of 1844 duplicate textures.

The question is how could this mess be optimized? If we were to delete the duplicates and then edit the texture names in the .SCN files would we save a lot of space? My guess is yes. The only problem is that this would be a very boring task so I wonder if there is a way to automate the process?


Here is the link to Visipics if anyone wants it by the way:
www.visipics.info/index.php?title=Main_Page

Please Log in or Create an account to join the conversation.

  • SystemArray
  • Visitor
  • Visitor
6 years 8 months ago - 6 years 8 months ago #572 by SystemArray
Replied by SystemArray on topic Tool for Swat 3's Duplicate textures
Yes, this can be optimized.

Have single file set of images as suggested and reroute dupe directories to new location.
This find and replace tool would shorten the workload,
textmechanic.com/text-tools/basic-text-t...nd-and-replace-text/

Since SWAT3 was developed before image compression really was effective and widespread.
Run ALL images SWAT3 has through a image compressor and this alone would cut this game size by 1/3.
optimizilla.com/

Doing both, I bet would cut this game's size more than half.

Please Log in or Create an account to join the conversation.

More
6 years 8 months ago #574 by Slippery Jim
Swat 3 can only use .bitmap and .tga images sadly.

Please Log in or Create an account to join the conversation.

  • SystemArray
  • Visitor
  • Visitor
6 years 8 months ago #575 by SystemArray
Replied by SystemArray on topic Tool for Swat 3's Duplicate textures
Image compression is still possible, run them through a image convertor, compress and convert back to original file extension.
I going to give it a try...

Please Log in or Create an account to join the conversation.

  • SystemArray
  • Visitor
  • Visitor
6 years 8 months ago #576 by SystemArray
Replied by SystemArray on topic Tool for Swat 3's Duplicate textures
Worked perfectly...

Download: macroplant.com/adapter/image-converter
BMP > PNG
tinypng.com/
PNG > BMP

Please Log in or Create an account to join the conversation.

More
6 years 8 months ago #578 by Slippery Jim
Your attachment just shows .png files.

Show me a before and after .bmp file's stats and a visual comparison to see how much of a loss of quality it is to convince me :)

Please Log in or Create an account to join the conversation.

Moderators: DarkSynopsis
Time to create page: 0.212 seconds
Powered by Kunena Forum