Page 1 of 1

wil bil ste sty files

Posted: 12 Jun 2011, 17:15
by Cuban-Pete
What is the difference - in images - between these three (wil.sty, bil.sty and ste.sty) besides (town) buildings?

Re: wil bil ste sty files

Posted: 12 Jun 2011, 17:37
by Sektor
A full automated comparison should be done.

Re: wil bil ste sty files

Posted: 12 Jun 2011, 18:06
by Cuban-Pete
Any ideas how to do that?

Re: wil bil ste sty files

Posted: 12 Jun 2011, 18:10
by Sektor
Export all as bmp. Rename all of them so their filename starts with a checksum, so you can easily see which are duplicates. It's going to require some scripting.

Re: wil bil ste sty files

Posted: 12 Jun 2011, 18:15
by Cuban-Pete
Ahh, nice idea to use checksum. I was thinking image comparing software and stuff like that. :P

Re: wil bil ste sty files

Posted: 12 Jun 2011, 21:26
by Cuban-Pete
I did a checksum, they are all the same. All the sprites in bil, wil and ste are the same. :)

here is the not-so-difficult check code:

Code: Select all

import zlib
import os

wil = "wil/"
bil = "bil/"
ste = "ste/"

for subdir, dirs, files in os.walk(wil):
    for file in files:
        hash1 = zlib.crc32(open(wil+file).read())
        hash2 = zlib.crc32(open(ste+file).read())
        if hash1 != hash2:
            print file
                           

Re: wil bil ste sty files

Posted: 12 Jun 2011, 21:31
by Sektor
Nice code. Shame on DMA Design for wasting disk space :P

At least every STY file doesn't need it's own audio file anymore.

Re: wil bil ste sty files

Posted: 12 Jun 2011, 21:34
by Cuban-Pete
when you extract all the images and zip it, it's only half MB. lol [invul]

dafe's .sty file contains around 32 differences
GTA2_CAR_12.bmp
GTA2_CAR_16.bmp
GTA2_CAR_17.bmp
GTA2_CAR_18.bmp
GTA2_CAR_19.bmp
GTA2_CAR_20.bmp
GTA2_CAR_23.bmp
GTA2_CAR_28.bmp
GTA2_CAR_3.bmp
GTA2_CAR_32.bmp
GTA2_CAR_36.bmp
GTA2_CAR_40.bmp
GTA2_CAR_43.bmp
GTA2_CAR_44.bmp
GTA2_CAR_47.bmp
GTA2_CAR_48.bmp
GTA2_CAR_5.bmp
GTA2_CAR_52.bmp
GTA2_CAR_56.bmp
GTA2_CAR_63.bmp
GTA2_CAR_64.bmp
GTA2_CODE OBJECT_1048.bmp
GTA2_CODE OBJECT_1049.bmp
GTA2_CODE OBJECT_1050.bmp
GTA2_CODE OBJECT_1051.bmp
GTA2_CODE OBJECT_1052.bmp
GTA2_CODE OBJECT_1053.bmp
GTA2_CODE OBJECT_1097.bmp
GTA2_FONT_1386.bmp
GTA2_MAP OBJECT_1160.bmp
GTA2_PED_354.bmp
GTA2_USER OBJECT_1305.bmp

Re: wil bil ste sty files

Posted: 12 Jun 2011, 21:37
by Cuban-Pete
there you go. :ugeek: